Ladder
179
Compare Functions
A compare function represents a data manipulation instruction. U90 Ladder uses function blocks to operate
compare functions. Each function block takes 2 inputs (MI, SI or a constant integer) and manipulates them
according to the function block instruction.
If the function block instructions are true (logic 1): power flows through the block.
If the function block instructions are false (logic 0): power does not flow through the block.
There are 6 types of Compare Functions:
Greater Than
Greater Than or Equal To
Equal To
Not Equal To
Less Than or Equal To
Less Than
Equal
The Equal function block evaluates input A to see if its constant integer value is equal to input B.
If input A is equal to input B: power will flow through the function block.
If input A is not equal to input B: power will not flow through the function block.
Input Operands A & B must be integer values: MI, SI or # constant integer value.
According to the above example:
If MI 1 is equal to MI 3; then MB 55 will go to logic "1" (ON).
If MI 1 is not equal to MI 3; then MB 55 will go to logic "0" (OFF).
Greater or Equal
The Greater Than or Equal function block evaluates input A to see if its integer value is greater than or equal to
input B.
If input A is greater than or equal to input B: power will flow through the function block.
If input A is not greater than or not equal to input B: power will not flow through the function block.