Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
25 Applied Instructions (Block Data Operation)
25.1 BK+ / Block Data Addition
603
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)
1) "2n" 32-bit binary data starting from the device specified by are added to "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 .
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 addition instruction is not available in ST.
Instruction Description
BK- Subtracts binary block data.
K32767(H7FFF) + K2(H0002) K-32767(H8001)
K-32768(H8000) + K-2(HFFFE) K32766(H7FFE)
K2,147,483,647(H7FFFFFFF) + K2(H00000002) K-2,147,483,647(H80000001)
K-2,147,483,648(H80000000) + K-2(HFFFFFFFE) K2,147,483,646(H7FFFFFFE)
b31 b0
"2n"
points
+
K1234
K40000
K-1234
K-2000
K4000
b31 b0
"2n"
points
K4000
K1234
K5000
K-1234
K4321
b31 b0
"2n"
points
K5234
K41234
K3766
K-3234
K8321
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
b31 b0
"2n"
points
+
K1234
K40000
K-1234
K-2000
K4000
b31 b0
"2n"
points
K5555
K44321
K3087
K2321
K8321
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
K4312