Basic Instructions
2 − 89
Outline Executes the specified subroutine. When returning to the main
program, all outputs in the subroutine program are set to off.
Program example
Boolean
Ladder Diagram
Address Instruction
10
FCAL
X0
20
ED
1
21
SUB
30
RET
1
X20
Y10
Subroutine program number
10
11
:
20
21
23
24
:
30
ST X 0
FCAL 1
:
ED
SUB 1
ST X 20
OT Y 10
:
RET Y 10
Description
Operation and syntax are the same as normal subroutine call instructions. However, the following points are
different.
If the trigger for the CALL instruction is in the off state, the subroutine program is not executed. When the
trigger for the CALL instruction is in the off state, the instructions in the subroutine program operate as
follows.
Instruction Operation status
OT All off (differs from a normal subroutine instruction)
KP Holds the state.
SET Holds the state.
RST Holds the state.
TM Resets (differs from a normal subroutine instruction)
CT Holds the state at the time just before the trigger turns off.
SR Holds the state at the time just before the trigger turns off.
DF and DF/ Same operation as when the execution condition (trigger) for the MC instruction
turns off. Refer to the explanation of the MC and MCE instructions.
Other instructions Not executed.
FCAL
Output off type subroutine call