Chapter 16 PLC Function Applications│CP2000
16-57
API
FEND
-
Conclusion a main program
06
Bit device Word device
16-bit command (1 STEP)
FEND
Continuous
execution type
- -
32-bit command
- - - -
Flag signal: none
X Y M K H KnX KnY KnM T C D
Notes on operand usage:
No operand
A contact-driven command is not needed
This command indicates the end of the main program. It is the same as
the END command when the PLC executes this command.
The CALL command program must be written after the FEND command,
and the SRET command added to the end of the subprogram.
When using the FEND command, an END command is also needed.
However, the END command must be placed at the end, after the main
program and subprogram.