Flip Flop 2Ch

The Flip Flop 2Ch implements a bistable flip-flop. The dominance for setting (RS) or resetting (SR) the output value can be configured.
Optionally, a Boolean signal can be selected for the Enable Execution input so that the algorithm is only active if the value of the selected signal is TRUE.
Configuration options
- Operator: specifies whether the input value should be greater than, greater than or equal to, less than or equal to, less than or not equal to the threshold.
- Threshold Level S: threshold of the signal for setting.
- Threshold Level R: threshold of the signal for resetting.
- Count Mode: mode of the result counter.
OnChange: the counter counts every time the result changes to TRUE.
Cyclic: the counter increments every cycle when the condition is TRUE. - S Is Dominant: the dominance of setting (RS) or resetting (SR) can be configured.
- Tolerance (optional): tolerance value for the Equal / NotEqual comparisons.
Output values
- Out: Result of the bistable flip-flop.
- Count: Incremented when the output value is TRUE. The behavior depends on the parameter Count Mode.
- Last Event: Indicates the time of the last triggered event → the event can be dragged and dropped into the Scope chart to display it as a trigger-event.
Standard HMI Controls
For the Flip Flop 2Ch algorithm, the following HMI controls are available for generating an Analytics Dashboard:
1. The BinaryState control visualizes the output value Out.

2. The Table Control and Multivalue control visualize all output values: Out, Count, Last Event.



Alternatively, customer-specific HMI controls can be mapped in the Flip Flop 2Ch algorithm using the Mapping Wizard.