-
Notifications
You must be signed in to change notification settings - Fork 202
OD values from .dcf not loaded #274
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
Comments
It's not a problem, but a design choice. Other applications may not need such behavior, so you have to explicitly start the configuration transfer either from device to your Python program or the other way. |
Thank you @acolomb for the answer. We would prefer to upload parameters from .dcf to the device at startup. Could you please provide me with some example code on how to do so? |
Can you upload the DCF file here? I don't know how it will work exactly, but I'm sure a solution is possible when reusing some code parts from this library. |
Sure, I guess, it doesn't matter on a .dcf file, but here is a sample file: |
I simply made use of |
As I said, I don't think the code is designed to read the actual object values from DCF files. Just the object dictionary structure. You may be able to extend that. Sorry I don't have time right now to look into it deeper. |
Fixed by #427. Sorry for not really understanding the purpose of the DCF file usage here when I first looked at the issue. |
Since I need a version compatible with Python 2, I use a fork of the version which is automatically installed via “pip install canopen” (ver. 1.2.1), with Cyclic Synchronous modes additionally implemented in p402.py file. Unfortunately, I have noticed that the configuration saved in the standard .dcf file is NOT uploaded at motor startup. Therefore I have to always use manufacturers' software to change some parameters. Both, .dcf and .eds files are supported in documentation. Do you know what might cause this problem of not uploading a configuration? Is .eds format preferred over .dcf?
The text was updated successfully, but these errors were encountered: