Mitsubishi MELSEC-Q/L Programming Manual page 223

Table of Contents

Advertisement

BK-
(1) Subtracts n points of BIN data from the device designated by
and stores the result from the device designated by
S2
b15
b0
8765
(BIN)
S1
8888
(BIN)
S1
+1
9325
(BIN)
S1
+2
5000
(BIN)
S1
+(n 2)
4352
(BIN)
S1
+(n 1)
(2) Block subtraction is performed in 16-bit units.
(3) The constant designated by
b15
b0
8765
(BIN)
S1
8888
(BIN)
S1
+1
9325
(BIN)
S1
+2
5000
(BIN)
S1
+(n 2)
4352
(BIN)
S1
+(n 1)
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
K 32768
K2
(8000
)
(0002
)
H
H
K32767
K 2
(7FFF
)
(FFFE
)
H
H
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
specified in
,
, or
S1
S2
The ranges of devices starting from the one specified in
overlap by n points (except when the same device is specified in
4101
).
D
The ranges of devices starting from the one specified in
overlap by n points (except when the same device is specified in
).
D
b15
1234
(BIN)
S2
5678
(BIN)
S2
+1
9876
(BIN)
S2
+2
n
4321
(BIN)
S2
+(n 2)
4000
(BIN)
S2
+(n 1)
can be between
32768 and 32767 (BIN 16-bit data).
S2
b15
8880
(BIN)
S2
n
K32766
(7FFE
)
H
32767
(8001
)
H
Error details
.
D
and n-points of BIN data from the device designated by
S1
onward.
D
b0
b15
7531
D
3210
D
+1
551
D
+2
n
679
D
+(n 2)
352
D
+(n 1)
b15
115
D
D
+1
b0
445
D
+2
3880
D
+(n 2)
4528
D
+(n 1)
Q00J/
Q00/
QnH
Q01
and
S1
D
and
S1
and
S2
D
and
S2
BK+, BK+P, BK-, BK-P
b0
(BIN)
(BIN)
(BIN)
n
(BIN)
(BIN)
b0
(BIN)
8
(BIN)
(BIN)
n
(BIN)
(BIN)
QnPH QnPRH
QnU
1
2
3
4
6
7
8
LCPU
221

Advertisement

Table of Contents
loading

Table of Contents