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

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

5. SEQUENCE INSTRUCTIONS

5.6 Termination Instructions

5.6.1 Main routine program termination
(FEND)
Bit device
X
Y
M
L
S
B
Functions
Operation when
CJ instruction is
not exectuted
Operation Errors
Available Device
Word (16-bit) device
F
T
C
D
W
R
(1) Terminates the main routine program.
(2) When the FEND instruction is executed, the PC returns to step 0 after the
processing (such as timer/counter processing and self-diagnostic check) after
the execution of END instruction, and resumes operation from step 0.
(3) The sequence program located after FEND instruction can also be displayed on
the GPP. (The GPP displays a circuit up to the END instruction.)
Main routine
program
Main routine
program
Main routine
program
(a) By use of CJ instruction
In the following cases, operation error occurs and the PC stops its operation.
• After the CALL(P) instruction is executed, the FEND instruction has been executed
before executing the RET instruction.
• After the FOR instruction is executed, the FEND instruction has been executed
before executing the NEXT instruction.
Applicable
CPU
Constant
A0
A1
Z
V
K
H
Jump by CJ
instruction
Operation when
CJ instruction is
executed
(b) There are subroutine program
5 − 34
MELSEC-A
All CPUs
Pointer Level
P
I
N
M9012 (M9010, M9011)
FEND
Main routine
program
Subroutine
program
Interrupt program
and interrupt program
O

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents