6. BASIC INSTRUCTIONS
6
−
32
MELSEC-A
DB/
(1) Performs division of the BCD data specified at (S1) and the BCD data specified
at (S2), and stores the division result into the device specified at (D).
(2) In regards to the operation result, the quotient and remainder are stored by use
of 64 bits.
Quotient (BCD 8 digits):
Stored to the lower 32 bits.
Remainder (BCD 8 digits): Stored to the upper 32 bits.
(3) (D) will not store the remainder of the division result if it is a bit device.
Execution Conditions
Operation Errors
In the following cases, operation errors and the error flag turns on.
•
A value other than 0 to 9 exists in any digit of (S1), (S2).
•
The divisor (S2) is 0.
Digit higher than the specified digit is regarded as 0.
Multiplication/division
commands
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
OFF
ON
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......