Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 283

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

Advertisement

Processing details
• These instructions divide the BCD 8-digit data in the device specified by (s1) by 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)
5
6
7
8
9
1
2
Quotient
(d)+1
0
0
0
(d)+1, (d)+3: Upper 4 digits
(d), (d)+2: Lower 4 digits
• As the operation result, the quotient and remainder are stored in 64 bits.
• Quotient (BCD 8 digits)Stored in lower 32 bits.
• Remainder (BCD 8 digits)Stored in upper 32 bits.
• When (d) is a bit device, the remainder is not stored.
Operation error
Error code
Description
(SD0)
3400H
The value (divisor) in the device specified by (s2) is 0.
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)+1
÷
3
0
1
2
3
Filled with 0.
(d)
Remainder
0
0
0
4
5
(s2)
4
5
6
7
(d)+3
(d)+2
0
1
2
3
3
6
0
6.2 Arithmetic Operation Instructions
8
6 BASIC INSTRUCTIONS
6
281

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents