Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
ciniminis1 opened this issue Oct 28, 2021 · 7 comments
Closed

OD values from .dcf not loaded #274

ciniminis1 opened this issue Oct 28, 2021 · 7 comments

Comments

@ciniminis1
Copy link

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?

@acolomb
Copy link
Member

acolomb commented Oct 28, 2021

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.

@ciniminis1
Copy link
Author

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?

@acolomb
Copy link
Member

acolomb commented Nov 5, 2021

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.

@ciniminis1
Copy link
Author

Sure, I guess, it doesn't matter on a .dcf file, but here is a sample file:

dcf.zip

@ciniminis1
Copy link
Author

I simply made use of import_eds function from objectdictionary.eds, although parameters from .dcf file are not loaded anyways. @acolomb do you know what might be the issue? Do I have to use any other function? Thank you.

@acolomb
Copy link
Member

acolomb commented Jan 15, 2022

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.

@acolomb
Copy link
Member

acolomb commented Jul 4, 2024

Fixed by #427. Sorry for not really understanding the purpose of the DCF file usage here when I first looked at the issue.

@acolomb acolomb closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants