Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 289

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions add the (n) points of 32-bit binary data from the device specified by (s1) and the (n) points of 32-bit
binary data from the device specified by (s2) or the constant, and store the operation result in the device specified by (d)
and later.
• Specify data in units of 32 bits.
Ex.
When a device is specified by (s2) (signed value specification)
b31
∙∙∙
(s1)+1,
(s1)
-30000
(BIN)
(s1)+3,
(s1)+2
40000
(BIN)
(s1)+5,
(s1)+4
-50000
(BIN)
(s1)+2(n)-1, (s1)+2(n)-2
60000
(BIN)
When a constant is specified by (s2) (signed value specification)
b31
∙∙∙
(s1)+1,
(s1)
-30000
(s1)+3,
(s1)+2
40000
(s1)+5,
(s1)+4
-50000
(s1)+2(n)-1,
(s1)+2(n)-2
60000
• Operation is possible when the same device is specified by (s1) or (s2) and (d). However, if the device range of (n) points
from (s1) or (s2) and the device range of (n) points from (d) are partly overlapped, an error results.
Ex.
When the four points of device from that specified by (s2) and (d) exactly match
b31
∙∙∙
b0
W1, W0
W3, W2
W5, W4
W7, W6
(1) Operation is possible because they exactly match.
When four points of device from that specified by (s2) and (d) are partly overlapped
b31
∙∙∙
b0
W1, W0
W3, W2
W5, W4
W7, W6
(1) An operation error results because they partly match.
• If (n) is 0, no processing is performed.
• If an overflow occurs, the result will be as follows. In this case, SM700 does not turn on.
When a signed value is specified
K2147483647
K2
+
(H7FFFFFFF)
(H00000002)
K-2147483647
K-2
+
(H80000001)
(HFFFFFFFE)
b0
(s2)+1,
(s2)
(s2)+3,
(s2)+2
(s2)+5,
(s2)+4
(n)
+
(s2)+2(n)-1, (s2)+2(n)-2
b0
(BIN)
(BIN)
(BIN)
(n)
+
(s2)+1, (s2)
(BIN)
b31
∙∙∙
b0
b31
∙∙∙
D1, D0
D3, D2
D5, D4
D7, D6
b31
∙∙∙
b0
D1, D0
b31
∙∙∙
D3, D2
D5, D4
D7, D6
D9, D8
K-2147483647
(H80000001)
K2147483647
(H7FFFFFFF)
b31
∙∙∙
b0
50000
(BIN)
20000
(BIN)
-10000
(BIN)
(n)
-20000
(BIN)
(d)+1,
b31
∙∙∙
b0
(d)+3,
50000
(BIN)
(d)+5,
(d)+2(n)-1,
b0
(1)
b0
(1)
When an unsigned value is specified
K4294967295
K1
+
(HFFFFFFFF)
(H00000001)
6.2 Arithmetic Operation Instructions
b31
∙∙∙
b0
(d)
20000
(BIN)
(d)+1,
60000
(BIN)
(d)+3,
(d)+2
(d)+4
-60000
(BIN)
(d)+5,
(d)+2(n)-1, (d)+2(n)-2
(BIN)
40000
b31
∙∙∙
b0
(d)
20000
(BIN)
90000
(BIN)
(d)+2
(d)+4
0
(BIN)
(BIN)
(d)+2(n)-2
110000
K0
(H00000000)
6 BASIC INSTRUCTIONS
(n)
6
(n)
287

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents