224
DBK+, DBK+P, DBK-, DBK-P
(5)
specifies out of the range of n-point devices starting from the device specified by and .
However, and can specify the same device.
(6) The following will happen if an overflow occurs in an operation result:
The carry flag in this case is not turned on.
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 the value data stored at R0 to R5 to the constant, and then stores the operation result into
D30 to D35, when M0 is turned on.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program subtracts the value data stored at D50 to D59 from the value data stored at D100 to D109, and
then stores the operation result into R100 to R109, when M0 is turned on.
[Ladder Mode]
[List Mode]
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 exceed those of the corresponding device
specified in , , or .
The ranges of devices starting from the one specified in and
overlap by n points (except when the same device is specified in and
).
The ranges of devices starting from the one specified in and
overlap by n points (except when the same device is specified in and
).
D
S1
S2
S1
S2
K2147483647
(
7FFFFFFF
H
)
K 2147483647
(
80000001
H
)
K2
K 2
K 2147483647
K2147483647
(
00000002
H
) (
80000001
H
)
(
FFFFFFFE
H
) (
7FFFFFFF
H
)
S1
S2
D
S1
D
S1
D
S2
D
S2
D
Step
Instruction
Device
123456
b31
b0
600000
-800000
-123456
R3
,
R2
R5
,
R4
R1
,
R0
b31
b0
723456
-676544
0
D33
,
D32
D35
,
D34
D31
,
D30
+
Step
Instruction
Device