Discussion:
Devicenet Reset
(too old to reply)
Nacree
2008-01-15 19:10:10 UTC
Permalink
Hello,
 
I have a PXI system running a PXI-8641D devicenet card.  I am powering the bus with an external 24V power supply.  During the course of testing my app. I have found that if I turn off the 24V bus power and turn it back on there is no way to recover.
 
I get this message-  Error 1074388981 occured at wait for state.vi with the message as shown in the attachment.
 
The only way I can clear this error is to close out all LabView windows, go into MAX and do a self test on the card.  This is really not acceptable for an industrial network interface.  I cannot tell my customer that he has to go into another program (MAX) and do this and that to recover from a 24V power loss.
 
Does anyone have any suggestions?
 
Thanks,
 
Nathan
 
 


Dnet Error.JPG:
http://forums.ni.com/attachments/ni/30/3120/1/Dnet Error.JPG
DirkW
2008-01-16 18:40:08 UTC
Permalink
If you turn off the BUs power, the CAN controller communicating on the bus will enter the BUS off state. The CAN definition does not allow to recover from this state. The only chance is reconfiguration. You could use the nc reste from the NI-CAN driver to reset the board before you start your reconfiguration. See the attached picture for more information. The ncreset.vi can be found in VIlib/nican/nican.llb. But be careful the ncreset resets both ports of your two port device even if you call it on a single port.
DirkW


reset with DNET.jpg:
http://forums.ni.com/attachments/ni/30/3128/1/reset with DNET.jpg
Nacree
2008-01-16 19:40:39 UTC
Permalink
Dirk,
I cannot find the ncReset.vi in either my CAN library or the DeviceNet library.  I have the latest version of both. 
 
As far as resetting the card- It should be no problem, I am using a single port PXI 8461. 
 
Thanks for the info- hope to hear back.
-Nathan

Loading...