Fend – Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual
Page 89
![background image](/manuals/79046/89/background.png)
Appendix D Use of Application Instructions|DOP-EXIO Series
D-8
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic
Operands Function
FEND
None
The End of The Main Program (First End)
Bit Devices
Word Devices
X Y M S K H
KnX
KnY
KnM KnS
T
C
D
E
F
y
Note:
1. No
operand.
2. No contact to drive the instruction is required.
16-bit instruction (1 Step)
FEND
Continuous
execution
- -
32-bit instruction
- -
- -
y
Flags: None
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 DOP-EXIO series.
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.