Справочник Пользователя для Mitsubishi Electronics FXCPU
5 Basic Instruction
5.13 END
91
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
O
utlin
e
e
2
Instruc
tion Li
st
3
Configurati
on of
Instruction
4
Ho
w t
o R
ea
d
Explanati
on of
Ins
truction
truction
s
5
B
asic
Instruction
6
Step Ladder
Instruct
ions
7
Ap
pl
ied Inst
ruct
io
io
ns
(Program Flow)
8
Appl
ied
ied
In
stru
cti
cti
ons
(Mov
e and
C
omp
are)
are)
9
App
lie
lie
d Instr
uction
s
s
(Ari
thm
eti
thm
eti
c and
Lo
gic
al O
per
at
ion)
10
App
lied Inst
lied Inst
ructi
ons
ons
(Rot
ati
ati
on and
Shift O
perati
on)
5.13
END
Outline
END instruction specifies the end of a program.
(Do not write the END instruction in the middle of a program.)
END instruction for ending a program and input/output processing and returning to 0 step is automatically
written at the end of the program. It cannot be programmed into program structural elements (POU).
(Do not write the END instruction in the middle of a program.)
END instruction for ending a program and input/output processing and returning to 0 step is automatically
written at the end of the program. It cannot be programmed into program structural elements (POU).
Function and operation explanation
PLCs repeat "input processing
→ program execution → output processing". When END instruction is written
at the end of a program, PLCs immediately execute the output processing without executing steps after END
instruction.
If END instruction is not written at the end of a program, PLCs execute the program until the final step, and
then execute the output processing.
At the first execution after the PLC mode was changed from STOP to RUN, PLCs start from END instruction.
When END instruction is executed, the watchdog timer (which checks to see if the operation cycle is too long)
is refreshed.
instruction.
If END instruction is not written at the end of a program, PLCs execute the program until the final step, and
then execute the output processing.
At the first execution after the PLC mode was changed from STOP to RUN, PLCs start from END instruction.
When END instruction is executed, the watchdog timer (which checks to see if the operation cycle is too long)
is refreshed.
Cautions
Do not write END instruction in the middle of a program.
5.14
NOP (for simple project only)
This instruction is available for use only in the simple project. It cannot be programmed in the structured
project.
project.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Input processing
LD X000
OUT Y000
END
NOP
NOP
END
NOP
NOP
NOP
Output processing
Step 000
001
002
001
002