185
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.12 SET, RST
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.12
SET, RST
Outline
1) Setting a bit device (SET instruction (set bit device latch ON))
When the command input turns ON, SET instruction sets to ON an output relay (Y), auxiliary relay (M),
state relay (S) and bit specification of word device.
Even if the command input turns OFF after that, the device which was set to ON by SET instruction
remains ON.
2) Resetting a bit device (RST instruction (reset bit device OFF))
RST instruction resets an output relay (Y), auxiliary relay (M), state relay (S), Timer (T), counter (C) or bit
specification of a word device.
Use the RST instruction to reset (set to OFF) a device which was set to ON by SET instruction.
3) Clearing the present value of a word device (RST instruction reset bit device OFF))
RST instruction clears the current value of a timer (T), counter (C), data register (D), extension register
(R) or index register (V)(Z).
RST instruction can be used to clear to "0" the contents of a data register (D) or index register (V)(Z).
(The same result can be obtained by MOV instruction which transfers the constant K0.)
RST instruction can be used also to reset the current value and return the contact of retentive type timers
T246 to T255.
SET and RST instructions can be used for a same device as many times as necessary in an arbitrary
order.
1. Instruction format
→
For the number of instruction steps, refer to Section 7.15.
2. Applicable devices
S
1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z).
S
2: State relays (S) and "D
.b" cannot be indexed with index registers (V and Z).
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
SET
3
S
1
S
2
S
2
3
RST
3
S
1
3
S
1
S
2
S
2
S
2
S
2
S
2
S
2
S
2
S
2
3
SET
SET
Basic Instruction
SET
−
Continuous
Operation
Pulse (Single)
Operation
Mnemonic
Operation Condition
RST
Reset
Basic Instruction
RST
−
Continuous
Operation
Pulse (Single)
Operation
Mnemonic
Operation Condition