Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 279

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

Advertisement

Processing details
• These instructions divide the BCD 4-digit data in the device specified by (s1) by the BCD 4-digit data in the device specified
by (s2), and store the operation result in the device specified by (d).
(s1)
÷
5
6
7
8
0
(d): Quotient
(d)+1: Remainder
• As the operation result, the quotient and remainder are stored in 32 bits.
• Quotient (BCD 4 digits)Stored in lower 16 bits.
• Remainder (BCD 4 digits)Stored in upper 16 bits.
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 9999.
The BCD data in the device specified by (s2) is out of the range, 0 to 9999.
(s2)
(d)
8
7
6
0
0
0
Filled with 0.
(d)+1
6
0
4
2
2
6.2 Arithmetic Operation Instructions
6 BASIC INSTRUCTIONS
277
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents