Author Topic: Micro800 String Write  (Read 2289 times)

aduhaime2003

  • Newbie
  • *
  • Posts: 36
    • View Profile
Micro800 String Write
« on: October 07, 2015, 01:55:13 PM »
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.

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: Micro800 String Write
« Reply #1 on: October 07, 2015, 04:24:34 PM »
IPForMicro800Com inherits from EthernetIPforCLXCom.

Do you happen to declare custom string ?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Micro800 String Write
« Reply #2 on: October 07, 2015, 06:47:24 PM »
It looks like the Micro800 handles strings differently than the CLX controllers. It took a number of driver modifications to handle the string type, so this means support for strings in the Micro800 won't be available until the next release of 3.99b