The Differential Compare component is used to compare two analog values and outputs a boolean value which is determined by evaluating the analog values, logic mode and dead band.
The Differential Compare component is located in the vykonPro palette under the logic sub folder.
Types of DifferentialCompare component properties include the following:
Facets
Use this property to set the trueText and falseText for the Out property values. For example, you might want to set the facet trueText to display "ON" and the facet falseText to display "OFF".
Out
This property has true, false, or null options available. The value is set based on evaluating the In A, In B, Logic Mode and Deadband values.
Null On Inactive
If this property is set to true, when the logic evaluates a false value the out slot is set to s null status.
Propogate Flags
Property controls which Flags bits are propogated from the In A or In B slots to the out slot.
Status
BStatus slot which reflects the current status of the component.
In A
StatusNumeric input slot which is evaluated against In B based on logic mode and deadband.
In B
StatusNumeric input slot which is evaluated against In A based on logic mode and deadbanc.
Fault Cause
String property which stores the fault cause if the component's status is in fault.
Deadband
StatusNumeric slot which is the deadband value used in evaluating the logic.
Logic Mode
Enum property used to select the relational operator used when evaluating the numeric inputs. Relational operator choices include 'Less Than', 'Less Than Or Equal To', 'Greater Than', 'Greater Than Or Equal To' and 'Equal To'.
Greater Than
The out is true when In A > In B. As In A value decreases the out slot remains true through the deadband. When In A <= In B - deadband, the out slot is set to false.
Greater Than Or Equal To
The out is true when In A >= In B. As In A value decreases the out slot remains true through the deadband. When In A < In B - deadband, the out slot is set to false.
Less Than
The out is true when In A < In B. As In A value increases the out slot remains true through the deadband. When In A >= In B + deadband, the out slot is set to false.
Less Than Or Equal To
The out is true when In A <= In B. As In A value increases the out slot remains true through the deadband. When In A > In B + deadband, the out slot is set to false.
Equal To
The out is true when In A = In B. As In A value either increases or decreases the out slot remains true through the deadband. When In A < In B - deadband or In A > In + deadband, the out slot is set to false.