Mitsubishi Electric MELSEC-Q/L Programming Manual page 441

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4101
The range of the values in n exceeds that of the device specified by (S).
The range of the values in n exceeds that of the device specified by (D).
Program example
• The following program dissociates the data at D10 to D12 in byte units and stores it at D20 to D25 when X0 is turned ON.
[Ladder Mode]
[Operation]
b15
b8
b7
FD
D10
H
57
D11
H
34
D12
H
• The following program links the lower 8 bits of data from D20 through D25 and stores the result at D10 to D12 when X0 is
turned ON.
[Ladder Mode]
[Operation]
b15
00
D20
H
31
D21
H
36
D22
H
6 bytes
44
D23
H
48
D24
H
49
D25
H
Upper byte is ignored.
b0
58
H
E2
H
44
H
b8
b7
b0
78
H
12
H
49
H
55
H
67
H
31
H
Q00J/
QnH
QnPH
Q00/
Q01
[List Mode]
Instruction
Step
b15
b8
00
D20
H
00
D21
H
00
D22
H
00
D23
H
00
D24
H
00
D25
H
[List Mode]
Step
Instruction
b15
12
D10
H
55
D11
H
31
D12
H
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
QnPRH
QnU
LCPU
Device
b7
b0
58
H
FD
H
E2
H
6 bytes
57
H
44
H
34
H
Device
b8
b7
b0
78
H
49
H
67
H
7
439

Advertisement

Table of Contents
loading

Table of Contents