Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 180

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.7.5
LT_E
Outline
This function compares data with regard to "< (smaller)".
1. Format
Function name
LT_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 compares the contents of devices specified in
expressed as the bit type data to a device specified in
This function executes comparison [
a) This function outputs "TRUE" when all comparison results are "
b) This function outputs "FALSE" when any comparison result is "
2) The number of pins in
Cautions
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.
Program example
In this program, the contents of devices specified in
output to a device specified in
[Structured ladder]
g_bool1
[ST]
g_bool3:=LT_E(g_bool1,g_int1,g_int2,g_bool2);
178
FX
3U(C)
Structured ladder
X000
LT_E
EN
D0
_IN
D10
_IN
Execution condition
...)
Compared data, or word device which stores such data
s1
Execution status
Device which will store the comparison result
(
)
d
can be changed.
s
.
d
LT_E
EN
ENO
g_int1
_IN
g_int2
_IN
FX
3G
FX
2N(C)
FX
Expression in each language
LT_E(EN,_IN,_IN,Output label);
Example:
LT_E(X000,D0,D10,M0);
ENO
*1
M0
Description
.
d
<
<
] & [
s1
s2
s2
s3
and
s1
s2
g_bool3
g_bool2
5.7 Standard Comparison Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
ANY_SIMPLE
Bit
Bit
..., and outputs the operation result
s1
] & ... & [
-1 <
sn
sn
(n-1) <
(n)".
s
s
(n-1) ≥
(n)".
s
s
are compared, and the operation result is
FX
0N
FX
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