Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 244

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

Advertisement

Processing details
• These instructions subtract the 16-bit binary data in the device specified by (s2) from the 16-bit binary data in the device
specified by (s1), and store the operation result in the device specified by (d).
(s1)
b15
b0
···
5678 (BIN)
-
• If an underflow occurs in the result, the borrow 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
242
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
···
4444 (BIN)
(d)
b0
···
-3033 (BIN)
(d)
b0
···
3034 (BIN)
(d)
b0
···
3599 (BIN)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents