Owner manual
Scale Basic 4.2E Reference
Sign [r] 207 [r]
Purpose: to set condition codes based on the value in register [r]. Positive is set if the register is
greater than 0, Negative is set if the register is less than 0, Zero is set if the register is zero.
Remarks:
Example: Check for scale below zero.
Sign, Gross set condition codes using the Gross weight register
If, Negative If Gross weight < 0
End Exit
End if End if
Sub [r] = [a] - [b] 201 [r] [a] [b]
Purpose: subtract register[b] from register [a], put the result into register [r].
Remarks: sets condition codes Positive, Negative, and Zero to reflect results.
Example: Sub, Memory1, Memory2, Memory3 Memory1 = Memory2 - Memory3
Suspend / Resume 249 / 250
Purpose: Suspend stops a function from executing until a Resume is executed.
Remarks: the Suspend instruction is executed in a scale basic function, the Resume instruction
is executed in an event monitor.
Example: A filling operation stops, waits 4 seconds, then stores the gross weight in Memory1.
Timer 1 is configured for 4 second time-out and execute function Resume.
Timer1: Time: 40
Function: Resume.
Fn. 1: Relay off, 1 turn off fill relay
Timer on, 1 turn on settle timer
Suspend wait for scale to settle. Timer1 executes Resume
Copy, Memory1, Gross Memory1 = Gross weight
The above example could use motion detect to wait for scale stable condition.
Set pt 1: Upper register False
Lower register Motion
Execute function Resume
Fn. 1: Relay off, 1 turn off fill relay
Set pt on, 1 turn on motion detect monitor
Suspend Setpoint monitor 1 executes Resume
Copy, Memory1, Gross Memory1 = Gross weight