CANopenNode / CANopenEditor

CANopen Object Dictionary Editor
GNU General Public License v3.0
115 stars 57 forks source link

TPDO and RPDO Assigned COB IDs #88

Closed RnR336 closed 3 months ago

RnR336 commented 3 months ago

Using version 4.1-30 of the editor, when I add a TPDO, the COB ID starts with 0xC000xxxx and a RPDO COB ID starts with 0x8000xxxx, even when I select the legacy exporter. Why is that when the actual COB is 11 bits? Thanks for the insight.

trojanobelix commented 3 months ago

Think you mean 0x14xx/01 RPDO and 0x18xx/01 TPDO communication parameter:

COB-ID used by RPDO:

COB-ID used by TPDO:

RnR336 commented 3 months ago

Yes, those are the OD values which the editor writes to when a new RPDO or TPDO is created from their respective tabs. Why is the 1 the default setting for bits 31 and 30 TPDOs and 1 for bit 31 for RPDOs?

trojanobelix commented 3 months ago

why not? Makes sense to me, because you do not know the CAN-ID when creating the object. Not valid seems to be the right state at time of creating.

RnR336 commented 3 months ago

I see your point. When the user selects "Add new PDO" from either pane, the entry is added to the dictionary right then, but it is up to the user to fill in the remaining information for the PDO in a separate step. Even though I typically do this, it doesn't mean that's what users do and to ensure proper values I can see why that is the default behavior. Thanks for helping me understand the behavior.