2 Standard Functions
2 - 60
NX-series Safety Control Unit Instructions Reference Manual (Z931)
MUL
This function multiplies integers or a duration.
If you omit an input or output parameter, a building error will occur.
An error will not occur if the output terminal is not used or if it is connected to an input terminal on the
next instruction.
This function multiplies multiply values
In1
to
InN
and outputs the result to output value
Out.
An overflow occurs if the product of
In1
to
InN
exceeds the valid range of the data type of the multiplica-
tion result. If an overflow occurs, the data types of
In1
to
InN
, the data type of the multiplication result,
and the value of the multiplication result will be as shown in the following table.
Instruction
Name
FB/FUN
Graphic expression
MUL
Multiplication
FUN
Variables
Name
I/O
Description
Valid range
Default
In1 to InN
Values to mul-
tiply
Input
Values to mul-
tiply
Depends on data type.
---
Out
Output value
Output
Output value
Depends on data type.
---
Boolean
Bit strings
Integers
Durations
BOOL
SAFEBOOL
BYTE
SAFEBYTE
WO
RD
SAFEWORD
DWORD
SAFEDWORD
INT
SAFEINT
DINT
SAFEDINT
TI
ME
SAFETIME
In1
OK
OK
OK
OK
OK
OK
In2 to
InN
OK
OK
OK
OK
Out
OK
OK
OK
OK
OK
OK
Function
I/O data types
Value of multiplication results
Integers
Of the product of
In1
to
InN
, the multiplication result will be the value that can be expressed
by the number of bits in the data type of the addition result.
*1*2
*1. For example, if the value of
In1
is INT#16390 and the value of
In2
is INT#2, the multiplication result will be
32780. If an INT variable is set for the output, the value of the multiplication result will be the value that can be
expressed with lower 16 bits of the product (32,780), i.e.,
−
32,756. If a DINT variable is set for the output, the
addition result is DINT#32780.
*2. If the result exceeds the valid range of DINT data, the result will be the value that can be expressed with the
lower 32 bits.
Durations
Of the product of In1 to InN, the multiplication result will be the value that can be expressed
with DWORD data.
*3
MUL
Содержание NX-SL series
Страница 8: ...CONTENTS 6 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 14: ...Terms and Conditions Agreement 12 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 28: ...Sections in this Manual 26 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 98: ...2 Standard Functions 2 64 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 104: ...2 Standard Functions 2 70 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 110: ...2 Standard Functions 2 76 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 130: ...3 Safety Standard Function Blocks 3 20 NX series Safety Control Unit Instructions Reference Manual Z931 ...
Страница 265: ...I 1 I NX series Safety Control Unit Instructions Reference Manual Z931 Index ...
Страница 268: ...I 4 NX series Safety Control Unit Instructions Reference Manual Z931 Index ...
Страница 269: ......