Closed mmachenry closed 2 years ago
Hi @mmachenry
Can you post you PLC code ?
Regards,
This could be related to #261. @mmachenry are you using the monitoring attribute in your TwinCAT variable declaration? Basically get_all_symbols should work. Can I ask you to make the follwowing test:
Declare only one variable in your TwinCAT application and try the get_all_symbols function with that. Is there still an error? If yes please post the variable declaration here.
Thanks
The problem vanished with test code rewritten to the device.
pyasds-3.3.8, python-3.9.5 I have a pretty simple script that I mostly copied from the documentation.
When I run this script with the IP and AMS Net ID of my running PLC, I get a strange error.
Notice that the connection works, I'm able to pull the device name and version from the PLC. However, when I try to get_all_symbols, it crashes complaining that some symbol (1808) is not found. Perhaps there's an error in my code. I'd love to know a workaround or where my error is. But I do think at the very least, there's an actionable issue with the confusing error message here.