Chapter 14 PLC Function
|
C200 Series
14-42
API
06
FEND
-
The end of the main program (First End)
Bit Devices
Word Devices
X Y M K
H
KnX
KnY KnM T
C
D
Operands:
No operand
No contact to drive the instruction is required.
16-bit command (1 STEP)
FEND
-
-
32-bit command
-
-
-
-
Flag signal: None
Explanation
1. This instruction denotes the end of the main program. It has the same function
as that of END instruction when being executed by PLC.
2. CALL must be written after FEND instruction and add SRET instruction in the
end of its subroutine. Interruption program has to be written after FEND
instruction and IRET must be added in the end of the service program.
3. If several FEND instructions are in use, place the subroutine and interruption
service programs between the final FEND and END instruction.
4. After CALL instruction is executed, executing FEND before SRET will result in
errors in the program.
CALL
Command
X1
CALL
P63
P63
CALL
When X1=ON,
operation
procedure
Main Program
Main Program
Main Program
Main Program
When X1=OFF,
operation
procedure
Sub command
program
Call 1(800)985-6929 for Sales
deltaacdrives.com
sales@deltaacdrives.com
Call 1(800)985-6929 for Sales
deltaacdrives.com
sales@deltaacdrives.com