Bcd Multiply - Mul(32) - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

BCD Calculations
5-17-9
BCD MULTIPLY – MUL(32)
Description
Example
00000
Flags
Ladder Symbols
MUL(32)
@MUL(32)
Md
Mr
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.
Md
X
Mr
R +1
R
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. Exam-
ple data and calculations are shown below the program.
Md: IR 013
3
3
X
Mr: DM 0005
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 DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
CY:
ON when there is a carry in the result.
EQ:
ON when the result is 0.
IR, SR, AR, DM, HR, TC, LR, #
Md
IR, SR, AR, DM, HR, TC, LR, #
Mr
R
Address Instruction
MUL(32)
00000
013
00001
DM 0005
HR 07
5
6
2
5
0
0
Section 5-17
Operand Data Areas
Md: Multiplicand (BCD)
Mr: Multiplier (BCD)
R: First result word
IR, AR, DM, HR LR
Operands
LD
00000
MUL(32)
DM
00005
HR
013
07
171

Advertisement

Table of Contents
loading

Table of Contents