Multiplication - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Multiplication

MUL_E
High
Basic
Process
performance
Structured ladder/FBD
MUL_E
EN
ENO
s1
s2
to
s28
The following function(s) can go in the dotted squares.
MUL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Performs multiplication ((s1)  (s2)  (s28)) on word (signed), double word (signed), single-precision real or double-
precision real type data input to (s1) to (s28), and outputs the operation result from (d) in the same data type as that of (s1)
to (s28).
Ex.
Word (signed) type data
s1
100
Word (signed) type
• The values to be input to (s1) to (s28) are word (signed), double word (signed), single-precision real or double-precision
real type data.
• The number of pins of (s) can be changed in the range from 2 to 28.
• If an underflow/overflow occurs in the operation result, data is output from (d) as follows.
Word (signed) type data
• No operation error occurs even if an underflow/overflow occurs. In case of MUL_E, TRUE is output from ENO.
• Even if the operation result exceeds the word (signed) type data range, data is output in word (signed) type. (Although the operation result is 32-bit data, data
is output in word (signed) type with the high-order 16 bits discarded.)
• If the operation result exceeds the word (signed) type data range, convert the input values to the double word (signed) type data by the INT_TO_DINT
function and perform the operation using the converted data.
Double word (signed) type data
• No operation error occurs even if an underflow/overflow occurs. In case of MUL_E, TRUE is output from ENO.
• Even if the operation result exceeds the double word (signed) data range, data is output in double word (signed) type. (Although the operation result is 64-bit
data, data is output in double word (signed) type with the high-order 32 bits discarded.)
• If the operation result exceeds the double word (signed) type data range, convert the input values to the single-precision real type data by the
DINT_TO_REAL function and perform the operation using the converted data.
5 APPLICATION FUNCTIONS
128
5.3 Standard Arithmetic Functions
Redundant Universal
LCPU
ST
ENO:=
MUL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1 to s28(_IN)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
s2
15
Word (signed) type
(EN, s1, s2 ... s28, d);
d
1500
Word (signed) type
Data type
Bit
ANY_NUM
Bit
ANY_NUM

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents