Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| n | – | – | – | – | – | – | – | – | – | – | – | – | – | – | ✓ |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | – |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 2 |
Operands
| Operand | Description |
|---|---|
| n | The only operand. Entries are only constants. This is the subroutine ID. The value range is 0 ~ 127. |
Notice
Instruction Behavior
The CALL and CALLP instructions behave as follows:
- The CALL or CALLP instructions in a scan program calls the subroutine program of SBRT n ~ RET block inside the same program.
- When the execution condition is ON (1), the CALL or CALLP instruction calls the subroutine program with the assigned subroutine ID number, n.
- When the subroutine program operates, the scan program does NOT operate until the process of the subroutine program ends.
- When the operation of a subroutine is completed, the program continues execution of the rung after the CALL or CALLP instruction.
- The CALL and CALLP instructions cannot have the same subroutine ID number, 0 ~ 127, as the JMPP or JMP instructions.
- The CALL and CALLP instructions can be used multiple times in the same program.
Block vs. Program
This section covers information about the CALL and CALLP instructions, where a subroutine block is used. For more information about using a subroutine program, refer to the subroutine program section and the ECALL or ECALLP instructions.
Ladder Diagram Examples
CALL

The CALL instruction calls a subroutine program ID, n, in the same program.
Example 1

When the contact, M0.0, is powered OFF (0), the CALL instruction is NOT calling the SBRT instruction. As a result, the data register, D0, is NOT increasing every 1 scan by the INCP instruction.

When the contact, M0.0, is powered ON (1), the CALL instruction is calling the SBRT instruction. As a result, the data register, D0, is increasing every 1 scan by the INCP instruction.
Example 2

When the contact, M0.0, is powered OFF (0), the CALL instruction is NOT calling the SBRT instruction. As a result, the data register, D0, is NOT increasing every 1 scan by the INCP instruction. Additionally, the coil, Y2.0, is deenergized since the subroutine program with the ID 20 is not being called.

When the contact, M0.0 is powered OFF (0) and the contact, M0.1, is powered ON (1), the coil, Y2.0, remains deenergized. This is because the subroutine program with the ID 20 is not being called.

When the contacts, M0.0 and M0.1, are powered ON (1), the data register, D0, is increasing every 1 scan by the INCP instruction and the data register, Y2.0, is energizing every 1 second. Both subroutines are being called allowing both poritons of the ladder logic to execute.
CALLP

The CALLP one-shot instruction calls a subroutine program ID, n, in the same program. Every time this instruction executes, it energizes the output only once.
Example 1

When the contact, M0.0, is powered OFF (0), the one-shot CALLP instruction is NOT calling the SBRT instruction. As a result, the data register, D0, is NOT increasing every 1 scan by the INCP instruction.

When the contact, M0.0, is powered ON (1), the one-shot CALLP instruction is calling the SBRT instruction once every scan. As a result, the data register, D0, is increasing every 1 scan by the INCP instruction.
Example 2

When the contact, M0.0, is powered OFF (0), the one-shot CALLP instruction is NOT calling the SBRT instruction. As a result, the data register, D0, is NOT increasing every 1 scan by the INCP instruction. Additionally, the coil, Y2.0, is deenergized since the subroutine program with the ID 20 is not being called.

When the contact, M0.0 is powered OFF (0) and the contact, M0.1, is powered ON (1), the coil, Y2.0, remains deenergized. This is because the subroutine program with the ID 20 is not being called.

When the contacts, M0.0 and M0.1, are powered ON (1), the data register, D0, is increasing every 1 scan by the INCP instruction and the data register, Y2.0, is energizing every 1 second. Both subroutines are being called once every scan allowing both poritons of the ladder logic to execute.
