Publication 1762-RM001C-EN-P
Math Instructions 10-5
MUL - Multiply
DIV - Divide
Instruction Type: output
Use the MUL instruction to multiply one value by another value (Source A
x Source B) and place the result in the Destination.
Use the DIV instruction to divide one value by another value (Source A/
Source B) and place the result in the Destination. If the Sources are single
words and the Destination is directly addressed to S:13 (math register),
then the quotient is stored in S:14 and the remainder is stored in S:13. If
long words are used, then the results are rounded.
MUL
Multiply
Source A N7:0
0<
Source B N7:1
0<
Dest N7:2
0<
MUL
DIV
Divide
Source A N7:0
0<
Source B N7:1
0<
Dest N7:2
0<
DIV
Table 10.4 Execution Time for the MUL and DIV Instructions
Controller Instruction Data Size When Rung Is:
True False
MicroLogix 1200 MUL word 6.8
µ
s0.0
µ
s
long word 31.9
µ
s0.0
µ
s
DIV word 12.2
µ
s0.0
µ
s
long word 42.8
µ
s0.0
µ
s
MicroLogix 1500 MUL word 5.8
µ
s0.0
µ
s
long word 27.6
µ
s0.1
µ
s
DIV word 10.3
µ
s0.0
µ
s
long word 36.7
µ
s0.0
µ
s