Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
515 stars 197 forks source link

How to read all PLC Variables ? #163

Closed vishnu-marthala closed 1 year ago

vishnu-marthala commented 2 years ago

Hello Everyone,

I couldn't find any documention or any function that gives me all the plc variables. How can show to the use in my UI all the avaiable PLC Symbols or Variables that are running on the controller? In Codesys i did it using GetAllItems() function which give all the variables along with their type and size. Is there similar function in ADS library as well?

thank you!

soberschmidt commented 2 years ago

Hi, you have to request the ADS symbol upload information.

Check the sample for the TcAdsDll-API to see which ADS command is needed: https://infosys.beckhoff.com/index.php?content=../content/1031/tc3_adsdll2/124827915.html&id= https://infosys.beckhoff.com/content/1031/tc3_adsdll2/124833547.html?id=4034135013809922325

Capacites commented 2 years ago

https://github.com/Beckhoff/ADS/pull/170

pbruenn commented 1 year ago

This is now available since commit 4cc5ded755f119d431f232502ffbe0688865f5ba