Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 187

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions add the 16-bit binary data in the device specified by (s1) and the 16-bit binary data in the device
specified by (s2), and store the addition result in the device specified by (d).
(s1)
b15
b0
b15
···
5678 (BIN)
+
1234 (BIN)
• When underflow or overflow occurs in the operation result, the following processing is executed. In this case, the carry flag
(SM700, SM8022) does not turn ON.
In case of +(P)
(s1)
b15
b0
b15
···
2
32767
(BIN)
+
(s1)
b15
b0
b15
···
-32768
(BIN)
+
-2
In case of +(P)(_U)
(s1)
b15
b0
b15
···
65535
(BIN)
+
2
Operation error
There is no operation error.
(s2)
(d)
b0
b15
···
···
6912 (BIN)
(s2)
(d)
b0
b15
···
···
(BIN)
-32767
(BIN)
(s2)
(d)
b0
b15
···
···
(BIN)
32766
(BIN)
(s2)
(d)
b0
b15
···
···
(BIN)
1
(BIN)
b0
b0
b0
b0
7.2 Arithmetic Operation Instructions
7 BASIC INSTRUCTIONS
185
7

Hide quick links:

Advertisement

loading