Author Topic: Communication PC->PLC In remote rack  (Read 934 times)

vice

  • Newbie
  • *
  • Posts: 3
    • View Profile
Communication PC->PLC In remote rack
« on: July 17, 2020, 10:39:28 AM »
Hi i'm trying to communicate with a contrologix plc in a remote rack.
Pc is connected to a local rack through an 1756-EN2T (network_scheme in attachment),
I've seen some examples on how a RoutePath woul look like an i come up with this :
192.168.1.44 - to the IP address of Ethernet card
1 - Ethernet card onto the backplane of the expansion rack
0 - To slot 0 which is the ControlNet card
2 - Out the front door of the ControlNet card onto the ControlNET
7- Into Node 7 which is the ControlNET card in the remote rack
1 - Out the back door onto the main rack backplane
0 - To slot 0 which is the processor

Making full path something like this:
192.168.1.44,1,0,2,7,1,0

I've tried it using Kepserver and it works but when i try in in C# i cannot connect to the Plc
I've tried setting
_client.IPAddress = 192.168.1.44;
_client.RoutePath ="1,0,2,7,1,0";
and
_client.RoutePath ="192.168.1.44,1,0,2,7,1,0";

In the end i confirmed the path using method indicated at the bottom of :
https://www.advancedhmi.com/documentation/index.php?title=Routing_Paths

Which you can find in attachment(io_scheme)
At this point i think i've read all the posts regarding routing through rack and i can't find anything else i could try. 
Is there something obvious i'm missing?



Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5311
    • View Profile
    • AdvancedHMI
Re: Communication PC->PLC In remote rack
« Reply #1 on: July 17, 2020, 10:53:32 AM »
Your first settings look correct. Have you tried using the Visual Designer and setting the properties through the properties window?

vice

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Communication PC->PLC In remote rack
« Reply #2 on: July 17, 2020, 11:26:19 AM »
I will check it on monday as i don't have the testing rack right now.
Would be it any different through? I don't get any errors on ComError event either.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5311
    • View Profile
    • AdvancedHMI
Re: Communication PC->PLC In remote rack
« Reply #3 on: July 17, 2020, 12:04:27 PM »
The Visual designer may do something different with setting the values or initializing.

vice

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Communication PC->PLC In remote rack
« Reply #4 on: July 20, 2020, 05:40:40 AM »
I've been looking into this issue, this time on another plc also in remote rack(the one we were testing the functionality for)

Right now upon init i get com error 265 with no description after 5 minutes it transforms into
Error -22 No response from Forward Open
 

RESOLVED

Path is correct the connection size is wrong, setting connection size to the one suggested by kepserver ->232 bytes resolved the issue.
« Last Edit: July 20, 2020, 08:23:39 AM by vice »