General Category => Support Questions => Topic started by: dchishaggy on December 12, 2018, 03:31:23 PM
Title: IndexOutOfRangeException when writing to REAL
Post by: dchishaggy 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
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
Title: Re: IndexOutOfRangeException when writing to REAL
Post by: Archie on December 12, 2018, 04:35:22 PM
I will need to know the version of AdvancedHMI. It will be something like 3.99x
Title: Re: IndexOutOfRangeException when writing to REAL
Post by: dchishaggy 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.
Title: Re: IndexOutOfRangeException when writing to REAL
Post by: Archie 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.
Title: Re: IndexOutOfRangeException when writing to REAL
Post by: dchishaggy on December 14, 2018, 08:25:11 AM
Title
ADvancedHMI
Description
HMI Construction Tool Kit
Company
Manufacturing Automation, LLC
Prduct
AdvancedHMI
Copyright
2011
Assembly version
3.23.0.0
File version
3.23.0.0
Title: Re: IndexOutOfRangeException when writing to REAL
Post by: Archie 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.