Multithreading and Serial Ports
Ok..this will be lengthy but I need to explain some background first. This part of my software is for sorting items running down a conveyor belt. I am using Modbus for the conveyor belt. Modbus will open gates at a specific time to let an item go through the gate. Items will go through certain gates based on weight. I am monitoring a sensor to determine when an item is on a scale. When the sensor is blocked, the item is weighed and sent to the appropriate gate. Timers are set to open/close the gate. My code will work for this..the problem is, it will not work for multiple items. By that I mean