Termination Instructions; End Main Routine Program (Fend) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5.6

Termination Instructions

5.6.1

End main routine program (FEND)

FEND
FEND
Setting
Data
––
Function
(1) The FEND instruction is used in cases where the CJ instruction or other instructions are
used to cause a branch in the sequence program operations, and in cases where the main
routine program is to be split from a subroutine program or an interrupt program.
(2) Execution of the FEND instruction will cause the CPU module to terminate the program it
was executing.
(3) Even sequence programs following the FEND instruction can be displayed in ladder display
at a peripheral device.
(Peripheral devices continue to display ladders until encountering the END instruction.)
0
Operation
performed
when the CJ
instruction is
not executed
P
(a) When the CJ instruction is used
Internal Devices
R, ZR
Bit
Word
Main routine
program
CJ
P
Main routine
program
FEND
Main routine
program
FEND
END
High
Basic
performance
J
\
U
\G
Bit
Word
––
Jump caused
by the CJ instruction
Operation
performed
P
when the CJ
instruction is
I
executed
(b) When there are subroutine and
interrupt programs
FEND
Process
Redundant Universal
LCPU
FEND
Zn
Constants
Other
CALL
P
Main routine
program
FEND
Subroutine
program
Interrupt program
END
5-51
1
2
3
4
5
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents