Mitsubishi Electronics FXCPU Welding System User Manual


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