Rice Lake iRite IDE User Manual

Page 43

Advertising
background image

920i

Programming Reference - API Reference

39

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully

Example:
ScaleAtCOZ : Integer;

InCOZ (Scale1, ScaleAtCOZ);

InMotion

Sets V to a non-zero value if scale S is in motion. Otherwise, V is set to zero.

Method Signature:

function InMotion (S : Integer; VAR V : Integer) : SysCode;

Parameters:

[in]

S

Scale number

[in]

V

In-motion value

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully

Example:
ScaleInMotion : Integer;

InMotion (Scale1, ScaleInMotion);

InRange

Sets V to zero value if scale S is in an overload or underload condition. Otherwise, V is set to a non-zero value.

Method Signature:

function InRange (S : Integer; VAR V : Integer) : SysCode;

Parameters:

[in]

S

Scale number

[in]

V

In-range value

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully

Example:
ScaleInRange : Integer;

InRange (Scale1, ScaleInRange);

SelectScale

Sets scale S as the current scale.

Method Signature:
function SelectScale (S : Integer) : SysCode;

Parameters:

[in]

S

Scale number

Advertising
This manual is related to the following products: