-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown Error using Read by name on a BC9120 #339
Comments
Is this a TwinCAT 2 or 3 system? The traceback provided seems to be having an issue acquiring the handle. Are you sure the variable Test.M0 is the full path, should it be MAIN.Test.MO or GVL.Test.M0 etc? |
This is a TwinCAT 2 system. I tried using the full path with the MAIN prg (Test is prg called in the MAIN prg), and it still did not work (gave the same error message) |
OK, I think if Test is a PRG then the correct path is Test.M0. Have you tried read by name when not giving it a fixed memory address? There may be a bug here somewhere. Can you also try with an older version of pyads, There have been a couple of TwinCat 2 related bugs more recently, and I wonder if somewhere compabitlbity broke with TwinCat 2. |
I've tried both your suggestions (downgraded pyads to version 3.1.3 and stopped assigning a fixed memory), but in both cases I wasn't able to get the right results |
There may be a bug/ issue here to do with the overall set-up and using the BC9120. I also do not have a BC9120 to test anything on. This is not something I have encountered before, especially the issue with the unknown error. I apologise that we can not help any further. You may have to look at using the .NET or another Beckhoff supported ADS interface if you wish to look at reading the variables over ADS. It would be interesting to see if these actually work using read by name too. As on last ditch attempt, you could try using the symbol interface to read the variable, as this has a slightly different mechanism to read and acquire the address. https://pyads.readthedocs.io/en/latest/documentation/symbols.html The BC9120 may not be supported by the C / Python ADS API. Please can you change the title of the issue to "Unknown Error using Read by name on a BC9120". Thanks |
I'm using bunch of BC9100s with this |
When you read by memory and offset does it work? Does using the pyads symbol work? https://pyads.readthedocs.io/en/latest/documentation/symbols.html |
A few months ago I noticed a problem with the read_by_name function.
My problem is explained in this link: https://stackoverflow.com/questions/73691829/adserror-857212673-cant-read-variable-values-through-name-pyads
The text was updated successfully, but these errors were encountered: