Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

epos pdo read on RT system

I am trying to get the PDO to work on a PXI-RT system. I have tried all the examples that I can find and have not had any luck. The SDO communications is not a problem.

 

I Start my vi and there are not errors, but never receives any data from the controller. Does anyone have an example that works with the EPOS and RT?

 

Any help would be great.

 

0 Kudos
Message 1 of 9
(9,170 Views)

Hi mschoenwald,

 

did you set your device into operational mode using NMT commands? PDO communication is only available if the CANopen device is in operational state whereas SDO communication is also available in pre-operational.

 

Best Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 9
(9,164 Views)
Yes I use the module control vi and set it to start remote node. But it does respond like it is actully going into operational mode. Do you know what index and sub-index this is actually sending?
0 Kudos
Message 3 of 9
(9,154 Views)

The NMT commands use Arbitration ID 0, Datalength = 2. Start Remote nodes sends "1" in byte 0 and the Node ID of your CANopen device in byte 1.

 

Are you sure you set up the PDOs correctly in preoperational mode?

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 4 of 9
(9,140 Views)
Sorry for the delay, but we have the reads working now. we had the start listening vi in the wrong location. We are still having problems with the write though. The EPOS card just ignores all the PDO requests that we give it.
0 Kudos
Message 5 of 9
(9,106 Views)

Hi mschoenwald,

 

could you post some more details please:

 

- bus log

- epos spec

- your VI

 

Best Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 6 of 9
(9,093 Views)
Well we finally got it to work last night. The problem with the read was that you have to make a change of state on index 1400 subindex 1 bit 31. I will post the vi once we have it finalized and cleaned up. This might be a couple of days before I c an get to this.
0 Kudos
Message 7 of 9
(9,087 Views)

Hi,

 

I've a similar application, could you, please, post the VI?

 

Regards

 

Vincent

0 Kudos
Message 8 of 9
(8,355 Views)

This Vi should work. It goes through and sets up both a SDO and PDO connection. Motor parameters are also set. I ran in to a limitation of setting up read and writes for the PDO at 16 motors. Hope this helps.

Message 9 of 9
(8,353 Views)