This comparison function compares the operands connected to the input parameters in regard to less/equal. Comparison proceeds from left to right. The function is available as standard function LE and safety-related function LE_S.
NOTE:
The comparison is always a signed comparison. Therefore the values for DWORD are limited to 31 bits, for WORD to 15 bits and for BYTE to 7 bits.
LE
|
Parameter |
Data types |
Description |
|
IN1 |
ELEMENTARY |
First input value |
|
IN2 |
ELEMENTARY |
Second input value |
|
OUT |
BOOL |
TRUE if IN1 is less or equal than IN2. FALSE if IN1 is greater than IN2. |
LE_S
|
Parameter |
Data types |
Description |
|
IN1 |
SAFEELEMENTARY |
First input value |
|
IN2 |
SAFEELEMENTARY |
Second input value |
|
OUT |
SAFEBOOL |
TRUE if IN1 is less or equal than IN2. FALSE if IN1 is greater than IN2. |
NOTE:
All input parameters must have the same data type.