In my current project, I am reading thousands of data from plc db. For instance, i reads between 50-150 variables from just one db. Each variable is string[18]. I am connecting about 100 different db. 1005020 = 100,000 byte. This is how much byte i read inside 3-5seconds.
Sometimes i get timeout, our connreset or something like that. I want to optimize the way ı read from plc. I read about reading 1000bytes in single tag instead of using 50 different tag etc. But ı didnt find how can i do. What is your suggestion for my situation. What is the best way of reading thousands of bytes?
(I am using 1508S soft controller as plc)
I found a simple and effective solutions for this. I convert the adress from DB10,S0.18 (if i read 20 tags i created 20 tag also like this DB10,S20.18 .... ) to DB10,S0.18.20 (.20 means read 20 variable from starting ofset. It solve my problem easiliy. After this, I can read 28 different db with just 3 connection. Critcal point is the variable you will read should be in a row. Currently, I can read every db every 500ms with timeout 1000ms. and It looks okay for now.