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