Mul_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.3.3

MUL_E

Outline
This function performs multiplication using two values (A × B = C), and outputs the operation result.
1. Format
Function name
MUL_E
*1.
Output variable
2. Set data
Variable
EN
Input
variable
_IN (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function performs multiplication (
precision) data stored in devices specified in
specified in
Example: When the data type is word [signed]
100
(Word
s1
[signed] data)
Cautions
1) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
2) Even if underflow or overflow occurs in the operation result, it is not regarded as an operation error.
"TRUE" is output from ENO.
However, note that the obtained operation result is not accurate in this case.
140
FX
3U(C)
Expression in each language
Structured ladder
X000
MUL_E
EN
D0
_IN
D10
_IN
Execution condition
...)
Data for multiplication or word device which stores such data
s1
Execution status
Word device which will store the operation result
(
)
d
using the data type of data stored in devices specified in
d
15
(Word
s2
[signed] data)
FX
3G
FX
2N(C)
FX
1N(C)
MUL_E(EN,_IN,_IN,Output
label);
ENO
Example:
MUL_E(X000,D0,D10,D20);
*1
D20
Description
×
) using word [signed]/double word [signed]/float (single
s1
s2
and
, and outputs the operation result to a device
s1
s2
1500
(Word
d
[signed] data)
5.3 Standard Arithmetic Functions
FX
1S
FX
U
/FX
2C
FX
0N
ST
Data type
Bit
ANY_NUM
Bit
ANY_NUM
and
.
s1
s2
FX
0(S)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents