PLCs of all shapes and sizes now come with Ethernet communications built-in.
And one of the easiest ways to insure you have network connectivity between your PC and PLC (or other device) is to “Ping” it.
In today's article I'll walk you through the simple steps needed to quickly “Ping” your PLC to see if you do indeed have network connectivity to it.
Preface: The “Ping” command is used to test the reach-ability from one device to another on an Ethernet network using Internet Protocol, and is derived from the Naval term.
For more details about the “Ping” command check out Wikipedia here.
Step 1) The first step is to open a “Command Prompt,” which is found in the Windows Start Menu under Accessories:
Step 2) You can also open a “Command Prompt” by clicking on “Start,” then entering “cmd” and pressing Enter as shown below:
Step 3) Once the command prompt opens, type in the word “ping” followed by a space, and then the Ethernet IP address of your PLC. In the below example I plan on pinging my Micro820 with an IP address of 192.168.1.120:
Step 4) If you have connectivity from your PC to your PLC, you should see a reply from your ping as shown below:
Step 6) If you don't have connectivity to your PLC, you may see a “Request timed out,” “Destination host unreachable,” or similar message as shown below:
Step 7) If you're not able to ping your PLC then you very likely won't be able to program it over Ethernet.
Some reasons you may not be able to connect to and ping your PLC include:
- Loose or bad Ethernet cables, or lack of continuity between the two devices (i.e. the two networks never physically or wirelessly connect to each other)
- Your PC and PLC are assigned to different subnets with no router bridging the two subnets
- Your PC and PLC are assigned to bridged subnets, but your PC or PLC has a missing or incorrect “default gateway” setting
Question) Did you Find this article helpful? If so, please share it with co-workers and colleagues! You can also keep our site online with regular updates with a $1 monthly pledge at Patreon.com/Automation
And to learn everything you need to know to setup and start programming the Micro800 line of programmable controllers, check out my Micro800 course at Nano Basics Course
Below you can watch a video of the above procedure:
I hope you found this article helpful. If you have any questions please feel free to post them at automation.locals.com which I visit each weekday to reply to reader's questions.
Sponsor and Advertise: Get your product or service in front of our 70K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form or by calling our office at 413-749-4300.
- Interviewing Marc LeVine on Job Skills Needed in Industrial Automation (P108) - June 30, 2022
- PLCs: Past, Present, and Future - June 24, 2022
- How To Download Rockwell's Integrated Architecture Builder (2022) - June 23, 2022