I am using an application I have written to build a Profile within a PLC to run a ramp soak chamber. I have all the Cycles within SQL and I retrieve them and write them to the processor in a UTD. Everything works splendidly except for when I write to a String. Then I receive a strange error.
Public ProgramSelected(2) as String
.
.
.
(string value at time of test was "Test Program")
EthernetIPforMicro800Com1.Write("PROGRAMABLECONTROL.programName", ProgramSelected(0))
Gives me the following error:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.
The error points to line 681 DLL(MyDLLInstance).WriteTagValue(tag, StringVals, numberOfElements, SequenceNumber, MyObjectID)
within the EthernetIPforCLXCom.vb file even thogh I am using the EthernetIPformicro800Com object.
Thanks in Advance.