124
When the execution condition is OFF, MUL(32) is not executed and the next
instruction is moved to. When the execution condition is ON, the contents of
Md and Mr are multiplied and the rightmost four digits of the result are placed
in R; the leftmost four digits, in R + 1.
Md word
Mr word
R +1 word
R word
X
ER:
Md or Mr is not in BCD.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
When IR 0000 is ON with the following program, the contents of IR 13 and
DM 05 are multiplied and the result is placed in HR 7 and HR 8. Example
data and calculations are shown below the program.
MUL(32)
13
DM 05
HR 7
0000
R+1 : HR 8
R : HR 7
0
0
0
8
3
9
0
0
MD : IR 13
3
3
5
6
MR : DM 05
0
0
2
5
X
Address
Instruction
Operands
0000
LD
0000
0001
MUL(32)
13
DM
05
HR
7
5-16-4
BCD DIVIDE – DIV(33)
Dd : Dividend word (BCD)
IR, SR, DM, HR, TC, #
Ladder Symbol
Dr : Divisor word (BCD)
IR, SR, DM, HR, TC, #
Operand Data Areas
DIV(33)
Dd
Dr
R
R : First result word (BCD)
IR, DM, HR
R and R + 1 must be in the same data area.
Description
Flags
Example
Limitations
BCD Calculations
Section 5-16
Summary of Contents for SYSMAC C20K
Page 1: ...Cat No W146 E1 5 Programmable Controllers SYSMAC C20K C28K C40K C60K ...
Page 2: ...K type Programmable Controllers OPERATION MANUAL Revised July 1999 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 19: ...7 SECTION 2 Hardware Considerations 2 1 Introduction 2 2 Indicators 2 3 PC Configuration ...