272 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 6 Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
Multiply (MUL)
The MUL instruction multiplies Source A with Source B and places the result in
the Destination.
Operands:
Relay Ladder
Structured Text
Use the multiply sign “∗” as an operator in an expression. This expression
multiplies sourceA by sourceB and stores the result in dest.
See Structured Text Programming
for information on the syntax of expressions
within structured text.
Function Block
Operand Type Format Description
Source A SINT
INT
DINT
REAL
Immediate Tag Value of the multiplicand
A SINT or INT tag converts to a DINT value by sign-extension.
Source B SINT
INT
DINT
REAL
Immediate Tag Value of the multiplier
A SINT or INT tag converts to a DINT value by sign-extension.
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Operand Type Format Description
MUL tag FBD_MATH Structure MUL structure
dest := sourceA * sourceB;