
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
207
6
Processing details
• These instructions add (n) point(s) of 32-bit binary data from the device specified by (s1) and the (n) point(s) of 32-bit binary
data from the device specified by (s2), and store the results of addition in the device specified by (d).
• Block addition is performed in 32-bit units.
Ex.
If device is specified for (s2) (signed)
If constant is specified for (s2) (signed)
• Operation is enabled when (s1) or (s2) have been specified by same device as (d) (perfect match). An error occurs if the
device range of (n) point(s) from (s1) or (s2) partially matches (overlaps) the device range of (n) point(s) from (d).
Ex.
If 4 points of the device from (s2) and (d) match
If 4 points of the device from (s2), (d) match partially
• If the value specified for (n) is 0, processing is not performed.
• If an underflow or overflow occurs for operation result, the result will be as follows. In this case, the carry flag (SM700) does
not turn ON.
(1) Because it is a perfect match, operation is possible.
(1) An operation error occurs if they partially match.
If signed is specified
If unsigned is specified
···
···
···
···
···
···
+
20000
60000
-60000
40000
(n)
-30000
(BIN)
40000
(BIN)
-50000
(BIN)
60000
(BIN)
(n)
b31
b0
50000
(BIN)
20000
(BIN)
-10000
(BIN)
-20000
(BIN)
(BIN)
(BIN)
(BIN)
(BIN)
(n)
b31
b0
(s1)
(s1)+1,
(s1)+2
(s1)+(2n-1), (s1)+(2n-2)
(s1)+4
(s1)+3,
(s1)+5,
(s2)
(s2)+1,
(s2)+2
(s2)+(2n-1), (s2)+(2n-2)
(s2)+4
(s2)+3,
(s2)+5,
···
(d)
(d)+2
(d)+4
(d)+1,
(d)+3,
(d)+5,
(d)+(2n-1), (d)+(2n-2)
···
b31
b0
···
∙∙∙
∙∙∙
∙∙∙
∙∙∙
+
20000
90000
0
110000
(n)
-30000
(BIN)
40000
(BIN)
-50000
(BIN)
60000
(BIN)
(n)
b31
b0
(BIN)
(BIN)
(BIN)
(BIN)
(s1)
(s1)+1,
(s1)+2
(s1)+(2n-2)
(s1)+(2n-1),
(s1)+4
(s1)+3,
(s1)+5,
(s2)+1, (s2)
∙∙∙
(d)
(d)+2
(d)+(2n-2)
(d)+4
(d)+1,
(d)+3,
(d)+5,
(d)+(2n-1),
b31
b0
∙∙∙
∙∙∙
b31
b0
50000
(BIN)
W1, W0
b31
b0
W3, W2
W5, W4
W7, W6
D1, D0
b31
···
···
···
b0
D3, D2
D5, D4
D7, D6
b31
(1)
b0
W1, W0
b31
b0
W3, W2
W5, W4
W7, W6
D1, D0
b31
···
···
···
b0
D3, D2
D5, D4
D7, D6
D9, D8
b31
(1)
b0
K2147483647
(7FFFFFFFH)
K2
(00000002H)
K-2147483647
(80000001H)
K-2147483647
(80000001H)
K-2
(FFFFFFFEH)
+
+
K2147483647
(7FFFFFFFH)
K4294967295
(FFFFFFFFH)
K1
(00000001H)
K0
(00000000H)
+
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......