Mitsubishi Electric M800VW Series Programming Manual page 275

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.5 Program Branch Instructions
FEND: Program termination
Setting
Bit devices
data
X
Y
M
L
F
[Instruction symbol] [Execution condition]
FEND
 Functions
 FEND instruction is used when branching a sequence program operation by CJ instruction, etc., or when dividing between
the main routine program and the sub routine program.
0
Operations when
the CJ instruction
is not executed
P**
(a) When using the CJ instruction
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- A FEND instruction is executed after the execution of the CALL instruction, and before the execution of the RET instruc-
tion. (Error code: 26)
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Main routine
program
Jump caused by the
CJ P**
CJ instruction
Main routine
Operation performed
program
when the CJ instruction
was executed
FEND
Main routine
program
FEND
END
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
CALL P**
Main routine
program
FEND
P**
Sub routine
program
END
(b) When there is a subroutine program
254
Digit
Pointer
designa-
Index
tion
H
P
FEND

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents