Rice Lake iRite IDE User Manual

Page 40

Advertising
background image

36

920i

Programming Reference

GetAccumDate

Sets D to the date of the most recent accumulation performed by scale S.

Method Signature:
function GetAccumDate (S : Integer; VAR D ; String) : SysCode;

Parameters:

[in]

S

Scale number

[out]

D

Accumulator date

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysPermissionDenied

The accumulator is not enabled for the specified scale.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully.

Example:
AccumDate : String;

GetAccumDate (Scale1, AccumDate);

GetAccumTime

Sets T to the time of the most recent accumulation performed by scale S.

Method Signature:
function GetAccumTime (S : Integer; VAR T ; String) : SysCode;

Parameters:

[in]

S

Scale number

[out]

T

Accumulator time

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysPermissionDenied

The accumulator is not enabled for the specified scale.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully.

Example:
AccumTime : String;

GetAccumTime (Scale1, AccumTime);

GetAvgAccum

Sets W to the average accumulator value associated with scale S, in the units specified by U, since the
accumulator was last cleared.

Method Signature:
function GetAvgAccum (S : Integer; U : Units; VAR W ; Real) : SysCode;

Parameters:

[in]

S

Scale number

[in]

U

Units (Primary, Secondary, Tertiary)

[out]

W

Average accumulator weight

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysInvalidUnits

The units specified by

U

is not valid.

SysDeviceError

The scale is reporting an error condition.

SysPermissionDenied

The accumulator is not enabled for the specified scale.

SysOK

The function completed successfully.

Advertising
This manual is related to the following products: