Author Topic: IndexOutOfRangeException when writing to REAL  (Read 928 times)

dchishaggy

  • Newbie
  • *
  • Posts: 3
    • View Profile
IndexOutOfRangeException when writing to REAL
« on: December 12, 2018, 03:31:23 PM »
I am using the EtherenetIPforCLXComm to write data to a REAL tag.  But when I run the code I get an IndexOutOfRangeException within the Else of the WriteData function on this line

Code: [Select]
ConvertedData(i * 2 + 1) = CByte((dataToWrite(i) >> 8) And &HFF)
i = 0
ParsedResults.FileType = 0

I can't dig deep enough or have overlooked were .FileType is set, so I can't help more there.   But I am able to read the tag just fine.  I have also tried different tags and different processes with the same result.  Strings and DINT work perfect.

I am using C# VS2010 and the AdvancedHMIDrivers is Runtime version 2.0.50727

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IndexOutOfRangeException when writing to REAL
« Reply #1 on: December 12, 2018, 04:35:22 PM »
I will need to know the version of AdvancedHMI. It will be something like 3.99x

dchishaggy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: IndexOutOfRangeException when writing to REAL
« Reply #2 on: December 13, 2018, 02:20:06 PM »
Where would I look to find versioning?  I downloaded a year or two ago, and I don't recall what version it was.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IndexOutOfRangeException when writing to REAL
« Reply #3 on: December 13, 2018, 02:35:20 PM »
If you right click the AdvancedHMI project and select properties, then in the Application tab, click the Assembly Informatiin button.

dchishaggy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: IndexOutOfRangeException when writing to REAL
« Reply #4 on: December 14, 2018, 08:25:11 AM »
TitleADvancedHMI
DescriptionHMI Construction Tool Kit
CompanyManufacturing Automation, LLC
PrductAdvancedHMI
Copyright2011
Assembly version3.23.0.0
File version3.23.0.0

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: IndexOutOfRangeException when writing to REAL
« Reply #5 on: December 14, 2018, 08:43:55 AM »
Version 3.23 is way too far behind in order to provide any support for. I can only recommend upgrade to the latest version of 3.99x or 3.99y Beta.