EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 618

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.19 Block Data Operation
616
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
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) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project.
Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
3) The FX
3UC PLC of V. 2.20 or later supports this instruction.
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

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals