Set gross 131, Set net 132, Tare 129 – Industrial Data Systems IDS Scale Basic User Manual

Page 41: Tx data 144, Units 127, Update 137

Advertising
background image

Scale Basic 4.2E

Reference

Remarks: the Suspend instruction stops a Scale Basic function from executing, thus allowing

the Event Monitor to scan for events. The Resume function reactivates the function that
suspended, at the instruction following the Suspend instruction.


Example
: Timer1 is set for 4 second delay, then it activates the Resume function.

Timer on, 1

Turn on timer 1

Suspend Suspend

until

Resume

executed

Relay off, 6

Turn off relay 6

Set

gross

131

Purpose: to set the display to the Gross mode.
Remarks: this function is equivalent to the instruction Display Gross

Set

net

132

Purpose: to set the display to Net mode.
Remarks: this function is equivalent to the instruction Display Net

Tare

129

Purpose: put the gross weight into the tare register. Change to Net display mode.
Remarks: Condition code Positive is true if successful. The scale must be stable (no motion) and

above zero for the Tare function to succeed.

Tx

data

144

Purpose: transmit formatted data (see parameter 28) out communications port 2.
Remarks: configuration parameter 28 (see operation parameters) selects a format (AND,

Condec, etc.) for transmission via communications port 2. If configuration parameter 27 is
set to 0, then the format selected by parameter 28 is continuously transmitted. Do not use
function Tx data if parameter 28 is set to 0.

Units

127

Purpose: toggle display mode between primary weight units and alternate weight units.
Remarks: this is the default function for the Units key.

Update

137

Purpose: update weight registers, update display, and scan for events.

Remarks: Scale Basic functions should execute quickly and terminate to allow the event

scanner to process all events that occur. If you write a function that does not terminate
quickly, or depends on scale status to continue, use the Update function if you need updated
weight data or if a critical event might be pending.


Example: a function waits for stable weight (motion = false) before issuing a print command.

Advertising