Ending The Sequence Program - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Ending the sequence program

END
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
This instruction indicates the end of a program.
Ladder
FBD/LD
Not supported
■Execution condition
Instruction
END
Processing details
• This instruction indicates the end of a program including a main routine program, subroutine programs, and interrupt
programs.
• When the instruction is executed, the CPU module terminates the running program.
0
Program
END
• If END processing is required in the middle of a program, use the FEND instruction.
• If the program is created using the engineering tool (in ladder edit mode), the END instruction is automatically input and
cannot be edited.
• The following figure shows how to use the termination instructions when a main routine program, subroutine program, and
interrupt program exist.
A
FEND
B
C
END
A: Main routine program
B: Subroutine program
C: Interrupt program
D: Main sequence program area
(1) The FEND instruction is required.
(2) The END instruction is required.
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Every scan
(1)
(2)
ST
Not supported
D
5 SEQUENCE INSTRUCTIONS
5.6 Termination Instructions
5
213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents