Print1, print2, print3, print4 133, 134, 135, 146, Print mode 136, Pulse clear 149 – Industrial Data Systems IDS Scale Basic User Manual
Page 40: Read first 147, Read next 148, Resume 250
Scale Basic 4.2E
Reference
Print1, Print2, Print3, Print4
133, 134, 135, 146
Purpose: to send formatted data to the printer.
Remarks: there are 4 pages of print formats that can be configured. Page 1 defaults to print the
Gross weight when the display is in Gross mode, Page 2 defaults to print Gross, Tare, and
Net weights when the display is in the Net mode. Print1 prints page1, Print2 prints page 2,
etc.
mode 136
Purpose: to send formatted print pages to the printer. Send page 1 if the display is in gross
mode, send page 2 if the display is in net mode.
Remarks: this is the default function for the Print key.
Pulse
clear 149
Purpose: set the pulse count register to 0.
Remarks: pulses received on TTL input 6 are counted using the Count register[57]. The
register can be cleared using the Set Pulse, 0 instruction if no counts are being received
instruction is executed. The Pulse clear function is used to guarantee that the register is set
to 0 even if pulses are being received.
Read
first
147
Purpose: read the first ID record in memory. Condition code Positive is true if successful.
Remarks: Open new and Make ID open new ID’s using an ID number (key) to arrange the ID
records in numerical order. Read first reads the ID record with the lowest ID number (key).
Read
next
148
Purpose: read the next ID record in memory. Condition code Positive is true if successful.
Remarks: the Read first / Read next functions are used to scan ID memory from lowest ID to
highest ID. Begin scanning using Read first, then Read next while Positive status is true.
Example: register Id1 is used for totals. Page format 4 is setup to print ID totals.
Read first
read the first ID in memory
Loop1
While
-
If Positive
Read successful
Gosub
Print4
total
Read next
Read next ID in memory
Next
1
End
-
End
if
While
End
End
of
function
Resume
250
Purpose: used by Setpoints and Timers to resume processing a function that has been
suspended.