Hello everybody.
I am new to the forum, and I have a question regarding an Issue I am experiencing with Optodatalink.
First I need to give you an input regarding the application.
We have some test bench 5 of them to be more precise. The benches test different products from the production line. All tests are performed with an OPTO22 controller with its respective I/O units and connected via Network to a computer running Optodatalink.
I have a problem with Datalink hanging or not reporting properly.
This is the thing, optodatalink is polling a flag every second, when the flag goes up it means the data is ready to be reported, optodatalink pulls the information, and writes it to a MySQL database.
when the test is finisihed, the software on PAC raises the flag datalink reads the information (a series of fields containing test information) and report it to a database. Every bench test 24 products at a time, so it takes almot 40 seconds to write an entire batch.
The thing is that we have 5 benches testing simultaneosly, and chances that all of them start raising flags and reporting at the same time is really high. We changed polling time for each bench, I mean some of them poll every 0.5 seconds, the other every second, the other every 1.5 seconds and so.
But once the benches start reporting the report 24 times, different varibales for each product, so if all of them start reporting at the same time it would be 120 different register, with 15 information fields art intervals of 1 second and I am not sure datalink is designed to handle that.
I understand Datalink can scan variables, just not sure it can be done so quick and wich such volumes of information, hence it hangs from time to time I am also guessing it hangs when several test benches coincide in reporting at the same time.
If you need more info regarding the application i can expand it just ask.
I just hope you guys can help me or give me some more direction.
Best regards.