Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 275

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

Advertisement

Processing details
• These instructions subtract the BCD 8-digit data in the device specified by (s2) from the BCD 8-digit data in the device
specified by (s1), and store the operation result in the device specified by (d).
(s1)+1
(s1)
(s2)+1
5
6
7 8 9 1 2 3
-
0
1
2 3 4 5 6 7
(d)+1, (s1)+1, (s2)+1: Upper 4 digits
(d), (s1), (s2): Lower 4 digits
• If an underflow occurs, the result will be as follows. In this case, SM700 does not turn on.
1
2
3 4 5 6 7 8
-
1
2
3 4 5 6 7 9
Operation error
Error code
Description
(SD0)
3405H
The BCD data in the device specified by (s1) is out of the range, 0 to 99999999.
The BCD data in the device specified by (s2) is out of the range, 0 to 99999999.
(s2)
(d)+1
(d)
5
5
5 5 4 5 5 6
Filled with 0.
9
9
9 9 9 9 9 9
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
6
273

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents