Bcd Divide - Div(33) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

BCD Calculation Instructions
Limitations
Description
Example
00000
Flag
5-21-6 BCD DIVIDE – DIV(33)
DM 6143 to DM 6655 cannot be used for R.
When the execution condition is OFF, MUL(32) is not executed. When the
execution condition is ON, MUL(32) multiplies Md by the content of Mr, and
places the result In R and R+1.
When IR 00000 is ON with the following program, the contents of IR 013 and
DM 0005 are multiplied and the result is placed in HR 07 and HR 08. Example
data and calculations are shown below the program.
MUL(32)
DM 0005
HR 07
Md: IR 013
3
3
Mr: DM 0005
X
0
0
R+1: HR 08
R: HR 07
0
0
0
8
3
9
ER:
Md and/or Mr 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 Symbol
DIV(33)
Dd
Dr
R
Md
X
Mr
R +1
R
Address Instruction
00000
013
00001
5
6
2
5
0
0
Operand Data Areas
Dd: Dividend word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Dr: Divisor word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
R: First result word (BCD)
IR, SR, AR, DM, EM, HR, LR
Section 5-21
Operands
LD
00000
MUL(32)
013
DM
0005
HR
321
07

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents