10.15 LOGICAL FUNCTIONS
10.15.1 Comparison of Values
These functions act like input contacts. The equivalent to these functions are if-then statements in traditional programming languages.
Basic comparison functions in a PLC-5 include,
The comparison function below compares values at locations A and B. If they are not equal, the output is true. The use of the other comparison functions is identical.
More advanced comparison functions in a PLC-5 include,
Examples of these functions are shown below.