![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114243.webp)
7 BASIC INSTRUCTIONS
7.2 Arithmetic Operation Instructions
241
7
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)
+
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......