Rice Lake iRite IDE User Manual
Page 48

44
920i
Programming Reference
GetConsecNum
Returns the value of the consecutive number counter.
Method Signature:
function GetConsecNum : Integer;
GetCountBy
Sets C to the real count-by value on scale S, in units U.
Method Signature:
function GetCountBy (S : Integer; U : Units; VAR C : Real) : SysCode;
Parameters:
[in]
S
Scale number
[in]
U
Units (Primary, Secondary, Tertiary)
[out]
C
Count-by value
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysInvalidUnits
The units specified by
U
is not recognized.
SysInvalidRequest
The scale specified by
S
does not support this operation (serial scale).
SysDeviceError
The scale is reporting an error condition.
SysOK
The function completed successfully.
GetDate
Extracts date information from DT and places the data in variables Year, Month, and Day.
Method Signature:
procedure GetDate (DT : DateTime; VAR Year : Integer; VAR Month : Integer; VAR Day
: Integer);
Parameters:
[in]
DT
DateTime variable name
[out]
Year
Year
[out]
Month
Month
[out]
Day
Day
GetGrads
Sets G to the configured grad value of scale S.
Method Signature:
function GetGrads (S : Integer; VAR G : Integer) : SysCode;
Parameters:
[in]
S
Scale number
[out]
G
Grads value
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysInvalidRequest
The scale specified by
S
does not support this operation (serial scale).
SysDeviceError
The scale is reporting an error condition.
SysOK
The function completed successfully.
GetIqubeData
Returns data from a given iQube. The types that IQValType may be are: IQSys, IQPlat, IQRawLC, IQCorrLC,
IQZeroLC, IQStatLC, IQScaleWt, and IQ2StatusLC. IQSys returns the system weight value. IQPlat returns the
millivolt value for the indexed platform. IQRawLC returns the indexed raw load cell millivolt value. IQCorrLC
returns the indexed corrected load cell millivolt value. IQZeroLC returns the indexed load cell deadload millivolt
value. IQStatLC returns the indexed load cell status. IQ2ScaleWt returns the indexed scale weight value. IQSys
and IQPlat are revised to also return the scale data. IQ2StatusLC returns the indexed load cell status. The old
IQStatLC is not supported and will return SysInvalidRequest.