5 SEQUENCE INSTRUCTIONS
5.6 Termination Instructions
211
5
5.6
Termination Instructions
Ending the main routine program
FEND
This instruction is used to separate the main routine program from subroutine programs and interrupt programs in a program
file.
■
Execution condition
Processing details
• This instruction is used to divide sequence program operations by using a program branch instruction such as the CJ
instruction or to separate the main routine program from subroutine programs and interrupt programs specified by the
interrupt pointer (I).
• When the instruction is executed, the CPU module terminates the running program.
• Sequence programs following the FEND instruction can be displayed on the engineering tool (ladder mode).
Ladder
ST
Not supported
FBD/LD
Not supported
Instruction
Execution condition
FEND
Every scan
When the CJ instruction is used
When there are subroutine and interrupt programs
A: Main routine program
B: Subroutine program
C: Interrupt program
(1) Operation performed when the CJ instruction is not executed
(2) Jump caused by the CJ instruction
(3) Operation performed when the CJ instruction is executed
RnCPU RnENCPU
RnSFCPU RnSFCPU
RnPCPU
RnPCPU
(Standard)
(Safety)
(Redundant)
(Process)
CJ
FEND
FEND
END
0
P**
(2)
(3)
(1)
P**
A
A
A
P**
CALL
FEND
END
P**
I**
A
B
C
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......