Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

not able to run PDO example to r/w CAN bus by USB-8473

Hello there,

I am new to CAN, and trying to run an AC motor-controller (SEC-AC-308-CO) which has CAN bus interface accepting CANopen protocol. I have a USB-8473 to communicate with the controller by using Labview program (8.5). I downloaded two example files (one SDO example(read only) and one PDO example(read & write)) available on the following NI link: http://zone.ni.com/devzone/cda/epd/p/id/5873

However, I can not implement these codes to run the motor-controller. The attachment includes cabling details and the errors that I have received by running the SDO file to read some controller parameters. The second file shows the received and expected data for manufacturer information which do not match together.

 

I do not know how I can implant the PDO example to change controller’s parameter. This code use T-PDO (Index: 0x1800 and 0x1801) to read and write data. But I do not know how I can first insert a data and then transfer it to a specific object like “controlword” (Index: 0x6040 sub:0x00) in order to enable the controller.

 

I hope you guys can help me,

Thanks,

Roozbeh

 

Download All
0 Kudos
Message 1 of 2
(6,604 Views)

Hi,

 

You have to set your controlword using SDO before you can read any PDO. But the index you try to write has the access code ro what means it is read only and you are not allowed to write it.

If you could provide a CANopen reference manual for your drive I might be able to pint you to the right object.

 

DirkW

0 Kudos
Message 2 of 2
(6,487 Views)