Aritmetic Overflow Exception

Help
Giancarlo
2013-05-23
2013-05-30
  • Giancarlo
    Giancarlo
    2013-05-23

    Hi.

    I'm getting an exception using EthernetIPforPLCSLCMicroComm, when trying to read an array of "ST:".

    Using this  (on Mainform sample):

            Dim x(10) As String
            x = plc.ReadAny("ST9:1", 10)       'plc = EthernetIPforPLCSLCMicroComm

    When run, gets "Aritmetic Overflow Exception".

    So, I'd debugged this and error appears in this call:

                 Public Function ReadAny(ByVal startAddress As String, ByVal numberOfElements As Integer) As String() Implements IComComponent.ReadAny
            'GetProcessorType()

            Dim data(4) As Byte
            Dim ParsedResult As New MfgControl.AdvancedHMI.Drivers.PCCCAddress(startAddress, numberOfElements, GetProcessorType)            '  <<<<< HERE  >>>>>>

    This exception occurs when reading "ST:" array only  (if reading one address, it works).

    Any ideas?

     
  • Archie
    Archie
    2013-05-23

    Are you using version 3.32?

     
  • Archie
    Archie
    2013-05-23

    I found the issue and will post a fix later tonight.

     
  • Giancarlo
    Giancarlo
    2013-05-23

    Thank you very much!

    Congratulations to the amazing work!

    We'll starting to develop with AdvancedHMI.

    If it accomplish our needs, will be our pleasure to make a donation to continue the work!