Write id 228 – Industrial Data Systems IDS Scale Basic User Manual
Page 35

Scale Basic 4.2E
Reference
Remarks: this instruction takes a minimum of 3 A/D conversion cycles. Press the Clear key to
abort Valid wt command; also aborts the scale basic function using this instruction, and all
calling functions (unwinds subroutine stack).
Example:
Valid wt
wait for valid weight. Abort all if Clear key pressed.
Gosub Print1
print format 1
Write
id
228
Purpose: write ID data back to ID memory.
Remarks: ID data is read into the ID registers by the Make id, Get id, and Index id instructions
or by the Open id, Open new, Read first, and Read next functions. If any ID data is modified,
it must be written back to ID memory to make the change permanent. The ID registers are
cleared after a Write id instruction.
Example: Get an ID number from the keyboard, open/make the ID, get tare from keyboard, save
the data.
Get data, Memory1
Get an ID number from the keyboard
If not, Clear key
If NOT Clear key
Make
id,
Memory1
Open/Make
ID
Get data, Id2
put keyboard tare into ID register 2
Write
id Save
ID
data
End
if
End
if
End
End
of
function