Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 240

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

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 operation result in the device specified by (d).
(s1)
b15
b0
···
5678 (BIN)
+
• If an overflow occurs in the result, the carry bit is ignored. In this case, SM700 does not turn on.
[+(P) instruction]
(s1)
b15
b0
···
-12345 (BIN)
+
(s1)
b15
b0
···
12345 (BIN)
+
[+(P)_U instruction]
(s1)
b15
b0
···
56789 (BIN)
+
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
238
6.2 Arithmetic Operation Instructions
(s2)
b15
b0
b15
···
1234 (BIN)
(s2)
b15
b0
b15
···
-23456 (BIN)
(s2)
b15
b0
b15
···
23456 (BIN)
(s2)
b15
b0
b15
···
12345 (BIN)
(d)
b0
···
6912 (BIN)
(d)
b0
···
-3033 (BIN)
(d)
b0
···
3034 (BIN)
(d)
b0
···
3599 (BIN)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF