LE <=

PLCopen motion icon

Operator - Test if the first input is less than or equal to the second input.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN1

ANY

 

 

 

First input.

IN2

ANY

 

 

 

Second input.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

TRUE if IN1 <= IN2.

Remarks

  • Both inputs must have the same type.
  • Comparisons can be used with strings.
    • With strings, the lexical order is used for comparing the input strings.
      • Examples:
        ABC is less than ZX.
        ABCD is greater than ABC.

FBD Language Example

LeFbd.gif (1226 octets)

FFLD Language Example

  • In the FFLDClosed "Free Form Ladder Diagram" Language, the input rung (EN) enables the operation.
    • The output rung is the result of the comparison.
  • The comparison is executed only if EN is TRUE.

LeLd.gif (1441 octets)

IL Language Example

Op1: FFLD  IN1
     LE  IN2
     ST  Q    (* Q is true if IN1 <= IN2 *)

ST Language Example

Q := IN1 <= IN2;

See Also