6 Application Instructions API 00-49
DVP-PLC Application Manual
6-12
API Mnemonic
Function
06
FEND
The End of The Main Program (First End)
Controllers
ES/EX/SS SA/SX/SC EH/SV
OP Descriptions
Program
Steps
N/A
No contact to drive the instruction is required.
FEND: 1 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Explanations:
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.
5.
After FOR instruction is executed, executing FEND before NEXT will result in errors in the program.
CJ Instruction Program Flow:
X1
CALL
P63
P0
P63
CJ
P0
I301
X0
0
The program flow
when X0=off,
X1=off
main
program
main
program
main
program
The program flow when X=On
and the program jumps to P0.
Interruption
subroutine
CALL instruction
subroutine
Summary of Contents for DVP-PLC
Page 1: ...PLC PLC...
Page 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Page 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Page 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Page 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...