Chapter 16 PLC Function ApplicationsMH300
16-6-4 Detailed explanation of application commands
CALL
Call a subprogram
CALL
Continuous
execution type
CALLP
Flag signal: none
Notes on operand usage:
The S operand can designate P.
MH300 series device: The S operand can designate P0-P63.
S: Call subprogram pointer
Write the subprogram after the FEND command.
The subprogram must end after the SRET command.
Refer to the FEND command explanation and sample content for detailed
command functions.
SRET
End of subprogram
FEND
Continuous
execution type
Flag signal: none
Notes on operand usage:
No operand
A contact-driven command is not needed.
A contact-driven command is not needed. Automatically returns next command
after CALL command.
Indicates end of subprogram. After end of subprogram, SRET returns to main
program, and executes next command after the original call subprogram CALL
command.
Refer to the FEND command explanation and sample content for detailed
command functions.