25 Applied Instructions (Block Data Operation)
25.1 BK+ / Block Data Addition
604
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When "n" ("2n" in 32-bit operation) devices starting from the devices specified by , and/or
exceed the corresponding device range (error code: K6706).
2) When "n" ("2n" in 32-bit operation) devices starting from the device specified by overlap "n" ("2n" in
32-bit operation) devices starting from the device specified by (error code: K6706.)
3) When "n" ("2n" in 32-bit operation) devices starting from the device specified by overlap "n" ("2n" in
32-bit operation) devices starting from the device specified by (error code: K6706.)
Program examples
In the program shown below, the specified number of pieces of data stored in D150 to D0 are added to the
specified number of pieces of data stored in D100 to D0 when X020 is set to ON, and the operation result is
stored in D200 and later
b15 b0
+
6789
7821
3520
5432
4D0
b15 b0
1234
2032
-1000
-3252
D200
b15 b0
8023
9853
2520
2180
X020
When D0 is "4"
BK+
EN ENO
d
s1
s2
n
D100
D150
D0
D200
D201
D202
D203
D150
D151
D152
D153
D100
D101
D102
D103
[ Structured ladder/FBD]