Author Topic: Problem reading lenght > 1 in Schneider with modbusDriver  (Read 1034 times)

Glestencio

  • Newbie
  • *
  • Posts: 4
    • View Profile
Problem reading lenght > 1 in Schneider with modbusDriver
« on: May 10, 2022, 11:23:55 AM »
Dear all

Im having problems with one Schenider PLC subscribing to modbus adresses with lenght > 1, the same code is working well with the other PLCs:

SubscriptionID = DirectCast(Clas, AdvancedHMIDrivers.ModbusTCPCom).Subscribe(40040, 6, 500, AddressOf Me.ClientDataRecived)

and:
 

Public Async Sub ClientDataRecived(Optional sender As Object = Nothing, Optional e As Drivers.Common.PlcComEventArgs = Nothing)
        Try

            Dim Value = Nothing
.............................................

But the ClientDataRecived sub is not even triggered....

In the other hand, this works fine just as expected:

Dim test = DirectCast(Clas, AdvancedHMIDrivers.ModbusTCPCom).Read(40040, 6)

Anyone knows where can it come from? any parameter in the PLC or way to debug the subscription reads to the PLC?

Thanks in advance
« Last Edit: May 10, 2022, 11:26:55 AM by DanielBoluda »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #1 on: May 10, 2022, 11:51:23 AM »
What version of AdvancedHMI are you using?

Glestencio

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #2 on: May 10, 2022, 01:40:19 PM »
Hi Archie,

thanks for the reply, im not quite sure about it, but the driver has this quote:

'**********************************************************************************************
'* AdvancedHMI Driver
'* http://www.advancedhmi.com
'* ModbusTCP driver - Winforms
'*
'* Archie Jacobs
'* Manufacturing Automation, LLC
'* support@advancedhmi.com
'* 13-FEB-16
'*
'*
'* Copyright 2016 Archie Jacobs
'*
'* This class creates and interface between an Ethernet/IP driver and the AdvancedHMI
'* visual controls.
'*
'* NOTICE : If you received this code without a complete AdvancedHMI solution
'* please report to sales@advancedhmi.com
'*
'* Distributed under the GNU General Public License (www.gnu.org)
'*
'* This program is free software; you can redistribute it and/or
'* as published by the Free Software Foundation; either version 2
'* of the License, or (at your option) any later version.
'*
'* This program is distributed in the hope that it will be useful,
'* but WITHOUT ANY WARRANTY; without even the implied warranty of
'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'* GNU General Public License for more details.

'* You should have received a copy of the GNU General Public License
'* along with this program; if not, write to the Free Software
'* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
'*
'* 13-FEB-16 New architecture further separating UI element connection from driver
'*******************************************************************************************************

Kind regards.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #3 on: May 10, 2022, 02:03:33 PM »
In Solution Explorer, right click the AdvancedHMI Project and select Properties
Click the Assembly Information button

You should see something like 3 99 24

Glestencio

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #4 on: May 10, 2022, 05:36:44 PM »
thanks for your answer,

it should be 3.9.9.24

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #5 on: May 10, 2022, 06:38:10 PM »
That would be considered 3.99x

Try testing with 3.99y to see if you get any different results.

https://www.advancedhmi.com/forum/index.php?topic=2840.0

Glestencio

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Problem reading lenght > 1 in Schneider with modbusDriver
« Reply #6 on: May 11, 2022, 08:26:41 AM »
Dear Archi,

Now it works like a charm. You are the best!

thanks!