EasyManua.ls Logo

Inovance H3U Series - Page 68

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
67
4
4 Instructions 4.1.5 End Instructions
FEND: End of the main program
Overview
The FEND instruction ends the main program.
FEND
End of the main
program
Applicable model:
H3U
An independent instruction without operands and contact driving
16-bit instruction (1
step)
FEND: Continuous
execution
Function
The FEND
instruction is appended to the main program to indicate the end of the program. The FEND
statement is located at the end of the main program. After this instruction is executed, the PLC ends a user
program scan, returns to the 0-step program, and then scans the program again.
Compile the subprogram called by the CALL command after the FEND instruction, and add the SRET
instruction at the end of the subprogram. Compile an interrupt subprogram after the FEDN instruction, and
add the IRET instruction at the end of the interrupt subprogram. Compile a subprogram or interrupt program
in an independent window in AutoShop. The FEDN instruction does not need to be added at the end of the
main program, and the SRET or IRET instruction does not need to be added at the end of the subprogram
or interrupt program.
Example:
ǒEIǓ
ǒIRETǓ
(Y0)
(Y2)
X2
(Y1)
X3
ǒFENDǓ
ĂĂ
I001
ǒEIǓ
(Y0)
X2
(Y1)
X3
ĂĂ
Main program
The process of compiling the left-hand program in AutoShop
is as follows: Right-click the interrupt program INT_01 in the
program block and choose Property, and then name 01 as
needed.
(Y2)
Interrupt program INT_01
Right-click the interrupt program INT_01 in the program
block, choose Property > Interrupt Event, and set it to I001.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals