Double Bcd Add - Addl(54) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

BCD Calculation Instructions
Limitations
Description
Flags
Example
00000
Dd: HR 09
0
0
0
5-21-7 DOUBLE BCD ADD – ADDL(54)
Limitations
322
R and R+1 must be in the same data area. DM 6143 to DM 6655 cannot be
used for R.
When the execution condition is OFF, DIV(33) is not executed and the pro-
gram moves to the next instruction. When the execution condition is ON, Dd is
divided by Dr and the result is placed in R and R + 1: the quotient in R and the
remainder in R + 1.
ER:
Dd or Dr is not in 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.
When IR 00000 is ON with the following program, the content of IR 216 is
divided by the content of HR 09 and the result is placed in DM 0017 and DM
0018. Example data and calculations are shown below the program.
Quotient
Remainder
R: DM 0017
1
1
5
0
Dd: IR 216
3
3
4
5
Ladder Symbols
ADDL(54)
Au
Ad
R
DM 6143 to DM 6655 cannot be used for R.
Remainder
R+1
Dr
Address Instruction
DIV(33)
216
HR 09
DM 0017
R + 1: DM 0018
0
0
0
2
2
@ADDL(54)
Au
Ad
R
Section 5-21
Quotient
R
Dd
Operands
00000
LD
00001
DIV(33)
HR
DM
Operand Data Areas
Au: First augend word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ad: First addend word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: First result word
IR, SR, AR, DM, EM, HR, LR
00000
216
09
0017

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents