industrialNETworXnetx

grautvornix

grautvornix

| 31.07.2009 | 14:58 | 3 replies

accessing CANOPEN COB-ID

Hello,

I want to know the COB-ID of a received PDO.
where - if at all - could I find it, is it somewhere in the CANOPEN_DEMO_RSC_T - Structure ?
I receive CAN-data via the triplebuffer.

Or is this a very stupid question somehow - please dont hesitate to tell me ;-)

Marc

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 03.08.2009 | 10:37

Hi grautvornix,

I am sorry, but currently exists no way to get the COB-IDs into your application.
They are handled by the stack and the stack does not provide this information.

grautvornix

grautvornix

| 03.08.2009 | 11:19

Thanks for that reply, but as you can already think, this does not help us very much.

Actually, we get two different PDOs: one with the COB-ID 0x200+NodeID, the other 0x300+NodeID.
Did I understand right, there is currently no way to distinguish these for the application by asking the stack ?
So what -if there is one at all - is the (standard-)solution to our problem ?

We actually HAVE these two different PDOs from the Network. So can we read the ID somewhere else ?
Or do we have to use the datafields ? Actually this latter solution would be a bit difficult
because we have to agree with the other involved devices/customer.

Or is there another complete different solution I do not see but which is obvioius to you ?

Thanks for your help.

Marc

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 03.08.2009 | 12:32

Hi,

grautvornix wrote:
Did I understand right, there is currently no way to distinguish these for the application by asking the stack ?

Yes.

grautvornix wrote:
We actually HAVE these two different PDOs from the Network. So can we read the ID somewhere else ?

Sorry, no. Otherwise I had told you about a "workarround".

grautvornix wrote:
Or is there another complete different solution I do not see but which is obvioius to you ?

Sorry, If I would now any hidden trick or possibility I would share it with you.

Login