2 INFORM Explanation
FS100 2.2 Control Instruction : RET
2-49
1. IF
The following tag can be added or omitted.
(1) RET IF IN#(12)=ON
If general input signal No.12 is on, it returns to the job of the call
origin.
2. Return Value
The following tag can be added or omitted.
Arguments can be added to the CALL instruction, and the return value can
be returned with the RET instruction. Variables other than the position
type variables (P variable, BP variable, EX variable, and PX variable) and
constants can be returned as the return value.
At the call-origin job, the return value is received by the GETS instruction.
For details, refer to “5. Argument (page 2-32)” in the explanation of the
CALL instruction.
No Tag Explanation Note
1 IF Specifies the IF instruction. Refer to chapter 2.6
“Instruction Which
Adheres to an
Instruction” at
page 2-208.
NOP
MOVJ VJ=100.00
MOVJ VJ=100.00
CALL JOB:2
MOVJ VJ=100.00
END
JOB:1 JOB:2Execution order
NOP
DOUT OT#(1) ON
WAIT IN#(1)=ON
DOUT OT#(1) OFF
RET IF IN#(12)=ON
END
No Tag Explanation Note
2 to
10
Variables other than
position type
variables and
constants
Can return the return value to the call-origin job.