20 ARITHMETIC OPERATION FUNCTIONS
20.2 Multiplication
989
20
20.2
Multiplication
MUL(_E)
These functions output the product input values ((s1)
(s2)
...
(s28)).
*1 The input variable "s" can be changed in the range of 2 to 28.
Setting data
■
Descriptions, types, and data types
Processing details
■
Operation processing
• These functions multiply the INT, DINT, or REAL type data input to (s1) to (s28) ((s1)
(s2)
...
(s28)), and output the
operation result from (d) in the same data type as (s).
Ex.
Data type is INT
• A value input to (s1) to (s28) is the INT, DINT, or REAL type data value.
• If an underflow occurs in the operation result, the result will be output as follows from (d).
• When the operation result is 0, the zero flag (SM8020) turns on.
Ladder diagram, FBD/LD
Structured text
[Without EN/ENO]
[With EN/ENO]
[Without EN/ENO]
d:=MUL(s1,s2);
[With EN/ENO]
d:=MUL_E(EN,ENO,s1,s2);
Argument
Description
Type
Data type
EN
Execution condition (TRUE: Execution, FALSE: Stop)
Input variable
BOOL
s1(IN1) to s28(IN28)
Input
Input variable
ANY_NUM
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
Output variable
BOOL
d(MUL(_E))
Output
Output variable
ANY_NUM
Data type is INT
Data type is DINT
Data type is REAL
• Even if underflow or overflow occurs in the
operation result, it is not regarded as an operation
error. "MUL_E" outputs "TRUE" from ENO.
• Even when the operation result exceeds the INT
type data range, the INT type data is output. (The
operation result is the DINT type, however, the
output data is the INT type data with high-order 16
bits deleted.)
• When the operation result exceeds the INT type
data, convert an input value into the DINT type
data by INT_TO_DINT then perform the
operation.
• Even if underflow or overflow occurs in the
operation result, it is not regarded as an
operation error. "MUL_E" outputs "TRUE" from
ENO.
• Even when the operation result exceeds the
DINT type data range, the DINT type data is
output. (The operation result is the 64-bit data,
however, the output data is the DINT type data
with high-order 32 bits deleted.)
• When the operation result exceeds the DINT
type data, convert an input value into the REAL
type data by DINT_TO_REAL then perform the
operation.
An operation error occurs and an undefined value
is output.
s1
d
s2
EN
ENO
d
s1
s2
INT
100
INT
15
INT
1500
(s1)
(s2)
(d)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......