Standard Arithmetic Functions; Add_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

Standard Arithmetic Functions

5.3.1

ADD_E

Outline
This function performs addition using two values (A + B = C), and outputs the operation result.
1. Format
Function name
ADD_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 addition (
precision) data stored in devices specified in
specified in
Example: When the data type is word [signed]
1234
(Word
s1
[signed] data)
136
FX
3U(C)
Expression in each language
Structured ladder
ADD_E
X000
EN
D0
_IN
D10
_IN
Execution condition
...)
Data for addition or word device which stores such data
s
Execution status
Word device which will store the operation result
(
)
d
s1
using the data type of data stored in devices specified in
d
+
5678
s2
(Word
[signed] data)
FX
FX
FX
3G
2N(C)
ADD_E(EN,_IN,_IN,Output
label);
ENO
Example:
ADD_E(X000,D0,D10,D20);
*1
D20
Description
+
) using word [signed]/double word [signed]/float (single
s2
and
, and outputs the operation result to a device
s1
s2
6912
(Word
d
[signed] data)
5.3 Standard Arithmetic Functions
FX
FX
/FX
1N(C)
1S
U
2C
ST
Bit
ANY_NUM
Bit
ANY_NUM
and
s1
s2
FX
FX
0N
0(S)
Data type
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents