Hello,
I'm developing a simple (Windows Service) Data Logger using AdvancedHMI Drivers and C#, and I'm taking the following error 'Object reference not set to an instance of an object'.
This error is given only when I use ControLogix PLC, but it's alright when I use MicroLogix.
I'm using:
- .NET 4.0 Full
- AdvancedHMI Drivers 3.98t
- ONLY the AdvancedHMIDrivers.dll and MfgControl.AdvancedHMI.Drivers.dll
Edit:Adding AdvancedHMIControls.dll as a reference I solved the error above, but I get those errors when running my project:
'Read Failed. Check Processor Slot. Connection In Use or Duplicate forward Open., Status Code=256'
Edit 2:Communicating with OPC it's OK.
Have I tried:
Setted the packet size to 220. As seen here
http://advancedhmi.com/forum/index.php?topic=868.msg4340#msg4340Added references. As seen here
http://advancedhmi.com/forum/index.php?topic=771.msg3713#msg3713Added SubscriptionPollTimer. As seen here
http://advancedhmi.com/forum/index.php?topic=505.msg2012#msg2012And I continue with the same error.
Edit 3:Analyzing with WireShark I got these errors: 0x01 and 0x15. In Common Industrial Protocol (CIP) documentation these errors are defined as:
- Error 0x01 - Connection failure - A connection related service failed along the connection path.
- Error 0x15 - Too much data - The service supplied more data than was expected