2 tare manipulation, Tare manipulation – Rice Lake iRite IDE User Manual
Page 37

920i
Programming Reference - API Reference
33
Parameters:
[in]
data
Data array name
[in]
scale_no
Scale number
[in]
start_sp
Start setpoint number
[in]
stop_sp
Stop setpoint number
SysCode values returned:
SysRequestFailed
The function did not complete.
SysOK
The function completed successfully.
5.1.2
Tare Manipulation
AcquireTare
Acquires a pushbutton tare from scale S.
Method Signature:
function AcquireTare (S : Integer) : SysCode;
Parameters:
[in]
S
Scale number
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist
SysLFTViolation
The tare operation would violate configured legal-for-trade restrictions for the
specified scale. No tare is acquired.
SysOutOfRange
The tare operation would acquire a tare that may cause a display overload. No tare
is acquired.
SysPermissionDenied
The tare operation would violate configured tare acquisition restrictions for the
specified scale. No tare is acquired.
SysDeviceError
The scale is reporting an error condition.
SysOK
The function completed successfully.
Example:
AcquireTare (Scale1);
ClearTare
Removes the tare associated with scale S and sets the tare type associated with the scale to NoTare.
Method Signature:
function ClearTare (S : Integer) : SysCode;
Parameters:
[in]
S
Scale number
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysNoTare
The scale specified by
S
has no tare.
SysDeviceError
The scale is reporting an error condition.
SysOK
The function completed successfully.
Example:
ClearTare (Scale1);
GetTareType
Sets T to indicate the type of tare currently on scale S.
Method Signature:
function GetTareType (S : Integer; VAR T : TareType) : SysCode;
Parameters:
[in]
S
Scale number
[out]
T
Tare type