Industrial Communications

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147136192 after upgrading DeviceNet to 2.1

I get Error -2147136192 - "You cannot open EM or IO in slave mode.  Solution use the MAC ID which is different form that of the interface to open IO or EM." after upgrading from the DeviceNet 1.6 drivers to the new 2.1 Drivers.

 

I'm not really sure what this means.  I get this error on a call to Easy IO Config.vi.  I've read this document: http://www.ni.com/white-paper/14074/en but can't really tell why this error is getting generated or how I'd need to refactor my code to avoid it.

 

I did see this note: "the NI-IndCom for DeviceNet 2.1 software does not support C based languages, DeviceNet slave mode, NI-DNET Configurator or Analyzer in Measurement & Automation Explorer (MAX)" but I don't know how to verify if we were trying to connect to the existing node as a slave.  I don't see any documentation that/why EM mode is not supported.

 

I didn't write the original code so I'm not sure whether we are using Explicit Messaging (EM) or slave mode.  Any help into how to dig into this problem more is appreciated.

 

Thanks in Advance!

0 Kudos
Message 1 of 3
(5,792 Views)

Is this errror showing up for code that was running under 1.6? Can you post the code so I can see what you are doing? 2.1 might have additional errors to improve usability.

DirkW

0 Kudos
Message 2 of 3
(5,782 Views)

I looked into this problem and found a bug in my configuration data of custom code that was being used.  There wasn't a problem in the DeviceNet Driver Upgrade process.  Thanks for helping look into this.

0 Kudos
Message 3 of 3
(5,780 Views)