citectSCADA Accumulator problems

Piannazzone

Member
Join Date
Jun 2010
Location
Melbourne
Posts
12
i made a accumulator for a motor and i want it to restart its run time counter everytime it is stoped but it goes on from the last run time conter how do i make it restart itself ??
 
from online help..
AccControl
Controls accumulators, e.g. 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
AccControl(sName, nMode [, ClusterName] )

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

matches all following characters, e.g. "Motor*"
? matches any character, e.g. "Motor?10"
This argument can be prefixed by the name of the cluster i.e. 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

ClusterName:
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 is returned.

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

See Also
Miscellaneous Functions
 
i got it working but only in a button i dont know how to make it so if the motor isnt running it restarts i tryed
if motor=0 AccControl("MOTORSTATS", 3)
i knew it was wrong but i dont know what to type anyone elp me ??
 
i made a accumulator for a motor and i want it to restart its run time counter everytime it is stoped but it goes on from the last run time conter how do i make it restart itself ??

Is there a timer function in Citect or CiCode ?

I would like to know the running time of a motor , please help
 

Similar Topics

Hello everyone! I have a question about the allowable syntax for an expression in CitectSCADA. If I wanted an advanced alarm to trigger based on...
Replies
2
Views
930
Hello, Just wondering if it is possible to make internal CitectSCADA project tags available to an OPC server. (Schneider OFS). There are...
Replies
0
Views
912
Hello, This may not be the place for this but im curious of anyone has worked with CitectSCADA 2018 and windows sessions. Any feedback would be...
Replies
0
Views
1,583
Hi Guys, I am still trying to learn citectscada and curious about the how the hmi stores the alarms (active, historical, etc). I could see a...
Replies
1
Views
1,256
I want to make an application in C# .Net to read Tags from CitectScada (Local variables, Variables tags, Digital Alarms ...) so that I can process...
Replies
1
Views
1,592
Back
Top Bottom