Table of Contents

Advertisement

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]
(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]
Sets b5 of D0 at 1.
Sets b5 of D0 at 0.
B5
D0
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.
5.3.6
RST
Resetting devices (excluding annunciators)
5.3.6
RST
RST
: Bit device number to be reset/ Word device bit designation (bits) Word device number to be reset (BIN 16 bits)
D
Word device number to be reset (BIN 16 bits)
Setting
Internal Devices
Data
Bit
Word
D
148
[List Mode]
Step
[List Mode]
Step
B0
Command
J
\
R, ZR
Bit
Word
Instruction
Device
Instruction
Device
High
Basic
Process
performance
RST
U
\G
Zn
LCPU
Redundant Universal
D
Other
Constants
DY
––

Advertisement

Table of Contents
loading

Table of Contents