Double Bcd Multiply - Mull(56); Bcd Divide - Div(33) - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

BCD Calculations
5-19-10 DOUBLE BCD MULTIPLY – MULL(56)
Limitations
Description
Flags
5-19-11 BCD DIVIDE – DIV(33)
Limitations
212
Ladder Symbols
MULL(56)
@MULL(56)
Md
Mr
R
Md and Md+1 must be in the same data area, as must Mr and Mr+1.
R and R+3 must be in the same data area.
When the execution condition is OFF, MULL(56) is not executed. When the exe-
cution 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.
ER:
Md, Md+1,Mr, or Mr+1 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.
Ladder Symbol
DIV(33)
Dd
Dr
R
R and R+1 must be in the same data area.
Md: First multiplicand word (BCD)
Md
Mr
R
Md + 1
x
Mr + 1
R + 3
R + 2
R + 1
IR, SR, AR, DM, HR, TC, LR, #
IR, SR, AR, DM, HR, TC, LR, #
Section 5-19
Operand Data Areas
IR, SR, AR, DM, HR, TC, LR
Mr: First multiplier word (BCD)
IR, SR, AR, DM, HR, TC, LR
R: First result word
IR, SR, AR, DM, HR LR
Md
Mr
R
Operand Data Areas
Dd: Dividend word (BCD)
Dr: Divisor word (BCD)
R: First result word (BCD)
IR, SR, AR, DM, HR, LR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents