Sub_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.2

SUB_E

Outline
This function performs subtraction using two values (A - B = C), and outputs the operation result.
1. Format
Function name
SUB_E
*1.
Output variable
2. Set data
Variable
EN
Input
_IN1 (
variable
_IN2 (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function performs subtraction (
precision) data stored in devices specified in
specified in
Example: When the data type is word [signed]
12345
s1
(Word
[signed] data)
138
FX
3U(C)
Expression in each language
Structured ladder
X000
SUB_E
EN
D0
_IN1
D10
_IN2
Execution condition
Data to be subtracted or word device which stores such data
)
s1
Data for subtraction or word device which stores such data
)
s2
Execution status
Word device which will store the operation result
(
)
d
using the data type of data stored in devices specified in
d
-
6789
s2
(Word
[signed] data)
FX
3G
FX
2N(C)
FX
1N(C)
SUB_E(EN,_IN1,_IN2,Output
label);
ENO
Example:
SUB_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
5556
d
(Word
[signed] data)
5.3 Standard Arithmetic Functions
FX
1S
FX
U
/FX
2C
FX
0N
ST
Data type
Bit
ANY_NUM
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