5-31
SET
1
2
3
4
5
6
7
8
5.3 Output Instructions
5.3.5 Setting devices (except for annunciators) (SET)
Operation Error
(1) There are no operation errors associated with 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) : 2
(Other than Universal model QCPU) : 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.
Step
Instruction
Device
B0
D0
B5
Sets b5 of D0 at 1.
Sets b5 of D0 at 0.
Step
Instruction
Device