Author Topic: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)  (Read 1286 times)

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
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.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #1 on: April 03, 2016, 08:31:29 PM »
If you hover over ElementCount and dataToWrite. what do you see for those values?

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #2 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

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #3 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).

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #4 on: April 03, 2016, 09:23:44 PM »
Try modifying the code to this:

Dim IntegerArray(ElementCount-1) As Int32

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #5 on: April 03, 2016, 09:31:19 PM »
It appears to be working properly now.

Thank you.

plc_integrator

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Basic Button Set/Write Error - v3.99d (EthernetIPforSLCMicroCom)
« Reply #6 on: April 15, 2016, 04:35:35 PM »
Hello there,

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

Thanks!!