Configuration of the Period Meter Type in Edge to Edge Mode
Step |
Action |
---|---|
1 |
In the Devices tree, double-click MyController > IO_Bus > Module_x > Counters. Result: 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 Period Meter. 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 > PeriodMeter Mode parameter to Edge to Edge. |
5 |
In Counting Inputs > A input > Location, select the regular or fast 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 inputs. The filtering value determines the counter maximum frequency as shown in the Bounce Filter table. |
7 |
Set the value of the Range > Resolution parameter. Select the unit of measurement: o0.1 µs o1 µs (default value) o100 µs o1000 µs |
8 |
Enter the value of the Range > Timeout parameter to set the time value that a measured period must not exceed. |
9 |
Optionally, you can enable these functions: |
10 |
Optionally, set the value of the New Period Event parameter to Yes to specify that an event is generated at the end of the configured time period. NOTE: This option is only available for TM3XF• expansion modules, which support external events. In New Period Event Name, type the name of the external event to use to reference the new period event in a task. |