on-internet
← Community

How can I find all variables of a TwinCat system using PyADS?

Stack Overflow ·

I want to use python and the PyADS library to find all the variables available of a TwinCat system/PLC. PyADS has a function called get_all_symbols which almost does what I am looking for. Here you see the variables I want to get in Python. ADS variables visible in TwinCAT When i use the get_all_symbols() function I see all the variabels from within the MAIN. Now for the problem. I can read the integers, booleans and other primitive variables in the MAIN. Result of reading the variables The problem is that I can't get the variabels within a STRUCT or FB in the MAIN using the get_all_symbols()

Comments

Sign in or sign up to comment and upvote.

No comments yet.