You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this script with the IP and AMS Net ID of my running PLC, I get a strange error.
2021-10-14T20:23:26+0000 Info: Connected to 10.0.0.10
Plc30 App 3.1.1927
2021-10-14T20:23:26+0000 Info: connection closed by remote
Traceback (most recent call last):
File "/home/mmachenry/src/telemetry/test/get_plc_symbols.py", line 62, in <module>
main(sys.argv[1], sys.argv[2])
File "/home/mmachenry/src/telemetry/test/get_plc_symbols.py", line 58, in main
for (symbol_name, plc_type) in get_symbols(plc):
File "/home/mmachenry/src/telemetry/test/get_plc_symbols.py", line 52, in get_symbols
for symbol in plc.get_all_symbols()
File "/home/mmachenry/src/telemetry/test/venv/lib/python3.9/site-packages/pyads/ads.py", line 773, in get_all_symbols
symbol_size_msg = self.read(
File "/home/mmachenry/src/telemetry/test/venv/lib/python3.9/site-packages/pyads/ads.py", line 699, in read
return adsSyncReadReqEx2(
File "/home/mmachenry/src/telemetry/test/venv/lib/python3.9/site-packages/pyads/pyads_ex.py", line 787, in adsSyncReadReqEx2
raise ADSError(error_code)
pyads.pyads_ex.ADSError: ADSError: symbol not found (1808).
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: