Mul (*); Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

MUL (*)

The MUL (*) instruction multiplies integers and real numbers.
Instruction
MUL (*)
Multiplication
Variables
Name
Meaning
In1 to InN
Values to
multiply
Out
Output
value
*1 However, you can use more instructions if you use them as operators in an expression, such as result:= val1 * val2 *
val3;. You can use up to 64 instructions in one expression.
*2 If you omit the input parameter that connects to InN, the default value is not applied, and a building error will occur. For
example, if N is 3 and the input parameters that connect to In1 and In2 are omitted, the default values are applied, but if
the input parameter that connects to In3 is omitted, a building error will occur.
Bit string
In1 to InN
Out
Function
In a ladder diagram, the MUL (*) instruction multiplies between two and five integers or real numbers
and outputs the result to output value Out. In ST, the MUL instruction multiplies two integers or real
numbers and outputs the result to output value Out.
Values to multiply In1 to InN can have different data types. However, use the combination that data
types to include are existed. If they are different, calculations are performed with the data type that
includes the range of all of the data types. For example, if In1 is INT data and In2 is DINT data, calcula-
tions are performed with DINT data. Here, the multiplication result is DINT data.

NY-series Instructions Reference Manual (W560)

Name
FB/FUN
FUN
I/O
Description
Input
Numbers to multiply
Ladder diagram: N = 2 to 5
*1
ST: N = 2
Output
Output value
OK OK OK OK OK OK OK OK OK OK
OK OK OK OK OK OK OK OK OK OK
Graphic expression
(@)MUL
EN
ENO
In1
Out
:
:
InN
(@)*
EN ENO
In1
Out
:
:
InN
Valid range
Depends on data type.
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=In1 * In2;
Unit
Default
---
*2
1
---
---
Times, durations, dates,
and text strings
2
2-181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents