Timers – Industrial Data Systems IDS Scale Basic User Manual
Page 18

Scale Basic 4.2E
Tutorial
6. In EZ Link select File, Save As, then type in “test3” then click OK. This saves the program
onto disk.
7.
In EZ Link select the UP (Upload) button. Click on file “test3.sf” then click on OK.
8.
Press the F1 key on the indicator. Press the Gross/Net key to verify that the tare weight has
been read. The LED indicator should be on (Relay out 1). Add 1000 lb. to the scale using
the scale simulator. The LED light should turn off.
The first improvement for this program is to automatically change the display mode to Net
display.
Function Instructions
Comments
User 1
Copy, Tare, Gross
Tare the scale
Relay on, 1
Turn on fill valve
Set pt on, 1
Turn on setpoint monitor 1
Display, Net
Display net weight
End
End
of
function
The next improvement is to get the target weight from the keyboard. First, change the setpoint
monitor:
Event
Function
Comments
F1 key
User 1
Start Fill operation
Setpoint 1
User 2,
trigger when Net >= Memory1 (setpoint amount)
Configure the Setpoint 1 event with the Upper register = Memory1 and the Lower register = Net
weight register. This will cause the setpoint to trigger when the Net weight >= the value in
Memory 1. Configure the Setpoint 1 function to execute = User 2.
Next, modify function User 1:
Function
Instructions
Comments
User 1
Get data, Memory1
Get target weight
Copy, Tare, Gross
Tare the scale
Relay on, 1
Turn on fill valve
Set pt on, 1
Turn on setpoint monitor 1
Display,
Net
Display
net
weight
End
End
of
function
Timers
Purpose 1: to trigger a scale basic function after a set time interval.
Purpose 2: to wait an interval of time inside a scale basic function.
Remarks: Timer event monitors are activated using the Scale Basic instruction: Timer on [t].
When a timer is activated, the time interval is set into the timers countdown register. The
countdown register decrements by 1 every 0.1 seconds. When the countdown reaches 0 the