Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Module control

Hi ALL,
 
The question is about the module control command,
When I send "Start" command after creating the CAN -INTERFACE and when I create SDO,PDO(tx){result all zero's} , EMCY i can read the data coming out of it.
When I create SYNC how do i wil come to know that object is active ?
 
EMCY response i wil get when I increase system DC-Bus above trip level of my DUT.
 
When I send "STOP" command I am not getting data from SDO read obj this is perfectly fine, But i am getting data from PDO read (all zero's).
How to check the SYNC response,weather it is active when I send STOP command.
 
I am getting data in the pre-operational command for Tx-PDO, what may be the reason.
 
MY DUT FAIL or something else.
 
 
0 Kudos
Message 1 of 6
(6,696 Views)

Hi,

You can try looking at example CANopen programs that are posted throughout the discussion forum, such as here.  I hope this helps!

Regards,

Rima

Rima H.
Web Product Manager
0 Kudos
Message 2 of 6
(6,683 Views)
Hi,
Thanks for the link. I am thinking of implementing only with the help of CANopen functions.Using Ni-CAN Frame API we can implement CANopen but can we do it using CANopen functions itself.
0 Kudos
Message 3 of 6
(6,674 Views)

Hi,

You can certainly implement the CANopen functions by themselves.  You can find examples specific to CANopen in the following directory:

C:\Program Files\National Instruments\LabVIEW 8.5\examples\CANopen

You will know that the object is active if the Sync Start VI doesn't return an error, because if it doesn't return an error, then that means it has started.  Can you give us some more specific details about the data you receive in the pre-operational command?

Thanks,

Rima

Rima H.
Web Product Manager
0 Kudos
Message 4 of 6
(6,659 Views)

Hi Rima,

I have developed a simple code as said by you,I am attaching the image of that , let me know if the understanding is proper or not.

I am using LABVIEW 8.0 so can you give me the examples if possible.

According to my understanding, when i give "ENTER-PRE-OPERATIONAL " command the SDO Tx and Rx messages should be available in the bus.

PDO-tx which i send to device will come in the bus,but not the response since the command is pre-operational.

So what i recieve is

SDO tx and RX messages, PDO(tx from my side = PDO rx from device side) , sync, emcy.These messages i recieve in the Bus monitor present in MAX.

Download All
0 Kudos
Message 5 of 6
(6,656 Views)

Hi,

Since you're using LabVIEW 8.0, the CANopen examples will be located in the following directory:

C:\Program Files\National Instruments\LabVIEW 8.0\examples\CANopen

You will see a canopen.llb file, which contains several CANopen examples.

According to the CANopen LabVIEW Library Help, when the device is in the pre-operational state, it will support all CANopen communication objects, except for PDO objects.  The device can be configured through SDO communication in this state.  The supported communication objects in this state include SDO, SYNC, Emergency, and the Network Management objects (Heartbeat or Node Guarding, Module Control services).

Let me know if you have any specific questions about this, or if you are seeing an error when running your program.

Regards,

Rima

Rima H.
Web Product Manager
0 Kudos
Message 6 of 6
(6,642 Views)