AdvancedHMI Software

General Category => Open Discussion => Topic started by: Nimesh on March 10, 2018, 12:30:38 AM

Title: How to get connected with 3 Compactlogix in three different subnets
Post by: Nimesh on March 10, 2018, 12:30:38 AM
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. 
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Archie 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.
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Nimesh 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?
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: bachphi on March 10, 2018, 08:16:50 AM
Tr setting the mask to 255.255.0.0
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Archie 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?
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Nimesh on March 10, 2018, 08:02:00 PM
all three plcs are connected to single Layer-3 Switch/Router(V LAN Routing).
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Archie 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
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Nimesh 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
Title: Re: How to get connected with 3 Compactlogix in three different subnets
Post by: Archie 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