Codesys Comparison Instruction

Published on May31, 2021 | Category: Comparison
Share this article:

codesys comparison instrunction compare two inputs and if compariosn result true than set the boolean output true,comparisonperform between two same data type input variable. output is always boolean.

codesys EQUAL TO comparison instrunction : EQ

This block compare both inputs variable if both inputs variable are equal so Boolean output set to true otherwise false.

img/eq.webp

codesys NOT EQUAL comparison instrunction : NE

This block used for comparing of not equal inputs. if inputs variable are not equal then Boolean output set to true otherwise false.

img/ne.webp

codesys less then : LT

in less then comparison block,if first input variable is less then that of second inputs variable than Boolean output set to true otherwise false.

img/lt.webp

codesys less then or equal to comparison instrunction : LE

A Boolean operator that returns the value TRUE when the value of the first input variable is less then or equal to that of the second input variable. If the first operand is less then or equal to the second operand, then the Boolean output set to true otherwise false.

img/le.webp

codesys Greater than : GT

A Boolean operator that returns the value TRUE when the value of the first input variable Greater than the second input variable. If the first operand is Greater than the second operand, then the Boolean output set to true otherwise false.

img/gt.webp

codesys Greater than or equal to GE

A Boolean operator that returns the value TRUE when the value of the first input variable Greater than or equal to the second input variable. If the first operand is Greater than or equal to the second operand, then the Boolean output set to true otherwise false.

img/ge.webp