01-30-2008 01:23 PM - edited 01-30-2008 01:27 PM
Truck Weight Station Interface
The weigh station is run by an operator in the booth. He needs software to help him control the lights and scales to direct trucks into the station, and assist him in disbursing stickers/permits to drivers.
_Lights_
Wait – Tells next truck to wait if there is already a truck being weighed.
Stop/Go – Tells truck to drive up and stop on scale/drive off of scale.
Scale
_Additional User Interface _
- <Type> Truck Permit –
Actual Weight: #.# tons
Where the <Type> field could be “Low Load”, “Mid Load”, or “High Load” and the #.# is the measured weight rounded off to the nearest 10th.
Stop Button – operator can stop program at any time stop button response time must be 200ms or less.
Print/OK Button – operator must print permit/sticker for each truck after it has been weighed. Truck will not see “GO” signal until permit printed.
Station Active Button – operator must turn on light on highway to alert trucks to pull in, Button updates light within 200ms. If Station Active Button is not pressed (light is not on) then any trucks waiting see “GO” signal to pass through without weighing.
Truck Arriving – Truck coming into station. Simulate with a Boolean switch. If a truck is already being measured, set the Wait light. Otherwise do nothing.
Truck Loading – Truck driving onto scales. Simulate with a Boolean switch.
Truck Leaving – Truck driving off of scales. Simulate with a Boolean switch.
The scale measurement can be represented by a random number between 0 and 5.
To ensure each truck is stopped, the software will have them roll forward until they trigger the loading signal, first to T, and then to F (they’ve rolled past sensor). Then the software will wait half a second before taking a measurement.
If either the load or unload signal is triggered at any point during the waiting, reset the wait to start again.
Otherwise after measurement is taken, wait for operator to press “Print/OK button” and inform the truck to “GO”. Wait another half second for safety before alerting the next truck of its action. Turn off Wait light, and set (Go/Stop) signal.
If there is a truck waiting, proceed to processing next truck
until all trucks processed or until Stop or Station Active buttons are updated
to stop the weigh in process. "
I have developed the entire program with almost all the features. However, I have problem reseting the timer when either truck loading or truck leaving sensors are activated in the waiting period that starts before taking the weight measurement of the truck. I would really appreciate if any one could help me in developing this logic.
Thank you very much in advance. Please let me know if my problem needs further clarification.
With Regards,
Amit Darwhekar
02-01-2008 06:25 AM
Hi Amit,
That sounds like a fun program to develop. How are you timing the wait currently? Does the program wait for half a second without checking the status of the sensors? Instead of using a Wait or Time Delay VI, you can place the Elapsed Time VI in a while loop. It includes a Reset input which you can connect to your load/unload booleans. Hope this helps!
02-01-2008 11:01 AM - edited 02-01-2008 11:02 AM
02-05-2008 01:46 PM