5 - 29 5 - 29
MELSEC-Q/QnA
5 SEQUENCE INSTRUCTIONS
[Operation Errors]
(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]
Steps
Instruction Device
(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]
b0
D0
b5
Sets value of b5 of D0 at 1
Sets value of
b5 of D0 at 0
Steps
Instruction Device
REMARK
The basic SET instructions are as follows:
• When internal device or file register (R0 to R32767) are in use : Step 1
• When direct access output (DY) or SFC program device (BL) are in use : Step 2
• When timer (T) or counter (C) are in use : Step 4
• When some other device is in use : Step 3
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com