Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
25 Applied Instructions (Block Data Operation)
25.2 BK- / Block Data Subtraction
607
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
2) A (32-bit) constant from -2,147,483,648 to 2,147,483,647 can be directly specified in the device specified
by .
Related instruction
Cautions
1) When underflow or overflow occurs in the operation result, the following processing is executed. At this
time, the carry flag does not turn ON.
a) In the case of 16-bit operation
b) In the case of 32-bit operation
2) The instruction is provided in the FX
3UC PLC Ver. 2.20 or later.
3) The Block data subtraction instruction is not available in ST.
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.)
Instruction Description
BK+ Adds binary block data.
K-32768(H8000) - K2(H0002) K32766(H7FFE)
K32767(H7FFF) - K-2(HFFFE) K-32767(H8001)
K-2,147,483,648(H80000000) - K2(H00000002) K2,147,483,646(H7FFFFFFE)
K2,147,483,647(H7FFFFFFF) - K-2(HFFFFFFFE) K-2,147,483,647(H80000001)
b31 b0
"2n"
points
K8765
K8888
K50000
K9325
K4352
b31 b0
"2n"
points
K-115
K8
K41120
K445
K-4528
s1
]+1,[
s1
s1
]+3,[
s1
s1
]+2n-3,[
s1
+2
s1
]+5,[
s1
+4
+2n-4
s1
]+2n-1,[
s1
+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
s2
]+1,[
s2
K8880