I'm sure that I'm overlooking something basic, but I've found it's better to ask for help than to keep beating my head against it.
I'm attempting to use the EthernetIPforCLXCom.Write method, but I keep getting an error about "NullReferenceException was unhandled - Object reference not set to an instance of an object."
I've put an EthernetIPforCLXCom driver on my form, and it is working fine for reading data into a basic label and toggling bits in a PLC with a basic button. But get the error when I try to write an Integer to the PLC with the following command:
EthernetIPforCLXCom1.Write("Program:Device1.Command", 0)
The driver name is correct. The program tag is correct (as near as I can tell), Integer value seems to be okay.
The command is being issued from a basic (.Net) button on the form that I've dropped the driver on. So, I'm confused about what object is not getting set.
Any suggestions would be greatly appreciated!
Thanks in advance.