Skip to content
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

How to avoid adding node ID to TPDO #27

Open
mesink opened this issue May 3, 2023 · 1 comment
Open

How to avoid adding node ID to TPDO #27

mesink opened this issue May 3, 2023 · 1 comment

Comments

@mesink
Copy link

mesink commented May 3, 2023

I am trying to prototype a system where there is one controller and 4 devices for a total of 5 nodes. I have more than 4 TPDOs and am trying to sort out how to assign all the PDOs to ensure the COB-IDs are unique. I've assigned device ID 1~4 to the 4 devices so adding the node ID to the PDO base address works well here. However, for the controller, I want it to use specific TPDOs to send to each device, and it would be easier it the tool didn't add the node ID to these. Is this possible to achieve using this library?

@dirkmb
Copy link

dirkmb commented Sep 20, 2023

The constant CO_TPDO_DEFAULT_CANID_COUNT (defined in CO_PDO.h) sets the number of TPDOs for which the Node-ID magic happens. (Magic because it not just simple adds the NodeID the CanID is replaced).

So I see 2 solutions for your issue:

  • define CO_TPDO_DEFAULT_CANID_COUNT yourself with 0.
  • start with the fifths TPDO for your application and leave the first 4 unused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants