Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 65

Motion module instructions, standard functions/ function blocks
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
b15
···
1234 (BIN)
5678 (BIN)
-
• If an underflow occurs in the result, the borrow bit is ignored. In this case, SM700 does not turn on.
[- instruction]
(s1)
b15
b0
b15
···
-12345 (BIN)
23456 (BIN)
-
(s1)
b15
b0
b15
···
12345 (BIN)
-23456 (BIN)
-
[-_U instruction]
(s1)
b15
b0
b15
···
56790 (BIN)
56789 (BIN)
-
Operation error
There is no operation error.
(s2)
(d)
b0
b15
···
···
4444 (BIN)
(s2)
(d)
b0
b15
···
···
29735 (BIN)
(s2)
(d)
b0
b15
···
···
-29735 (BIN)
(s2)
(d)
b0
b15
···
···
65535 (BIN)
b0
b0
b0
b0
6.1 Arithmetic Operation Instructions
6 BASIC INSTRUCTIONS
6
63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents