5-52
5.6 End Instructions
5.6.1 Ending main routine program
FEND
(3) Even sequence programs following the FEND instruction can be displayed in ladder display
at a peripheral.
(Peripherals continue to display ladders until encountering END.)
O
p
erat
i
on
E
rror
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The FEND instruction is executed after the execution of the CALL instruction, and before
the execution of the RET instruction.
(Error code: 4211)
• The FEND instruction is executed after the execution of the FOR instruction, and before
the execution of the NEXT instruction.
(Error code: 4200)
• The FEND instruction is executed during an interrupt program, and before the execution
of the IRET instruction.
(Error code: 4221)
• The FEND instruction is executed within the CHKCIR and CHKEND instruction loop.
(Error code: 4230)
• The FEND instruction is executed within the IX and IXEND instruction loop.
(Error code: 4231)
CJ
FEND
FEND
END
0
P
(a) W
h
en t
h
e CJ instruction is used
CALL
FEND
Interru
p
t
p
rogram
END
P
P
I
P
O
p
eration
p
er
f
ormed
wh
en t
h
e CJ
instruction is
not executed
Main routine
p
rogram
Main routine
p
rogram
Main routine
p
rogram
Main routine
p
rogram
Su
b
routine
p
rogram
Jum
p
caused
b
y t
h
e CJ instruction
O
p
eration
p
er
f
ormed
wh
en t
h
e CJ
instruction is
executed
(
b
) W
h
en t
h
ere are su
b
routine and
interru
p
t
p
rograms
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......