189
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.14 END
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
7.14
END
Outline
END instruction specifies the end of a program.
(Do not write the END instruction in the middle of a program.)
1. Instruction format
2. Applicable devices
Explanation of function and operation
1. END instruction (program end, I/O refresh and return to step 0)
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 the operation cycle) is refreshed.
Caution
Do not write END instruction in the middle of a program.
When a program is transferred from a programming tool, all steps after END instruction are replaced with
NOP (no operation) instructions.
Instruc-
tion
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS
T
C
D
R U
\G
V
Z Modify K
H
E
"
"
P
END
There are no applicable devices.
END
END
Basic Instruction
END
−
Continuous
Operation
Pulse (Single)
Operation
Mnemonic
Operation Condition
1 step
Input processing
LD X000
OUT Y000
END
NOP
NOP
NOP
Output processing
Step 000
001
002