Counters

This tab is used to define the counter inputs of this component and the properties of the inputs. Depending on the settings, there will be one or two input ports per counter input.

This parameter tab is based on the parameter matrix concept. Use the Add button to add a new row and the remove button to remove a selected row. The columns of the matrix are described below.

CounterName

This column defines the name of the counter input which will be reflected as names on the counter input ports.

CounterInputType

This column defines the type of counter input. The options are:

  • Digital Rising Flank. Use this option if the signal from the external source exists in the form of a digital pulse, and that the positive flank of the pulse indicates a counter increment of 1. A digital counter input port will appear when this option is used.
  • Digital Falling Flank. Use this option if the signal from the external source exists in the form of a digital pulse, and that the negative flank of the pulse indicates a counter increment of 1. A digital counter input port will appear when this option is used.
  • Analog Difference. Use this option if the signal from the external source exists in the form of an incrementing integer or floating point value and that the increment of the external value shall be interpreted as an equally sized increment of the counter. The accumulated counter value will be the difference between two consecutive samples of the external value. An analog counter input port will appear when this option is used.
  • Analog Change. Use this option if the signal from the external source exists in the form of an integer or floating point value, and that the change of this value indicates a counter increment of 1. An analog counter input port will appear when this option is used.

CounterEnumType

This property defines what event to count for this specific counter input. The counter input may count specific fixed events, or the type of event can be input from a port. The options are:

  • Category set. This option is adequate when the event to count is fixed and the counter category (enumeration set) is a default set such as articles or material qualities. With this option, the fixed event to count is defined by the EnumValue column.
  • Fixed ID. This option is adequate when the event to count is fixed and the counter category (enumeration set) is undefined. With this option, the fixed event to count is defined by the EnumID column.
  • Portbased ID. This option is adequate when the event to count are defined by the external source. With this option, a port providing the ID of the event to count will appear.

EnumValue

This column is used to specify the fixed event to count when the CounterEnumType is Category set. When the CounterEnumType is Fixed ID or Portbased ID, this column is read only and displays the current active event of the counter.

EnumID

This column is used to specify the fixed event to count when the CounterEnumType is Fixed id. When the CounterEnumType is Category set or Portbased ID, this column is read only and displays the ID of the current active event of the counter.

Expose registration

This column is used to specify whether the aggregated counter values shall be exposed on ports at the time of database registration. When exposure is enabled, a port exposing the aggregated value is created.