Mitsubishi MELSEC Q Series Programming Manual page 262

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

BK+(P),BK-(P)
(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.
K32767
(7FFF
K 32767
(8001
BK-
(1) Subtracts n points of BIN data from the device designated by
from the device designated by
onward.
S1
S1
+1
+2
S1
S1
+(n 2)
S1
+(n 1)
(2) Block subtraction is performed in 16-bit units.
(3) The constant designated by
S1
S1
+1
S1
+2
S1
+(n 2)
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
(8000
K32767
(7FFF
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.
• The n-bit range from the
• The device ranges of
and
• The device ranges of
and
6-60
+K2
K 32767
)
(0002
)
(8001
)
H
H
H
K32767
+K 2
)
(FFFE
)
(7FFF
)
H
H
H
S2
b15
b0
8765
(BIN)
S2
8888
(BIN)
S2
9325
(BIN)
S2
n
5000
(BIN)
S2
4352
(BIN)
S2
can be between
S2
b15
b0
8765
(BIN)
8888
(BIN)
9325
(BIN)
S2
n
5000
(BIN)
4352
(BIN)
K2
K32766
)
(0002
)
(7FFE
H
H
H
32767
K 2
)
(FFFE
)
(8001
)
H
H
H
,
S1
S2
and
S1
)
D
and
S2
)
D
and stores the result from the device designated by
b15
b0
1234
(BIN)
5678
(BIN)
+1
9876
(BIN)
+2
n
4321
(BIN)
+(n 2)
4000
(BIN)
+(n 1)
32768 and 32767 (BIN 16-bit data).
b15
b0
8880
(BIN)
)
or
device exceeds the range of that device.
D
overlap. (Except when the same device is assigned to
D
overlap. (Except when the same device is assigned to
D
and n-points of BIN data
S1
D
b15
b0
7531
(BIN)
D
3210
(BIN)
D
+1
551
(BIN)
D
+2
n
679
(BIN)
D
+(n 2)
352
(BIN)
D
+(n 1)
b15
b0
115
(BIN)
D
8
(BIN)
D
+1
445
(BIN)
D
+2
n
3880
(BIN)
D
+(n 2)
4528
(BIN)
D
+(n 1)
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
S1
S2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents