186
DBKCMP
, DBKCMP
P
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 compares the value data stored at R0 to R5 with the value data stored at D20 to D25, and then
stores the operation result into Y0 to Y2, when M0 is turned on.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program compares the constant with the value data stored at D0 to D9, and then stores the operation result
into D10.5 to D10.9, when M0 is turned on.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
A negative value is specified for n.
––
––
––
––
4101
The points specified in n exceeds those of each device specified in ,
, or .
The ranges of devices starting from the one specified in and
overlap by n points.
The ranges of devices starting from the one specified in and
overlap by n points.
––
––
––
––
S1
S2
D
S1
D
S2
D
Step
Instruction
Device
(
0
)
OFF
(
1
)
ON
(
1
)
ON
Y1
Y0
Y2
b31
b0
-2147483000
1
2147482999
b31
b0
-2147483000
0
2147483000
R3
,
R2
R5
,
R4
R1
,
R0
D23
,
D22
D25
,
D24
D21
,
D20
Step
Instruction
Device
D10.7
D10.8
D10.9
D10.5
D10.6
50000
-32768
-70000
32767
0
D5
,
D4
D7
,
D6
D9
,
D8
D3
,
D2
D1
,
D0
(
0
)
OFF
(
0
)
OFF
(
0
)
OFF
(
1
)
ON
(
0
)
OFF
b31
b0
-60000
b0
b31