Owner manual

Scale Basic 4.2E Reference
Condition Codes
The condition codes are used in the IF instruction to determine if the instructions following the
IF are to be executed. The arithmetic condition codes are set every time a calculation instruction
is performed. The Setpoint monitor condition codes are true if the monitor corresponding to the
condition code is active. The following table lists the condition codes.
Altunits 109
Purpose: true if display is in alt-units mode.
Barcode 111
Purpose: true if bar-code message has been received on Com Port 1
Centerz 104
Purpose: true if scale is at center of zero
Clear key 106
Purpose: true if last key pressed was the Clear key
Remarks: the Clear key is used to abort an operation. Test for this key after data entry.
Example: Get data, Memory1 Get the fill amount
If not, Clear key If Clear key NOT pressed
Gosub Tare Tare the scale
Enter key 105
Purpose: true if last key pressed was the Enter key.
Remarks: the Enter key is used to complete data entry or to continue to the next operation.
Flag 1…9 51…59
Purpose: true if FlagX is ON.
Remarks: the flags are used to remember a state or condition.
Example: Use the F1 key to toggle the display between Net display mode and Total (Memory1)
display mode. Flag 1 is set ON to display Total, Off to display Gross.
Fn. 1: If, Flag1 if Flag1 is on (ON = display total)
Display, Gross set display mode to gross weight
Else else (Flag is off = display gross)
Display, Memory1 set display mode to total weight
End if End if