Mitsubishi MELSEC QCPU Programming Manual page 241

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The device range n-points from
• The number of transfers exceeds 6144 when a special direct device is used. (QnACPU)
[Program Example]
(1) The following program outputs the lower 4 bits of D0 when XA goes ON to Y10 to Y23 in 4-bit
units.
[Ladder Mode]
D0
(2) The following program outputs the data at X20 through X23 to D100 through D103 when XA
goes ON.
[Ladder Mode]
Before execution
6 - 90
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
D
b15
b4
b3
b2 b1
1
1
0 1
1 0 1 1
1 0 0 1
1 0 1 1
Ignored
Transmission
X2F
X2C
X2B
X28
X27
X24
X23
1
0
1 1
0 1 1 1
0 0 1 0
1 1 1 0
Ignored
exceeds the device range.
[List Mode]
Steps
Instruction
b0
1
0
1
1
Y13 to Y10
1
0
1
1
Y17 to Y14
1
0
1
1
Y1B to Y18
1
0
1
1
Y1F to Y1C
1
0
1
1
Y23 to Y20
[List Mode]
Instruction
Steps
X20
After execution (transfer destination)
b15
b4
b3
0
0
0 0
0 0 0 0
0 0 0 0
1 1 1 0
0
0
0 0
0 0 0 0
0 0 0 0
1 1 1 0
0
0
0 0
0 0 0 0
0 0 0 0
1 1 1 0
0
0
0 0
0 0 0 0
0 0 0 0
1 1 1 0
Becomes 0
MELSEC-Q/QnA
(Error code: 4101)
(Error code: 4101)
Device
5 points
Device
b0
D100
D101
4 points
D102
D103
6 - 90

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents