Configuration of the Comparison on a Main Type

Configuration Window

Step

Action

1

In the Devices tree, double-click Embedded Functions > HSC.

2

Set the mode to Main in the HSC0• > Type > Value drop down menu.

3

Enable the Thresholds by selecting the One-shot, Modulo-loop, or Free-large value in the Parameters > Mode > Value drop down menu.

4

Enable Threshhold 0 and Threshhold 1 in their Value drop down menus.

5

Provide the threshold values.

Follow these rules to configure the threshold values:

oFor the One-shot mode:

0 < Threshold 0 Value < Threshold 1 Value < (Preset - 1)

oFor the Modulo-Loop mode:

0 < Threshold 0 Value < Threshold 1 Value < (Modulo - 1)

oFor the Free-large mode:

0 < Threshold 0 Value < Threshold 1 Value

The threshold values are not restricted by the Preset value for Free-large mode.

6

Optionally, provide an event condition.

7

Optionally, configure the Reflex Outputs behavior:

oReflex Output 0:

Counting Up – Reflex Output x is TRUE when value < TH0 (reset when value = TH0).

Counting Down – Reflex Output x is TRUE when value ≤TH0 (set when value = TH0).

oReflex Output 0:

Counting Up – Reflex Output x is TRUE when TH0 ≤ value < TH1 (set when value= TH0 and reset when value = TH1).

Counting Down – Reflex Output x is TRUE when TH0 < value ≤ TH1 (set when value = TH1 and reset when value = TH0).

oReflex Output 0:

Counting Up – Reflex Output x is TRUE when value ≥TH1 (set when value = TH1).

Counting Down – Reflex Output x is TRUE when value > TH1 (reset when value =TH1).

oReflex Output 1:

Counting Up – Reflex Output x is TRUE when value < TH0 (reset when value = TH0).

Counting Down – Reflex Output x is TRUE when value ≤TH0 (set when value = TH0).

oReflex Output 1:

Counting Up – Reflex Output x is TRUE when TH0 ≤ value < TH1 (set when value= TH0 and reset when value = TH1).

Counting Down – Reflex Output x is TRUE when TH0 < value ≤ TH1 (set when value = TH1 and reset when value = TH0).

oReflex Output 1:

Counting Up – Reflex Output x is TRUE when value ≥TH1 (set when value = TH1).

Counting Down – Reflex Output x is TRUE when value > TH1 (reset when value =TH1).