RsLogix 500 - Configure your IP Address for PC to PLC Ethernet Communication
This is a simple guide on how to configure your PC to communicate with your PLC or any Ethernet device for that matter. It is not meant to be a guide to understanding Ethernet configurations but is the steps to configuring your PC to communicate with your PLC in the bulk of applications.
Determine the IP Address of the device you want to connect to.
The first step is to determine the current IP address of your PLC. Your trainer's default IP address is 192.168.1.1 If you didn't know this default IP address or you have changed it then the easiest way to determine it is to look at an offline copy of your program or your controller that has an LCD display and it can be found by pressing the "ESC" button to the main menu, scrolling down to "Advance Set", pressing the "OK" button, scrolling down to the "ENET Cfg", then pressing the "OK" button.
Once we know the IP address of our PLC, then we must configure the IP address of our PC to communicate with it. For these steps, we will say that our PLC IP address is 192.168.1.10. There are two additional pieces of information that make up the basic IP configuration. The Subnet Mask and the Default Gateway. Put your Subnet Mask at 255.255.255.0 and don't worry about the Default Gateway for now.
We now know the IP configuration of the PLC and can use it to determine the IP address configuration we should put into our PC. For the IP address, make the first three octets the same, and the last one unique to the network. So we are going to choose 192.168.1.123 with a subnet of 255.255.255.0. Again, this choice is based off of us having a simple network of just a PC and a PLC.
Now is a good time to note an error we see a lot. You discover your PLC’s IP address is 192.168.1.10 and you make your IP address 192.168.1.10. This is called a duplicate IP address and will not work.
Set your PCs IP configuration.
We are on the home stretch now. There is only one more major hurdle to overcome. With new PCs having multiple network adapters including wired, wireless, bluetooth, VPNs, etc, it can be tough to figuiuure out which adapter to change the network settings of.
1. Go to the Start Menu, type “Control Panel”, and click on Control Panel.
2. In the top right of the Control Panel, type “Network and Sharing Center” in the search box and click Network and Sharing Center.
3. Find the basic network information. This list your active networks. By plugging and unplugging your network cable from your PC that you are trying to connect to the PLC with, you will see either that network disappear or show a status of unplugged. This tells you which network you need to change the IP configuration of.
4. Click on the connection name and the network that needs configured which will bring up the Status dialog. Click the Properties button.
5. In the “This connection uses the following items” section, find “Internet Protocol Version 4 (TCP/IPv4)". Highlight it and click the Properties button.
6. Most PCs will be set to DHCP by default.
7. Select the “Use the following IP address:” radio button and enter an IP address of “192.168.1.123”, then press the TAB button on your keyboard and you should see the generic subnet of 255.255.255.0 be automatically entered. If it doesn’t, manually enter it, leave the subnet blank, don't worry about the DNS entries, and click OK.
8. Now it is time to see if our configuration is correct. To do this go to the Start Menu, type “CMD”, and click on “Command Prompt”.
9. Type “ping 192.168.1.10” and carefully view the response. If it says “Reply from 192.168.1.10:...” then you are ready to communicate with your PLC. If it says anything else including “Request timed out” or Destination host unreachable” then your configuration is not correct. Do not try to continue further.