Mitsubishi MELSEC-Q/L Programming Manual page 376

Table of Contents

Advertisement

MIN, MINP, DMIN, DMINP
Operation Error
(1) 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
code
The points specified in n exceed those of the corresponding device
4101
specified in
.
S
The device specified in
4101
device.
Program Example
(1) 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
(2) 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]
57020175 (BIN)
D1,D0
2070166 (BIN)
D3,D2
D5,D4
3596045 (BIN)
D7,D6
69386 (BIN)
374
Error details
exceeds the range of the corresponding
D
[List Mode]
Step
b15
b0
5500 (BIN)
R0
4000 (BIN)
R1
+
4500 (BIN)
R2
6000 (BIN)
R3
4
[List Mode]
Step
D101,D100
D102
D103
Q00J/
Q00/
QnH
Q01
––
––
––
––
Instruction
Device
b15
b0
11042 (BIN)
D150
9857 (BIN)
D151
9090 (BIN)
D152
10450 (BIN)
D153
D200
9090
D201
D202
Device
Instruction
69386
4
1
QnPH QnPRH
QnU
––
––
––
––
Minimum value
3
Location
1
Quantity
LCPU

Advertisement

Table of Contents
loading

Table of Contents