End Main Routine Program: Fend - Mitsubishi Electric MELSEC Q Series Programming Manual

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU

5.4.16 End main routine program: FEND

Setting
data
X
Y
M
[Function]
Operation when
CJ instruction
is not executed.
Bit device
SM
F
T
C
D
[Instruction]
FEND
(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 Motion CPU 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
Sequence program
Sequence program
P**
Sequence program
(a) When CJ instruction is used
Usable device
Word device
W
T
C
SD
Z
Jump with
CJ P**
CJ instruction
Operation when
FEND
CJ instruction
is executed
END
5 - 50
Constant
Pointer
Level
K
H
P
N
FEND
Sequence program
P**
Sub-routine program
(b) When a subroutine program is used
Digit
desig-
Index
nation
: Usable
CALL P**
FEND
FEND

Advertisement

Table of Contents
loading

Table of Contents