Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

AccControl

  • Last UpdatedFeb 28, 2024
  • 1 minute read

Controls accumulators, for example, motor run hours. You can reset the values of Run Time, Totalizer Inc, and No. of Starts (defined in the accumulator database), re-read these values from the I/O device, or flush pending writes of these values to the I/O device.

Syntax

LONG AccControl(sName, nMode [, sClusterName] )

sName:

The name of the accumulator or a mask for the names of accumulators. You can use the following wildcards:

• * matches all following characters, for example, "Motor*" matches all accumulators starting with the word "Motor"

• ? matches any single character, for example, "Motor?10" matches "MotorA10" and "MotorB10"

This argument can be prefixed by the name of the cluster for example ClusterName.AccumulatorName.

nMode:

The mode of the control:

1 - Reset Run Time and Totalizer value

2 - Reset No. of Starts

3 - Reset Run Time, Totalizer value, and No. of Starts

4 - Flush pending writes to the I/O device

5 - Re-read Run Time, Totalizer value, and No. of Starts from the I/O device

sClusterName:

Name of the cluster in which the accumulator resides. This is optional if you have one cluster or are resolving the reports server via the current cluster context. The argument is enclosed in quotation marks "".

Return Value

0 (zero) if successful, otherwise an error code is returned.

Example

! Reset all accumulator variables for accumulator "MCC123".
AccControl("MCC123", 3, "ClusterXYZ");

See Also

Accumulator Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in