25 Applied Instructions (Block Data Operation)
25.2 BK- / Block Data Subtraction
606
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (BK-/BK-P)
1) "n" 16-bit binary data starting from the device specified by are subtracted from "n" 16-bit binary data
starting from the device specified by , and the operation result is stored in "n" points starting from the
device specified by .
2) A (16-bit) constant from -32768 to 32767 can be directly specified in .
2. 32-bit operation (DBK-/DBK-P)
1) "2n" 32-bit binary data starting from the device specified by are subtracted from "2n" 32-bit binary
data starting from the device specified by , and the operation result is stored in "2n" points starting
from the device specified by .
BK-
EN ENO
d
s1
s2
n
Subtracted constant or head device storing subtraction data
Command
input
Head device storing subtraction data
Number of pieces of data
Head device storing operation result
+0
b15 b0
+1
+2
+(n-2)
+(n-1)
"n"
points
+0
b15 b0
+1
+2
+(n-2)
+(n-1)
"n"
points
+0
b15 b0
+1
+2
+(n-2)
+(n-1)
"n"
points
K8765
K8888
K5000
K9325
K4352
K1234
K5678
K4321
K9876
K4000
K7531
K3210
K679
K-551
K352
ds2s1
+0
b15 b0
+1
+2
+(n-2)
+(n-1)
"n"
points
+0
b15 b0
+1
+2
+(n-2)
+(n-1)
"n"
points
K8765
K8888
K5000
K9325
K4352
K8880
K-115
K8
K-3880
K445
K-4528
s2
ds1
DBK-
EN ENO
d
s1
s2
n
Command
input
Head device storing subtraction data
Subtracted constant or head device storing subtraction data
Number of pieces of data
Head device storing operation result
b31 b0
"2n"
points
—
K8765
K8888
K50000
K9325
K4352
b31 b0
"2n"
points
K1234
K5678
K4321
K9876
K4000
b31 b0
"2n"
points
K7531
K3210
K45679
K-551
K352
s1
]+1,[
s1
s1
]+3,[
s1
s1
]+2n-3,[
s1
+2
s1
]+5,[
s1
+4
+2n-4
s1
]+2n-1,[
s1
+2n-2
s2
]+1,[
s2
s2
]+3,[
s2
s2
]+2n-3,[
s2
+2
s2
]+5,[
s2
+4
+2n-4
s2
]+2n-1,[
s2
+2n-2
d
]+1,[
d
d
]+3,[
d
d
]+2n-3,[
d
+2
d
]+5,[
d
+4
+2n-4
d
]+2n-1,[
d
+2n-2