Double Bcd Divide - Divl(57) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

BCD Calculation Instructions
Description
Flags
5-21-10 DOUBLE BCD DIVIDE – DIVL(57)
Limitations
Description
Flags
326
When the execution condition is OFF, MULL(56) is not executed. When the
execution condition is ON, MULL(56) multiplies the eight-digit content of Md
and Md+1 by the content of Mr and Mr+1, and places the result in R to R+3.
R + 3
ER:
Md, Md+1,Mr, or Mr+1 is not BCD.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
CY:
ON when there is a carry in the result.
EQ:
ON when the result is 0.
Ladder Symbols
DIVL(57)
@DIVL(57)
Dd
Dr
R
DM 6141 to DM 6655 cannot be used for R.
When the execution condition is OFF, DIVL(57) is not executed. When the
execution condition is ON, DIVL(57) the eight-digit content of Dd and D+1 is
divided by the content of Dr and Dr+1 and the result is placed in R to R+3: the
quotient in R and R+1, the remainder in R+2 and R+3.
Remainder
R+3
Dr+1
ER:
Dr and Dr+1 contain 0.
Dd, Dd+1, Dr, or Dr+1 is not BCD.
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON when the result is 0.
Md + 1
x
Mr + 1
R + 2
R + 1
Dd: First dividend word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Dr: First divisor word (BCD)
Dd
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Dr
R
IR, SR, AR, DM, EM, HR, LR
R+2
R+1
Dr
Dd+1
Section 5-21
Md
Mr
R
Operand Data Areas
R: First result word
Quotient
R
Dd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents