Author Topic: Routing Path for CLX PLC  (Read 2100 times)

PLCTech

  • Newbie
  • *
  • Posts: 16
    • View Profile
Routing Path for CLX PLC
« on: January 24, 2019, 01:12:40 PM »
I know this topic has been reviewed numerous times, but I am still having difficulty and can't seem to find an example that matches my case.

I am trying to read data directly from a CompactLogix PLC on our company network. I have tried the following path and all I get is "no response from PLC 10.20.110.39, slot =0". Could someone please shed some light on this?

I have the Ethernet IPforCLXCom configured as follows:
IPAddress 10.20.110.39
Processor slot 0
Route Path = 2,10.20.110.39,1,0


I have attached a screen shot of the RSLinx tree to show where the PLC lies. I want to pull data directly from teh CompactLogix PLC to the PC that is running the Advanced HMI program.


Tahank you in advance.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Routing Path for CLX PLC
« Reply #1 on: January 24, 2019, 01:58:33 PM »
Leave the RoutePath blank and set ProcessorSlot to 0

IPAddreas to 10.20 110 139
« Last Edit: January 24, 2019, 02:01:31 PM by Archie »

PLCTech

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Routing Path for CLX PLC
« Reply #2 on: January 24, 2019, 02:15:57 PM »
I tried that in the beginning and it shows "Path Segment Error (Invalid Tag Name).

I am positive that I have the correct tag name.

I also take it that the IP Address you put in was a typo? My address is 10.20.110.39 and you had down 10.20 110 139

Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Routing Path for CLX PLC
« Reply #3 on: January 24, 2019, 02:50:44 PM »
Is your tag a controller scope tag?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Routing Path for CLX PLC
« Reply #4 on: January 24, 2019, 03:31:46 PM »
I also take it that the IP Address you put in was a typo? My address is 10.20.110.39 and you had down 10.20 110 139
That was a typo. That's what happens when I try to respond using a phone.

If you were getting the Invalid Tag name, then you are getting communications with the PLC. That is a reply that comes from the PLC when it does not like the tag name. This can happen is you try to access a program scope tag without the proper prefix or if the tag name is misspelled. I believe in some cases the tag can be restricted from external access.

PLCTech

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Routing Path for CLX PLC
« Reply #5 on: January 24, 2019, 06:05:24 PM »
Yes, that tag is in the controller scope.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Routing Path for CLX PLC
« Reply #6 on: January 24, 2019, 06:13:44 PM »
- Open your form in Design view
- Double click in a blank area on the form
- Paste in this code:
Code: [Select]
        Dim t() As MfgControl.AdvancedHMI.Drivers.CLXTag
        t = EthernetIPforCLXCom1.GetTagList(60000)
        Using sw As New System.IO.StreamWriter(".\TagList.txt")
            For i = 0 To t.Length - 1
                sw.WriteLine(t(i).TagName)
            Next
        End Using

- Run the application
- Close the application
- Browse to AdvancedHMI\bin\Debug
- Post the file TagList.txt on this forum

What is the name of the tag you are using in PLCAddressValue?

PLCTech

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Routing Path for CLX PLC
« Reply #7 on: January 25, 2019, 06:08:43 AM »
I hang my head in shame! It was the tag name, I had written it down wrong. Too much going on yesterday wasn't looking with clear eyes until this morning.

I appreciate all of your help. I may have more questions later as I am trying to use Advanced HMI as a data capture method to automate a downtime collection system that we use in plant.

Thank you again.