Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - johwaa

Pages: [1]
1
Support Questions / Read/Write AOI tags
« on: April 13, 2015, 03:50:18 PM »
Hi guys,

Does anyone know what the syntax would be for reading or writing to a tag in an Add On Instruction?


Thanks!

2
Hi Guys,

I'm trying to create an app that will scan the PLCs in a list to see if the PLC battery needs changing. So I added a EthernetIPforCLXCom1 control named "GeneralCLXCom" (I just renamed the default name for the control since I thought that I would be needing more than one), and created a list of (ControlLogix) PLCs to read, read the state of "Controller.BatteryLow" in that PLC, print the result, and then I *try* to dispose of the control with these two lines:

GeneralCLXCom.CloseConnection()
GeneralCLXCom.Dispose()

They don't appear to be doing anything, and if left unchecked, VB.Net 2010 will throw an exception once the number of connections has reached 11. As a poor work around, I bumped up the upper limit of the DLL array to 1000.

The code does run through the Dispose function, but doesn't it need to decrement MyDLLInstance as well?


Thanks!


Pages: [1]