Comparison Operations

PLCopen motion icon

These are the standard operators and blocks that perform comparisons:

Operator

Description

"CMP"

Comparison with detailed outputs for integer inputs.

EQ =

Test if the first input is equal to the second input.

GE >=

Tests if the first input is greater than or equal to the second input.

GT >

Test if the first input is greater than the second input.

LE <=

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

LT <

Test if the first input is less than the second input.

NE <>

Test if the first input is not equal to the second input.