Owner manual

Scale Basic 4.2E Reference
Set Memory1, 3 Memory1 = 3
Index id, Memory1 Open ID record 3 (the 3d record in memory)
Set Id1, 0 Set ID record 3, Id register1 to 0
Write id Write the most recently accessed ID to memory.
End End of function
Keybd off / Keybd on 227 / 226
Purpose: to prohibit access to the keyboard when running a critical function. The Clear key will
turn the keyboard on if it has been turned off.
Remarks: the Keyboard off instruction is used to prevent accidental operator interference during
a critical function. The Keyboard on instruction restores access to the keyboard functions.
The Clear key is a fail-safe, in case the keyboard is disabled and accidentally not re-enabled.
Example: setpoint 1 is set to trip continuously (upper register = lower register) and activate
function 1. Function 1 turns off the keyboard and reactivates setpoint 1. This effectively
disables the Clear key from re-enabling the keyboard because the keyboard is turned off 60
times a second.
Keybd off disable the keyboard
Set pt on, 1 re-arm setpoint monitor 1
End End of function
Loop1 / Next1 Loop2 / Next2 245 / 246 : 247 / 248
Purpose: the loop instruction is used to make Do/Until, Do/While, and For/Next loops.
Remarks: to have a loop within a loop, use loop1…. loop2…..next2….next1
Example: The following is an example of a Do/Until loop.
Loop1 Do
Gosub Update Update weight display and scan events
If, Motion
Next1 Until Scale is NOT in motion
End if
End End of function
The following is an example of a Do/While:
Loop1 Do
If, Motion While scale is in motion
Gosub Update Update weight display and scan events
Next1
End if End Do While
End End of Function
The following is an example of a For/Next loop: