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

AVEVA Enterprise SCADA

Variables provided to the Application Calculation Engine (ACE)

Variables provided to the Application Calculation Engine (ACE)

  • Last UpdatedApr 24, 2025
  • 2 minute read

The Application Calculation Engine (ACE) procedures have several bits of information defined that they can access. Some of these are passed in as arguments to the method, and others are members of the enclosing class.

The following information is passed in as arguments to the method:

ACEParameter[] args

An array of ACEParameter objects that contain the parameter information for the procedure. ACEParameter objects are described below.

double[] values

An array of doubles representing the inputs.

bool runBecauseGoingHot

This boolean value is true if the ACE has just become Hot. Otherwise, it is false. Routines that are executed on exception are always executed when the ACE is Hot because it is impossible to detect whether a change has occurred during a failover.

The following methods are used by the ACE internally and should not be called from within an ACE procedure:

SetUpDBAccess()

GetDBData()

PutDBData()

UpdateFlags()

Dispose()

The following members are defined for the ACE procedure and can be accessed by the ACE routine.

DoRun As Boolean

The DoRun flag from the database. If true then this routine was triggered by setting this flag in the database record.

CodeVersion As System.Int16

A version number for tracking code changes.

ExecutingTime As Integer

The amount of time in milliseconds that this procedure has taken to execute.

IsOutputFresh As Boolean

The fresh flag for the output point that will be written to the database.

This flag can be changed to manually set the fresh value from within a routine.

UseAndForFresh As Boolean

By default, this is set to true, which means that an output record is marked as fresh if ALL of the inputs are fresh. Changing this to false means that the output record will be marked as fresh if any of the inputs are fresh.