Author Topic: How to get connected with 3 Compactlogix in three different subnets  (Read 1434 times)

Nimesh

  • Newbie
  • *
  • Posts: 23
    • View Profile
How to get connected with 3 Compactlogix in three different subnets .
i have three compactlogix PLCs on three different subnets. (1). 192.168.1.3   (2).192.168.2.3     (3). 192.168.3.3
all PLCs are routed by router to comunicate with each other. how can i receive/send data in one AHMI project. between all three?
any router gateway property to be set?

Thanks in advance. 
« Last Edit: March 10, 2018, 04:35:47 AM by Nimesh »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #1 on: March 10, 2018, 04:50:34 AM »
Add 3 EthernetIPForCLXCom to the form and set the IP addresses to that of each PLC. When you add a control to the form, set the ComComponent property to point to the driver instance which corresponds to the target PLC.

Nimesh

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #2 on: March 10, 2018, 06:16:23 AM »
But my Computer running AHMI is on one of the subnet(PC ip is 192.168.1.2).do i need to point any gateway(router) to get out of the local subnet and talk to 192.168.2.3 and 192.168.3.3 as they are on different subnet then PC?

bachphi

  • Hero Member
  • *****
  • Posts: 642
    • View Profile
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #3 on: March 10, 2018, 08:16:50 AM »
Tr setting the mask to 255.255.0.0
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #4 on: March 10, 2018, 09:21:37 AM »
How is your network setup now? Are the PLCs all connected to a single switch or is the network segmented with routers?

Nimesh

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #5 on: March 10, 2018, 08:02:00 PM »
all three plcs are connected to single Layer-3 Switch/Router(V LAN Routing).

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #6 on: March 10, 2018, 08:35:30 PM »
As bachphi said... set the subnet mask on your PC and all the PLCs to 255.255.0.0

Nimesh

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #7 on: March 11, 2018, 03:30:31 AM »
thanks,
i will be able to test it on Monday.
all three different subnets has their own devices with the subnet mask. i have to change them too. like 25.255.255.0 to 255.255.0.0

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: How to get connected with 3 Compactlogix in three different subnets
« Reply #8 on: March 11, 2018, 08:46:36 AM »
If you are using a Layer 3 switch with separate VLANs, wouldn't the switch have a defined IP address for the Default Gateway defined for each VLAN (typically 192.168.xxx.254 )? Then you would put that into the IP4 configuration of the HMI PC?

So let's say you connect the HMI to VLAN 1. The IP Address could be 192.168.1.200 and the Default Gateway 192.168.1.254 , then it should be able to connect with all 3 PLCs
« Last Edit: March 11, 2018, 08:51:08 AM by Archie »