Rice Lake iRite IDE User Manual

Page 84

Advertising
background image

80

920i

Programming Reference

Method Signature:
function EncodeExtFloat( weight : real ) : ExtFloatArray;

DecodeMessage

An entire measured value response message is partially decoded. Use with DecodeWeight() to decode all
parameters. This routine takes an entire measured value response message (from byte count to checksum) and
decodes the quarter-D bit, the weighing range, stability, and the verified bit. Enumerations are returned as
integers specified in the Sartorius xBPI protocol documentation.

Method Signature:
function DecodeMessage( msg : WgtMsg; var qd : integer; var range : integer; var
stability : integer; var verified : integer ) : SysCode;

SysCode values returned:

SysInvalidChecksum

The message checksum is incorrect.

SysOK

The function completed successfully.

DecodeWeight

An entire measured value response message is partially decoded. Use with DecodeMessage() to decode all
parameters. This routine takes an entire measured value response message (from byte count to checksum) and
decodes the weight, decimal point, units, and status. Enumerations are returned as integers specified in the
Sartorius xBPI protocol documentation.

Method Signature:
function DecodeWeight( msg : WgtMsg; var weight : real; var dp : integer; var units
: integer; var status : integer ) : SysCode;

SysCode values returned:

SysInvalidChecksum

The message checksum is incorrect.

SysOK

The function completed successfully.

InitHiPrec

Establishes communications with an RS-485 Sartorius platform. Sends a BREAK signal to the platform, then
sets communications parameters for xBPI protocol, RS-485, 9600 baud, 8-bit odd parity, two stop bits. 920i
indicator must have port set up accordingly. The platform parameters set by InitHiPrec() are: * Set baud rate to
9600 * Delete tare and application tares * The following are parameter table settings * Allow changes in the
Parameter Table (setting 40) * Standard Weighing Mode (setting 2) * Stability Range (setting 3) * Stability
Symbol Delay (setting 4) * Auto Zero (setting 6) * Zero Range (setting 11) * Power-On Zero Range (setting 12)
* Power-On Tare or Zeroing (setting 13) * Normal Output of Measured Values (setting 14) * Calibration Prompt
Off (setting 15) * Only one Weighing Range (setting 25) * Weight Units = Kilograms (setting 7) * Basic
Accuracy (setting 8) * Communication Type = xBPI (setting 35) * Data Output at Defined Intervals = Auto
(setting 38) * Allow Tare and Zero without standstill (setting 5) Setting numbers are the Sartorius parameter table
setting numbers.

Method Signature:
function InitHiPrec( port_no : integer ) : SysCode;

SysCode values returned:

SysRequestFailed

The function did not complete.

SysOK

The function completed successfully.

SubmitMessage

An entire Sartorius weight response message (from byte count to checksum) is decoded and submitted to a scale
for display. The scale must be setup as a Program Scale.

Method Signature:
function SubmitMessage( scale : integer; msg : WgtMsg ) : SysCode;

SysCode values returned:

SysInvalidChecksum

The message checksum is incorrect.

SysOK

The function completed successfully.

SysInvalidScale

The scale is not a Program Scale.

Advertising
This manual is related to the following products: