EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC Q Series

Mitsubishi MELSEC Q Series Structured Programming Manual

Mitsubishi MELSEC Q Series
268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #160 background imageLoading...
Page #160 background image
5-126
5.3 Standard Arithmetic Functions
5.3.2 Multiplication
MUL(_E)
(4) If an underflow/overflow occurs in the operation result, data is output from as follows.
(a) 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.
(b) 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.
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
If the operation result exceeds the data type range, convert the data type of the
input data before the operation.
EN ENO
TRUE (Operation execution) TRUE Operation output value
FALSE (Operation stop)
FALSE
*1
Undefined value
d
d
d
d
d

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals