Termination Instructions; Ending The Main Routine Program - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

5.6

Termination Instructions

Ending the main routine program

FEND
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
This instruction is used to separate the main routine program from subroutine programs and interrupt programs in a program
file.
Ladder
FBD/LD
Not supported
■Execution condition
Instruction
FEND
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).
When the CJ instruction is used
0
A
CJ
P**
(1)
A
FEND
P**
A
FEND
END
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
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Every scan
(2)
(3)
ST
Not supported
When there are subroutine and interrupt programs
CALL
P**
A
FEND
P**
B
I**
C
END
5 SEQUENCE INSTRUCTIONS
5.6 Termination Instructions
5
211

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents