![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Apr 2014
Location: Singapore
Posts: 62
|
Ping Command in CompactLogix/ControlLogix PLC
hi all,
how to implement Ping command in CompactLogix PLC so that i can check the com link between the plc and a computer it's connected to? thanks |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
I may well be mistaken, but I believe the ping command will have to come from the PC to the PLC, not the other way around.
Bubba.
__________________
“Now will come the nay-sayers with all the reasons why you shouldn't do this. Some of them are teachers, and some of us are doers. Besides, you have got to let the smoke out of this equipment every now and then, or it starts to clog up the chimney.” ~Lancie1 |
![]() |
![]() |
#3 |
Lifetime Supporting Member
![]() ![]() Join Date: Dec 2004
Location: Detroit, SE Michigan
Posts: 3,796
|
Look into the many options available in the GSV command, you may find something.
__________________
I don't always test my code but when I do, I do it in production. |
![]() |
![]() |
#4 |
Lifetime Supporting Member
![]() ![]() Join Date: Jun 2013
Location: MI
Posts: 2,900
|
I'm not aware of any PLC that has a Ping command native.
My understanding is that you can send TCP or UDP packets with the MSG command. These allow you to implement most protocols, but you would pretty much need to be able to send raw Ethernet (layer 2) packets to be able to do Ping or other ICMP commands. |
![]() |
![]() |
#5 |
Lifetime Supporting Member
|
Most PLC doesn't do ping. What you can do is a watchdog or heartbeat.
Depending on where you want the alarm to be fired off you would have the other side send a changing sequence and check for for that variation. If it stops, fire off the alarm. |
![]() |
![]() |
#6 |
Lifetime Supporting Member + Moderator
|
You almost certainly don't want a PING command. PING doesn't tell you anything about the status or type of device on the network.
You probably want a watchdog function. I usually do this by having the HMI computer write the /Seconds value from the PC clock to the PLC. As long as the tag it is writing to is changing, I know that the PC is connected and that the HMI program is executing. Another method I have used with PanelView and computers running RSLinx is to send a MSG instruction with the CIP object to read part of the Identity Object. When you get a reply to such a message, you know that the computer is connected and that RSLinx is running. |
![]() |
![]() |
#7 | |
Member
![]() ![]() Join Date: Jul 2020
Location: UK
Posts: 2
|
Quote:
|
|
![]() |
![]() |
#8 |
Lifetime Supporting Member
|
We build watch dog heart beats into most of our SCADA systems.
Every 250 ms we increment a tag in the PLC from the SCADA system. . This gives you dynamic live data about the system connection, unlike a ping that is only a low level check. . We do this in: Wonderware, Ignition, Citect, RsView, Win CC, LabView |
![]() |
![]() |
#9 |
Lifetime Supporting Member
|
We build watch dog heart beats into most of our SCADA systems.
Every 250 ms we increment a tag in the PLC from the SCADA system. . This gives you dynamic live data about the system connection, unlike a ping that is only a low level check. . We do this in: Wonderware, Ignition, Citect, RsView, Win CC, LabView |
![]() |
![]() |
#10 |
Member
![]() ![]() Join Date: Oct 2011
Location: Mla
Posts: 215
|
you need to check in the pc with ftlinx. its impossible to do it in plc
|
![]() |
![]() |
#11 |
Member
![]() ![]() Join Date: Nov 2016
Location: Fields of corn
Posts: 2,259
|
|
![]() |
![]() |
#12 |
Member
![]() ![]() Join Date: Jul 2020
Location: UK
Posts: 2
|
I am aware of this. The only reason I replied in this thread was because I wanted more information on Ken’s post regarding the identity object.
|
![]() |
![]() |
#13 |
Member
|
You should be able to read a packet of data and write a packet of data to and from the device using GSV commands but not the simplest and may take a bit of time with wire shark, best way is to re/write a Tag to/from Scada and verify as a watchdog.
Mmaybe a better question to ask is why do you need to know the machine is alive or dead? Does the PLC need to know the PC is present? |
![]() |
![]() |
#14 |
Lifetime Supporting Member
|
Mmaybe a better question to ask is why do you need to know the machine is alive or dead? Does the PLC need to know the PC is present?[/QUOTE]
Sometimes the PC collects data from other sources the PLC uses for interlocks, if the PC stops communicating we shut down some devices. |
![]() |
![]() |
#15 |
Lifetime Supporting Member + Moderator
|
I would imagine it might be possible to construct one with open sockets wouldn't it? Not that I would know how, but I thought Open Sockets opened all possibilities...
__________________
. . .Nostalgia used to be so much better . . . |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I periodically ping a PC then view in PLC? | g20kid | LIVE PLC Questions And Answers | 17 | June 20th, 2017 02:54 AM |
PLC Update - Back Issues Collection Now Available! | Phil Melore | LIVE PLC Questions And Answers | 11 | October 22nd, 2015 04:17 AM |
Siemens PLC won't auto-run after power-up | Lamboom | LIVE PLC Questions And Answers | 5 | August 19th, 2014 06:32 PM |
VMware-can ping but rslinx cannot detect the PLC | Nigasai | LIVE PLC Questions And Answers | 20 | June 29th, 2012 01:50 PM |
PC to PLC Protocol | TheRixta | LIVE PLC Questions And Answers | 13 | December 17th, 2008 02:56 PM |