Tracing source of data on PLC-5

TheWaterboy

Lifetime Supporting Member + Moderator
Join Date
May 2006
Location
-27.9679796,153.419016
Posts
1,927
I have registers changing on a PLC-5 and I don't know the source. This was harmless until I tried to use them and found they are being zeroed even though usage shows them not being used. This obviously means another machine is writing to it, but there are many doping that and I need to narrow the field.

I see CSP session tables in the HTML interface which would narrow my manual search, But is there a technique to allow the instant capture of the comm session IP that is triggered by a data value change?
That ability would tell me which machine is making this change.

But how can I reach this raw CSP table data?
 
There must be some place where the received connections communication data (destination, length, etc) are located however briefly. Are you all saying there is no way to see that data?
I would send the file but its huge and many other machines talk to it and I imagine its one of those.
 
Is it feasible to disconnect the communications cables to the other devices and reconnect them one at a time until you see the data getting zeroed?

Failing that, I expect you would need some sort of sniffer on the communications port. Something like wireshark that could capture and store the packets.
 
You'll need to look in those other PLC machine code. Look for MSG write instructions. They write directly into the registers of the target destination PLC. Unfortunately there is no way to see this in the target PLC. One of the disadvantages of MSG write. I much prefer to see MSG reads.
I.e. your PLC reads the registers it needs from the other PLC, as opposed to the other PLC writing them into your PLC.
 
There must be some place where the received connections communication data (destination, length, etc) are located however briefly. Are you all saying there is no way to see that data?
I would send the file but its huge and many other machines talk to it and I imagine its one of those.

If the Data Highway Plus channel(s) are properly configured, you can see the active stations on that Data Highway Channel. At least you would then know which DH+ addresses have access to your PLC, since your PLC would show those stations present.

But, as the other posters have pointed out, this is the shortcoming of a low-bandwidth, highly efficient network like DH+: All that diagnostic stuff is not present.

But, your issue really is more of a program maintenance and overall design discipline issue, in reality.
 
This is all ethernet, no DH+. The session table on the html page shows all the IP's that are accessing the PLC just like the diagnostic file does for DH+. SO I know its in that PLC somewhere. I was hoping to grab that ethernet data somehow. but I can't find it.
 
As an aside, this is another reason that I go out of my way to avoid WRITES between two (or more) PLC's. I instantiate virtually all of my PLC to PLC communications with only READ messages. That way others looking at the program can easily see where communications events may be changing internal data.

This requires a bit more attention to making sure that messages are being received (handshaking from master to slave or peer to peer), but it is a small trade off in my opinion.
 
"This is all ethernet, no DH+"

Wireshark should be able to tell you which PLC (or PLCs) is writing to the addresses you see changing, as the destination address would be part of the MSG data block.
 

Similar Topics

Hi, we have a plant that runs with a GE Fanuc 90-30 and I am trying to trace what is triggering a 'General Fault' alarm to the site SCADA system...
Replies
10
Views
2,647
Hello friends, I've an liquids impurities detector connected to a computer. A problem occurred when start the application software, an error...
Replies
2
Views
1,665
Hi everyone.. Can anybody help me, My Simatic Step7 cannot tracing address using right click on I/O address using "Go To Location". If i do it the...
Replies
5
Views
6,458
Hello, I would like to know the best way to find the source of data in a holding register. I am using Proworx NXT with various Modicon PLCs...
Replies
2
Views
1,851
Hello, Is there a more simple method to trace a PLC code (Siemens S7) other than doing a cross reference on every marker? I'm trying to find out...
Replies
8
Views
2,453
Back
Top Bottom