Mitsubishi Electronics FX3G User Manual

Page of 964
214
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
7 Basic Instruction
7.13 SET, RST
7.13
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 (D .b) 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 (D .b) 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 the same device as many times as necessary in an arbitrary order.
1. Instruction format
→ For the number of instruction steps, refer to Section 7.16.
2. Applicable devices
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z).
S2: Index modifiers (V and Z) are not available.
S3: This function is supported only in FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 PLCs.
S4: This function is supported only in FX
3U
/FX
3UC
 PLCs.
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
S
1
S
2
S
2
S
4
S
4
RST
S
1
S
1
S
2
S
2
S
4
z
S
1
S
2
S
2
S
3
S
2
S
2
S
4
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