Built in functions, Close id 142, Gross/net 128 – Industrial Data Systems IDS Scale Basic User Manual

Page 39: Open id 140, Open new 141, Peak clear 143, Peak gross 156, Peak net 157

Advertising
background image

Scale Basic 4.2E

Reference

Built in Functions

Close

id

142

Purpose: use after Open id or Open new to save ID data to memory.
Remarks: the Close id function and Write id instruction perform identical functions. 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 Close
id instruction.

Example:

Gosub, Open id

Open an existing id

Set, Id1, 0

Set Id field 1 to zero

Gosub, Close id

save change to ID record

End

Gross/net

128

Purpose: toggle between Gross display and Net display modes.
Remarks: this is the default function for the Gross/Net key.

Open

id

140

Purpose: get an ID number from the keyboard and then search memory for the ID record.
Remarks: If the ID is not found then “Err 21” is displayed until the operator presses a key. The

function that invoked Open id, and all calling functions are automatically terminated
(unwinds subroutine stack).

Example:

Gosub, Open id

Open an existing id

Set, Id1, 0

Set Id field 1 to zero

Gosub, Close id

save change to ID record

Open

new

141

Purpose: get an ID number from the keyboard and then search memory for the ID record. Open

the ID if it is found, make a new ID if it is not found.

Peak

clear

143

Purpose: set the Peak weight register to 0.
Remarks: the Peak weight is obtained from raw, unfiltered A/D conversions and is stored in

binary format. The Peak Clear function is required to access the peak weight register.

Peak

gross 156

Purpose: to set the display to Peak Gross weight mode.

Peak

net

157

Purpose: to set the display to Peak Net weight mode.

Advertising