Mitsubishi MELSEC QCPU Programming Manual page 125

Programmable logic controller
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents