EasyManua.ls Logo

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008

Omron SYSMAC CJ - REFERENCE MANUAL 08-2008
1405 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
461
Symbol Math Instructions Section 3-11
Flags
Precautions When *(420) is executed, the Error Flag will turn OFF.
If as a result of the multiplication, the content of R is 0000 hex, the Equals
Flag will turn ON.
If as a result of the multiplication, the content of the leftmost bit of R+1 and R
is 1, the Negative Flag will turn ON.
Examples When CIO 000000 is ON in the following example, D00100 and D00110 will
be multiplied as 4-digit signed hexadecimal values and the result will be out-
put to D00120.
Example in Function Block Definition
In the following example, an array variable is used to get the result from the
function block as one word.
3-11-18DOUBLE SIGNED BINARY MULTIPLY: *L(421)
Purpose Multiplies 8-digit signed hexadecimal data and/or constants.
Ladder Symbol
Variations
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the result is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of the result is 1.
OFF in all other cases.
*
a
b
tmp[0]
MOV
tmp[0]
c
a * b c
Function Block Variables
Multiplicand: a (data type: INT)
Multiplier: b (data type: INT)
Result: c (data type: INT)
Temporary variable: tmp (data type: WORD, 2-element array
)
*L(421)
R
Md
Mr
Md: 1st multiplicand word
Mr: 1st multiplier word
R: 1st result word
Variations Executed Each Cycle for ON Condition *L(421)
Executed Once for Upward Differentiation @*L(421)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.

Table of Contents

Related product manuals