LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-CAN Read Emergency Message

Hi,

 

i want to read the emergency message from my USB 8473 HIgh-Speed Can. This is linked to a test bench. I can send SPOs and PDOs. But now I want to get error codes. It is possible to read the emergency message to get the error codes? Is there an object,for example 1003h to read the emergency message?

 

Thank You

0 Kudos
Message 1 of 6
(2,391 Views)

How are you sending and reading SDO's and PDO's today? 

 

If you want to read Object no. 0x1003, then just use the SDO for that. 

Emergency messages are something else, you need to look for CAN messages that corresponds to the COB-ID of your unit, in the range of 0x700.  

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

I use the Vis from LabVIEW. For example the ncWriteNet.vi.

 

I already do it but this Object says there is no fault, but there is definitive a fault. When the fault occurs, I send a SDO and the answer says there is no mistake, but why?

 

Thanks

0 Kudos
Message 3 of 6
(2,367 Views)

So do you get an Emergency message on the CAN bus from your device? 

 

What are the responce on the SDO request? 

It's imposible for anyone to help you with no real data or code to look at. 

And what is the unit that you are talking to?

0 Kudos
Message 4 of 6
(2,360 Views)

No, I don´t get an Emergency message, that´s what i want to get.

 

For Example if i ask for the 1003h object with the subindex 1 I´ll get an error that this command isn´t correct. The commando I send looks like: 40 10 03 1 0 0 0 0: I get an error: 80 3 10 1 24 0 0 8. But I don´t know why.

 

If I ask the 1003h object subindex 0 I´ll get a message like: 4F 3 10 0 0 0 0 0. But I know that there is a mistake with the testbench.

 

What code do you need?

 

I use the High Speed Can USB-8473. My device I talk to is the Kollmorgen S300-S700.

 

Thank You

0 Kudos
Message 5 of 6
(2,308 Views)

 


@Julian123 wrote:

No, I don´t get an Emergency message, that´s what i want to get.

 

For Example if i ask for the 1003h object with the subindex 1 I´ll get an error that this command isn´t correct. The commando I send looks like: 40 10 03 1 0 0 0 0 (Should be 40 03 10 01 0 0 0 0 ): I get an error: 80 3 10 1 24 0 0 8. But I don´t know why.

 

If I ask the 1003h object subindex 0 I´ll get a message like: 4F 3 10 0 0 0 0 0. But I know that there is a mistake with the testbench.

 

What code do you need?

 

I use the High Speed Can USB-8473. My device I talk to is the Kollmorgen S300-S700.

 

Thank You


Are you sure that the Kollmorgen is store the error in that place? 
Some devices can implement error handling different. What does the manual say? 

How do you know that there is an error if you don't get an emergency message on the bus? 

(Just to be clear, an emergency message is a separate message on the bus, with a CAN-ID in the range of 0x7YY) 

 

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