LE
PROGRAM LE_DEMO VAR R1,R2:REAL; BOOL1: BOOL; END_VAR BOOL1:= LE(IN1 := R1, IN2 := R2); END_PROGRAM
Function compares two or more inputs. Output is TRUE if every previous input is less or equal than every next input.
Example for 4 inputs:
5, 7, 9, 10 - True
4, 6, 9, 9 - True
4, 6, 5, 9 - False
Input | Type | Description |
IN1.. | ANY_ELEMENTARY | Input value |
Output | Type | Description |
⇒ | BOOL | Output value |