3.36 CALL (Local Subroutine Call), FCALL (Output OFF Type Local
Subroutine Call)
■
Ladder diagram
■
List of operands
Operand Description
n
Local subroutine program number within the same PB
Available data specification range: 0 to 65535 (It is recommended to specify sequentially from 0.)
■
Outline of operation
● When the execution condition is ON, the CALL/FCALL instruction is executed to start the
local subroutine program beginning with the SBL instruction with the specified number.
● When the subroutine program is processed up to the RET instruction, the program will return
to the address next to the CALL/FCALL instruction in the main program, and continue with
processing of the main program.
■
Operation when execution condition of CALL/FCALL instruction is OFF
● When the execution condition turns OFF, the operation of the current subroutine stops. (It is
also true for calls from the master control or step ladder.) In this case, the operation of each
instruction used in the subroutine is as follows.
Type of
instruction
CALL
FCALL
OT Holds the state
All OFF. Different operation from the CALL
instruction.
KP
Holds the state. Same as on the left.
SET
RST
TM
Clocking is not performed.
Note that time is not guaranteed if counting
does not occur during a single scan.
Reset. Different operation from the CALL
instruction.
CT
Holds the current progress. Same as on the left.
3.36 CALL (Local Subroutine Call), FCALL (Output OFF Type Local
Subroutine Call)
WUME-FP7CPUPGR-12 3-111