I'm trying to set up fault logging for an entire plant. The AHMI application will be running on a computer and will do nothing more then record when a machine has faulted and put the fault information into a central database.
This mean that the application will be talking to a dozen PLCs and recording data on scores or individual pieces of equipment.
I have some code written and functional on of one the lines, but before I expand it to cover everything, I want to make sure I'm doing it intelligently.
Right now I'm using a lot of DataSubscribers to monitor individual bits in the PLCs and then I have code in the DataChanged function to execute the sql query. But the number of functions is already pretty large and will only be growing. My thinking is that since each piece of equipment I will be monitoring runs asynchronously with everything else, I need the functions to be able to run independently, that's why I'm using the DataSubscriber and not the DataSubscriber2 with multiple trigger bits.
Does this seem like the right way to do what I want? How would the DataSubscriber2 respond to multiple triggers happening, potentially, simultaneoulsy?