Mitsubishi Electronics FXCPU Welding System User Manual


 
5.7 Standard Comparison Functions
176
FXCPU Structured Programming Manual
(Application Functions)
5.7.4 LE_E
Outline
This function compares data with regard to " (smaller or equal)".
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.
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(S)
Function name
Expression in each language
Structured ladder ST
LE_E
LE_E(EN,_IN,_IN,Output label);
Example:
LE_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
LE_E
EN ENO
*1
M0
X000
_IND0
_IND10
s1
d
s1
d
s1
s2 s2 s3
sn sn
s s
s s
s