AdvancedHMI Software

General Category => Support Questions => Topic started by: Godra on April 03, 2016, 12:42:45 PM

Title: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Godra on April 03, 2016, 12:42:45 PM
Just tried a fresh v3.99d solution with a basic button and basic label.

BasicButton throws the attached error when using EthernetIPforSLCMicro driver but works fine with ModbusTCP driver.
BasicButton reads value properly with PLCAddressText property.

BasicLabel works fine in either case.

Also tried GlassButton from other post and it worked as well.
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Archie on April 03, 2016, 08:31:29 PM
If you hover over ElementCount and dataToWrite. what do you see for those values?
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Godra on April 03, 2016, 09:07:17 PM
ElementCount = 1
dataToWrite(i) doesn't show anything but i does show as 1
IntegerArray.Length = 2  -->    (0) 1  and   (1) 0
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Godra on April 03, 2016, 09:18:49 PM
Would it help if I tell you that PLC is ML1100?

ProcessorType returned is 73 (which in older versions of AHMI was marked as SLC-5/03).
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Archie on April 03, 2016, 09:23:44 PM
Try modifying the code to this:

Dim IntegerArray(ElementCount-1) As Int32
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: Godra on April 03, 2016, 09:31:19 PM
It appears to be working properly now.

Thank you.
Title: Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
Post by: plc_integrator on April 15, 2016, 04:35:35 PM
Hello there,

I got the same error. The change mentioned by Archie did really work.

Thanks!!