Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Khosrow

Pages: [1]
1
Support for Siemens S7 PLCs (300/400.....)

2
Open Discussion / Re: Routing Paths in New Version of AdvancedHNI dlls
« on: March 14, 2017, 05:54:11 PM »
Thanks for trying it.
My problem is that I am using 2 CompactLogix PLCs in a network environment and I use Tags instead of registers.
What I cannot understand is why the versions prior of r work so beautifully while the new versions of AdvancedHMIDrivers.dll all fail.
I tried what Archie suggested in addressing the tags like Program:BM2180.PID_PV instead of just PID_PV.   none of the versions could recognize or handle it.
Something has definitely  changed in EthernetIPforCLXCom class from version r to .....w.

3
Open Discussion / Re: Routing Paths in New Version of AdvancedHNI dlls
« on: March 14, 2017, 03:15:36 PM »
Archie:
The tags are correct and my application has been working since November, but with the old version of the 2 libraries.
The only thing I do to my application is copying  the latest  version of 2 dlls to the debug folder of my application and run it.
I have no problem with the dlls created before Sept. 22 of 2016 but not release w.
Khosrow

4
Open Discussion / Routing Paths in New Version of AdvancedHNI dlls
« on: March 14, 2017, 02:46:58 PM »
Archie:
I want to thank you for the great job you have done developing AdavancedHMI controls and dlls.
I have been using the old version (before r or may be t) of your AdvancedHMIDrivers.dll and MfgControl.AdvancedHMI.Drivers.dll in my VB.net 2010 to read 2 Tags off AB CompactLogix PLCs. Here are the statements I use in my code to Read 2 Tags off 2 PLCs:
Imports AdvancedHMIDrivers

Public Class MainForm
    Public AbPLc(2) As EthernetIPforCLXCom
   
    Private Sub MainForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        AbPLc(1) = New EthernetIPforCLXCom
        AbPLc(1).IPAddress = "192.168.1.207"
        AbPLc(1).Timeout = 1000

        AbPLc(2) = New EthernetIPforCLXCom
        AbPLc(2).IPAddress = "192.168.1.204"
        AbPLc(2).Timeout = 1000
    End Sub
   
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim DataStr As String
        Try
            DataStr = AbPLc(1).Read(Tag1.Text)
            Lab1.Text = DataStr
            Application.DoEvents()

            DataStr = AbPLc(2).Read(Tag2.Text)
            Lab2.Text = DataStr
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
     
    End Sub
End Class

As soon as I replace the above 2 dlls with their new version v, or w, I get the error message”
“Read Failed. Path Segment Error (Invalid Tag Name), Status Error=4”
It is my understanding that as of version 3.99r only Ethernet card routing is available.  My problem is that I do not know what Routing Path I should use to make my application work with the latest version of dlls.
I can ping the 2 IP address and I have access through Rslogix5000 or Linx but not with the latest version of your AdvancedHMI.libraries.
Any help that you can provide me to make my application work with version w is greatly appreciated.
Thanks
Khosrow

5
Open Discussion / New Version 3.99w Routing Paths
« on: March 14, 2017, 02:45:00 PM »
Archie:
I want to thank you for the great job you have done developing AdavancedHMI controls and dlls.
I have been using the old version (before r or may be t) of your AdvancedHMIDrivers.dll and MfgControl.AdvancedHMI.Drivers.dll in my VB.net 2010 to read 2 Tags off AB CompactLogix PLCs. Here are the statements I use in my code to Read 2 Tags off 2 PLCs:
Imports AdvancedHMIDrivers

Public Class MainForm
    Public AbPLc(2) As EthernetIPforCLXCom
   
    Private Sub MainForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        AbPLc(1) = New EthernetIPforCLXCom
        AbPLc(1).IPAddress = "192.168.1.207"
        AbPLc(1).Timeout = 1000

        AbPLc(2) = New EthernetIPforCLXCom
        AbPLc(2).IPAddress = "192.168.1.204"
        AbPLc(2).Timeout = 1000
    End Sub
   
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim DataStr As String
        Try
            DataStr = AbPLc(1).Read(Tag1.Text)
            Lab1.Text = DataStr
            Application.DoEvents()

            DataStr = AbPLc(2).Read(Tag2.Text)
            Lab2.Text = DataStr
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
     
    End Sub
End Class

As soon as I replace the above 2 dlls with their new version v, or w, I get the error message”
“Read Failed. Path Segment Error (Invalid Tag Name), Status Error=4”
It is my understanding that as of version 3.99r only Ethernet card routing is available.  My problem is that I do not know what Routing Path I should use to make my application work with the latest version of dlls.
I can ping the 2 IP address and I have access through Rslogix5000 or Linx but not with the latest version of your AdvancedHMI.libraries.
Any help that you can provide me to make my application work with version w is greatly appreciated.
Thanks
Khosrow

6
Archie:
Thanks a lot for the great job you have done.  I love your dlls and controls that you have created. Currently,  I am using your AdavncedHMIDirivers and MfgControl.AdvancedHMI.Drivers.dll (earlier version  before 9/22/2016) with AB CompactLogix PLCs.  It works beautifully with the old version dlls but not with any of the new ones.  I even tested my VB.Net 2010 program with the latest version (w) and have the same problem.  I get the error  "Read Failed.  Path Segment Error (Invalid Tag Name".   Status Code=4"  but as soon as I copy the old dlls and place them in debug folder, it works again.
It is my understanding that as of version 3.99r only Ethernet card routing is available.
The question that I have is what changes do I have to make so that my program works with the latest releases of AdvancedHMI libraries? I have never used RoutePath property.   I have to PLCs in my network and In can ping every one of them.  Here is the code I have in my VB.Net

Imports AdvancedHMIDrivers

Public Class MainForm
    Public AbPLc As EthernetIPforCLXCom

Private Sub MainForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        AbPLc(1) = New EthernetIPforCLXCom
        AbPLc(1).IPAddress = "172.22.131.207"

        AbPLc(1).Timeout = 500

        'AbPLc(2) = New EthernetIPforCLXCom
        'AbPLc(2).IPAddress = "172.22.131.204"
        ' AbPLc(2).Timeout = 500
    End Sub



Pages: [1]