fbarresi / TwinCatAdsTool

TwinCAT Tool for explore backup and compare ADS Variables
MIT License
89 stars 13 forks source link

Many many many persistent variables cannot be read #1

Closed elconfa closed 4 years ago

elconfa commented 4 years ago

Hello I have a project with more then 53000 persistent var. Starting the backup funcion using the button READ FROM PLC, the program do non read all variable

fbarresi commented 4 years ago

Hi, Thank you for reporting your issue.

Wow, with 53000 variables you really have a big program. I guess even a json file would be extreme big.

Well, i review the implementation and, even if we tried the software with about 100/200 variables (including arrays and complex object), I think that in your case the Twincat driver will limit the requests in order to preserve the communication. I also guess, that reading 53000 times probably freeze your machine. (By the way I remember that one of the first ADS version was limited to 80 parallel readings)

I'm sorry, but I think i would not be able to find a solution to your problem, but may be we can add a new function where you can save or export filtered variables (it may be even better, than a single file with all that stuff).

What do you think about it? Could that helps you?

elconfa commented 4 years ago

Wow, I think that is really good. Thanks a lot Massimo

elconfa commented 4 years ago

I can send you an example of CSV file of persistent variable for my project

fbarresi commented 4 years ago

Could that be a bug related to #3 ? Can you please check again with the latest software version? Thank you.

elconfa commented 4 years ago

Yesterday I tested the new version on a project using 4500 persistent var and now it works well. Today I tested the new version on a project using 51500 persistent var and now it works perfectly. The .json file is about 1.703KB Thanks a lot.

Only one thing I would like to ask you: does it is possible to save also the description of the variable? Maybe in a future release, you can think about this new feature.

THANKS Massimo