I'm programming an Ignition project for work. Part of its job is to detect when a tote has been placed on the scale, then tell the scale to tare.
The values from the scale head (gross weight, tare weight, etc.) are readable from my project and I will raise a flag telling the scale to tare when it is the right time.
So far the best I can think of is to take an average weight of the totes (which are usually the same size and shape), give a small tolerance, and any time a gross weight is within tolerance, tell the scale to tare. If there are outliers, there will probably have to be a manual tare button (as a failsafe).
Ignition uses Jython.
I was wondering if there are better methods for automatically taring a scale or if someone can approve/critique my current ideas.
I have not tried my intended method yet, I'm looking for feedback before I go in the wrong direction.