Configuration of the Simple Type in Modulo-Loop Mode

Procedure

Step

Action

1

In the Devices tree, double-click MyController > IO_Bus > Module_x > Counters.

Result: The Counters editor tab opens for HSC configuration.

NOTE: A message appears at the bottom of the configuration screen if the maximum number of HSC Main functions has already been configured. Consider using an HSC Simple function instead.

2

In the Counters editor tab, set the value of the Counting function parameter to HSC Simple.

Result: The configuration parameters appear in the Counters editor tab.

3

If necessary, enter the value of the General > Instance name parameter.

NOTE: Instance name is automatically given by the software and can be used as it is for the counter function block.

4

Set the value of the General > Counting Mode parameter to Modulo-loop.

5

In Counting Inputs > A input > Location select the input to use as the A input.

NOTE: A message is displayed at the bottom of the configuration window if no more I/Os are available for configuration. Free up one or more I/Os before continuing configuration of this function.

6

Set the value of the Counting inputs > A input > Filter parameter to reduce the bounce effect on the input.

The filtering value determines the counter maximum frequency as shown in the Bounce Filter table.

7

Enter the value of the Range > Modulo parameter to set the counting modulo value.