Comparison to show whether the Current Counter Value is less than or greater than the Preset Value, using bits "f", "g" and "h".
There are two Preset Values: ON Preset Value and OFF Preset Value. The value in "f" depends on the result of the comparison between the current value and the smaller of the Preset Values. The value in "g" depends on the comparison result between the current value and the greater of the Preset Values.

#L_HSC*_HCV: Current Counter Value

B: Preset Value (greater)

A: Preset Value (smaller)

f: Comparison with Preset Value (smaller)

g: Comparison with Preset Value (greater)

h: Comparison with Preset Values (greater/smaller)

Bit "f"
1) When counting up, bit "f" turns ON if the Current Counter Value reaches A – Preset Value (smaller). "f" turns OFF if the current value reaches the upper limit and is reset.
2) If the Current Counter Value is reset and is less than A – Preset Value (smaller) – "f" turns OFF.
3) When counting down, "f" turns OFF if the Current Counter Value reaches A – Preset Value (smaller).

Bit "g"
4) When counting up, bit "g" turns ON if the Current Counter Value reaches B – Preset Value (greater). "g" turns OFF if the current value reaches the upper limit and is reset.
5) When counting down, "g" turns OFF if the Current Counter Value reaches B – Preset Value (greater).

Bit "h"
6) When counting up, bit "h" turns ON if the Current Counter Value reaches A – Preset Value (smaller). "h" turns OFF if the Current Counter Value reaches B – Preset Value (greater).
7) If the Current Counter Value goes out of range defined by A and B while "h" is ON, "h" turns OFF.
8) When counting down, bit "h" turns ON if the Current Counter Value reaches B – Preset Value (greater). "h" turns OFF if the Current Counter Value reaches A – Preset Value (smaller).