Double Signed Binary Multiply: *L(421) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Symbol Math Instructions
Flags
Precautions
Examples

3-11-18 DOUBLE SIGNED BINARY MULTIPLY: *L(421)

Purpose
Ladder Symbol
Variations
462
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
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.
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.
a * b
c
*
MOV
Multiplies 8-digit signed hexadecimal data and/or constants.
*L(421)
Md
Mr
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Operation
OFF
ON when the result is 0.
OFF in all other cases.
ON when the leftmost bit of the result is 1.
OFF in all other cases.
Function Block Variables
Multiplicand: a (data type: INT)
a
Multiplier: b (data type: INT)
Result: c (data type: INT)
b
Temporary variable: tmp (data type: WORD, 2-element array)
tmp[0]
tmp[0]
c
Md: 1st multiplicand word
Mr: 1st multiplier word
R: 1st result word
Section 3-11
*L(421)
@*L(421)
Not supported.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents