Rice Lake iRite IDE User Manual

Page 44

Advertising
background image

40

920i

Programming Reference

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist. The current scale is not changed

SysOK

The function completed successfully.

Example:
SelectScale (Scale1);

SetMode

Sets the current display mode on scale S to M.

Method Signature:
function SetMode (S : Integer; M : Mode) : SysCode;

Parameters:

[in]

S

Scale number

[in]

M

Scale mode

Mode values sent:

GrossMode

Scale

S

is set to gross mode.

NetMode

Scale

S

is set to net mode.

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysInvalidMode

The mode value

M

is not valid.

SysDeviceError

The scale is reporting an error condition.

M

is not changed.

SysOK

The function completed successfully.

Example:
SetMode (Scale1, Gross);

SetUnits

Sets the current display units on scale S to U.

Method Signature:
function SetUnits (S : Integer; U : Units) : SysCode;

Parameters:

[in]

S

Scale number

[in]

U

Scale units

Units values sent:

Primary

Primary units will be displayed on scale

S

.

Secondary

Secondary units will be displayed on scale

S

.

Tertiary

Tertiary units will be displayed on scale

S

.

SysCode values returned:

SysInvalidScale

The scale specified by

S

does not exist.

SysInvalidUnits

The units value

U

is not valid.

SysDeviceError

The scale is reporting an error condition.

SysOK

The function completed successfully.

Example:
SetUnits (Scale1, Secondary);

ZeroScale

Performs a gross zero scale operation for S.

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

Parameters:

[in]

S

Scale number

Advertising
This manual is related to the following products: