Choosing Your Counter

Overview

Start the HSC configuration by choosing a counter type according to the type of sensor you are using and the application need.

In the Counters editor, select a Counting function from the list that offers the following types of counters (for more information, refer to the Counter Function):

oHSC Simple

oHSC Main Single Phase

oHSC Main Dual Phase

oFrequency Meter

oPeriod Meter

The Frequency Meter type and the Period Meter type are both based on an HSC Main type.

For each counter defined in the Counters editor, a default Instance name is assigned by EcoStruxure Machine Expert. This default Instance name is editable. You must use exactly the same instance name as an input to the function blocks dealing with the counter.

Type and Mode Matrix

This table presents the different types and modes available:

Type

HSC Simple

HSC Main Single Phase

HSC Main Dual Phase

Frequency Meter

Period Meter

Mode

One-shot

X

X

Modulo-loop

X

X

X

Event Counting

X

Free-large

X

Edge to Edge

X

Edge to Opposite

X

HSC Simple

This table presents an overview of the specifications available in HSC Simple type according to the mode requested:

Feature

Function

One-shot Mode

Modulo-loop Mode

Counting mode

Count down

Count up

Enable with an HSC physical input

No

No

Synchronization / preset with an HSC physical input

No

No

Comparison function

No

No

Capture function

No

No

HSC Main Single Phase

This table presents an overview of the specifications available in HSC Main Single Phase type according to the mode requested:

Feature

Function

One-shot Mode

Modulo-loop Mode

Event Counting Mode

Counting mode

Count down

Count up

Pulse counting during given time base (10 ms, 100 ms, or 1000 ms)

Enable with an HSC physical input

Yes

Yes

No

Synchronization / preset with an HSC physical input

Yes

Yes

Yes

Comparison function

Yes, 4 thresholds, 2 outputs, and 4 events

Yes, 4 thresholds, 2 outputs, and 4 events

No

Capture function

Yes, 1 capture register

Yes, 1 capture register

No

HSC Main Dual Phase

This table presents an overview of the specifications available in HSC Main Dual Phase type according to the mode requested:

Feature

Function

Modulo-Loop Mode

Free-Large Mode

Counting mode

Count up / down

Pulse / direction

Quadrature

Count up / down

Pulse / direction

Quadrature

Enable with an HSC physical input

No

No

Synchronization / preset with an HSC physical input

Yes

Yes

Comparison function

Yes, 4 thresholds, 2 outputs, and 4 events

Yes, 4 thresholds, 2 outputs, and 4 events

Capture function

Yes, 1 capture register

Yes, 1 capture register

Frequency Meter

This table presents an overview of the specifications available in Frequency Meter type:

Feature

Function

Counting mode

Pulse frequency in Hz with updated value available every time base value (10 ms, 100 ms, or 1000 ms)

Enable with an HSC physical input

Yes

Synchronization / preset with an HSC physical input

No

Comparison function

No

Capture function

No

Period Meter

This table presents an overview of the specifications available in Period Meter type according to the mode requested:

Feature

Function

Counting modes

Edge to edge: Measure the time between two events

Edge to opposite: Measure the duration of an event

Enable with an HSC physical input

Yes

Synchronization / preset with an HSC physical input

No

Comparison function

No

Capture function

No

Resolution

Duration counting with configurable resolution (0.1 µs, 1 µs, 100 µs, or 1000 µs)

Timeout

0...858993459, calculated using resolution units

0 means no timeout