LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Acknowledge HeartBeat in CANopen Library ?

I am using CANopen library to develop code in LV2009 and PCI8511 card. 

 

The proportional valve connected to the system issues a NMT Boot Up message 0x701 with zero Data byte. I now have to acknowledge this to proceed further. But there does not seems to be any function the CANopen Library to do this. ( Since I am able to read the 0x701 boot up message the hardware link up is OK )

 

How to generate an ACK frame using CANopen library ?

 

Thanks

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 5
(3,477 Views)

In general the ACK, Err frames are taken care of the physical layer of the CAN hardware.  The CANOpen library provides vi's to read/write the data frames and also allows other high level functions. ( i used it long back couldnt recollect.).  So if your intention is to send a data to the target hardware use the Write function to write data into CAN bus.

 

Post this in CAN board to get more responses Smiley Happy

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
0 Kudos
Message 2 of 5
(3,461 Views)

>>Post this in CAN board to get more responses

 

I also was looking for this specific forum or board. Could you please give me a link to same ??

 

Thanks

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 3 of 5
(3,446 Views)

Hi,

 

Typically if a CANopen slave device uses heartbeat alive meassages it will start sending a single heartbeat message when the master initializes it to pre-operational state. That means you ahve to setup the heartbeat protocoll before you do send the state change command in order to handle the heartbeat protocoll correctly. There is a Library available for heartbeat that installs with the driver.

 

DirkW

0 Kudos
Message 4 of 5
(3,434 Views)

>>... it will start sending a single heartbeat message when the master initializes it to pre-operational state.

 

In my case the slave proportional valve on power up automatically enters the pre-operational state and keeps sending the 0x700+ NodeID and status byte "0" till the master ACK that frame.

 

And here is where I have a problem. WIll the PCI 8511 do it automatically as part of Layer 2 implementation ( it does not seem to ) or whether I have to send a ACK frame and if yes , how ??

 

Thanks

Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 5 of 5
(3,427 Views)