Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 271

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

Advertisement

Processing details
• These instructions add the BCD 8-digit data in the device specified by (s1) and the BCD 8-digit data in the device specified
by (s2), 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 the result exceeds 99999999, the carry bit is ignored. In this case, SM700 does not turn on.
9
9
0 0 0 0 0 0
+
0
1
6 5 4 3 2 1
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
8
0 2 3 6 9 0
Filled with 0.
0
0
6 5 4 3 2 1
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
6
269

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents