Mitsubishi MELSEC Q Series Programming Manual page 173

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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]
(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]
D0
Remark
1. The number of basic steps for the SET instruction is as follows:
2. When using X as a device, use the device numbers that are not used for the
Sets b5 of D0 at 1.
Sets b5 of D0 at 0.
B5
B0
• 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
• When using serial number access format file register
(Only for Universal model QCPU and LCPU)
(Basic Model QCPU, High Performance model QCPU, Process CPU,
and Redundant CPU)
• When some other device is in use
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.
[List Mode]
Step
Instruction
[List Mode]
Instruction
Step
: 3
SET
Device
Device
: 2
: 2
: 3
5-31
1
2
3
4
5
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents