Counter Tags

Not counted towards your tag license limit.

Counter tags provide a means to count events such as pump starts or equipment cycles. A count is recorded each time the source changes from 0 to non-zero.

An invalid value for the source is not assumed to mean a 0 or off state. A transition from invalid to 1 will not be counted.

The Counter tag retains its value between application restarts and uses the last known valid source value when counting. For example, if the data source was 1 (i.e. running) when VTScada stopped and is 1 when VTScada restarts, it is assumed that the equipment continued to run while VTScada was offline and the counter is not incremented. Similarly, if the source was 0 (i.e. off) when VTScada stopped and is 1 when VTScada restarts, it is assumed that the equipment started at least once while VTScada was offline and the counter is incremented by 1.

Do not attempt to attach a Logger tag to a Counter tag. Counter tags have built-in logging.
Also: Note that clicking on a Counter tag drawn on a page, will not open the Historical Data Viewer window.

Counter properties Settings tab

All options to configure the counting behavior of the Counter tag can be found in the settings tab.

Counter tag properties

Source

The source can be any tag or calculation whose value will change between 0 and a non-zero value. The count will be increased each time the source changes from 0 to a non-zero.
Constants are not useful here, but are a standard part of this type of selector.

Log Interval

The Counter tag will log its value at the end of each interval specified. This interval goes by the clock, not by running time. If, for example, the log interval is set to "Day" the tag's value will be logged at midnight, not at the end of 24 hours of operation. If the log interval is set to "Hour" the tag's value will be logged each hour on the hour. "Weekly" means midnight Sunday night and "Monthly" means at midnight before the first day of the month.

Reset After Log

You can select whether the counter should be reset to 0 after its value is logged.

Engineering Units

Text that states what the Counter tag is counting (e.g. Starts).

External Reset

Specify a tag or calculation to force a reset of the counter. Note that the current value of the tag will always be logged before a reset. The reset will occur when this source changes from a 0 or false value to a non-zero or true value. A change from invalid to true does not cause a reset.

Counter properties Merit tab

Use the Questionable Data parameter to flag this tag’s data in the event that you suspect the values it is reporting might not be accurate, or when this tag has initially been created and you wish to ensure that its data is marked for extra monitoring.

Privilege

Select a custom security privilege (Protect Pages and Output Tags) from this drop down to limit the operation of this control to only those operators who have been granted the matching security privilege.

Counter properties Historian tab

Historian

If an Historian tag is selected, this tag's run-time values will be saved for use in reports and the Historical Data Viewer. Historian configuration and advanced logging options are described in the discussion of the Historian Tags.

If your goal is to disable logging, set the Enable parameter (below) to 0 rather than deleting the Historian parameter.

There are consequences if you change the selected Historian tag after you have begun collecting data. If you switch to a new Historian (perhaps for organizational or load sharing purposes), the data collected for this tag by the previous Historian will become inaccessible. Historian selection and configuration should be done during the project design stage.