Mitsubishi Electric MELSEC-Q/L Programming Manual page 445

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 points specified in n exceed those of the corresponding device specified
in (S).
The device specified by (D) exceeds the range of the corresponding device.
Program example
• The following program adds, when X1C is turned ON, the data stored at D100 to D103 and the data stored at R0 to R3, and
searches in the results of addition for the minimum value, then, stores it at D200 to D202.
[Ladder Mode]
[Operation]
b15
b0
5542 (BIN)
D100
5857 (BIN)
D101
+
4590 (BIN)
D102
4450 (BIN)
D103
D0
• The following program, when X20 is turned ON, searches for the minimum value from the 32-bit data contained from D0 to
D7, and stores it from D100 to D103.
[Ladder Mode]
[Operation]
D1,D0
57020175 (BIN)
D3,D2
2070166 (BIN)
D5,D4
3596045 (BIN)
D7,D6
69386 (BIN)
b15
b0
5500 (BIN)
R0
D150
4000 (BIN)
R1
D151
4500 (BIN)
R2
D152
6000 (BIN)
R3
D153
4
D101,D100
D102
D103
Q00J/
QnH
Q00/
Q01
[List Mode]
Step
Instruction
b15
b0
11042 (BIN)
9857 (BIN)
9090 (BIN)
10450 (BIN)
D200
9090
D201
3
D202
1
[List Mode]
Step
Instruction
69386
4
1
QnPH
QnPRH
QnU
Device
Minimum value
Location
Quantity
Device
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
LCPU
7
443

Advertisement

Table of Contents
loading

Table of Contents