148
RST
Operation Error
(1) There is no operation error in the SET instruction.
Program Example
(1) The following program sets Y8B (ON) when X8 goes ON, and resets Y8B (OFF) when X9 goes ON.
[Ladder Mode]
[List Mode]
(2) The following program sets the value of D0 bit 5 (b5) to 1 when X8 goes ON, and set the bit value to 0 when X9 goes ON.
[Ladder Mode]
[List Mode]
Remark
1. The number of basic steps for the SET instruction is as follows:
• When internal device or file register (R0 to R32767) are in use: 1
• When direct access output (DY) or SFC program device (BL) are in use: 2
• When using serial number access format file register
(Only for Universal model QCPU and LCPU): 2
(Basic Model QCPU, High Performance model QCPU, Process CPU, and Redundant CPU): 3
• When some other device is in use: 3
2. When using X as a device, use the device numbers that are not used for the actual input. If the same number is used for
the actual input device and input X, the data of the actual input will be written over the input X specified in the SET
instruction.
: Bit device number to be reset/ Word device bit designation (bits) Word device number to be reset (BIN 16 bits)
Word device number to be reset (BIN 16 bits)
RST
Resetting devices (excluding annunciators)
5.3.6
RST
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
DY
Bit
Word
Bit
Word
––
Step
Instruction
Device
B0
D0
B5
Sets b5 of D0 at 1.
Sets b5 of D0 at 0.
Step
Instruction
Device
Basic
Process
High
performance
Redundant Universal
LCPU
Command
RST
D
RST
D
D