PLC5 and CLX

Saul#75

Member
Join Date
Jul 2013
Location
Leicester
Posts
11
I have a CLX L72 that I want to monitor a PLC5 PLC (L40E) and determine whether or not it is up and running.
I can get the PLC5 to let the CLX know its up via messaging triggered by the first scan bit S:1/15 but its knowing when the PLC5 is off. There is no controlled shutdown, just off like in a power cut.
CLX is currently reading data from the PLC5 so I'm currently using the error bit but as the messaging is sequenced the error bit is reset every cycle.
Any ideas?

PS
All comms is ethernet based.
 
Last edited:
I was thinking that but its making it robust for all eventualities. Do you read or write?

One idea is for the CLX to trigger a response from the PLC5 and the PLC5 to return a random value from S:24...
If the value is different from the last one then all is good...
 
What i do is have one PLC (CLX here) send a number that increments every write, then the other PLC (PLC-5) moves that value to a different tag that is read by the first PLC.

Run a timer that does not reset itself for a decent time to detect comm's loss in each PLC. When the CLX reads a new value RES the timer, when the PLC-5 gets a new value RES its timer.

If the readback value for the CLX does not change within a timer PRE then comm's are lost. If the written value in the PLC-5 doesn't change then it knows the comm's are lost.
 
We do pretty much what I_Automation suggests on all our PLCs used in remote telemetry applications where we only read from them every few minutes.

Using the incrementing heartbeat lets you confirm that:

- You are getting healthy reads
- You are getting healthy writes
- The processor is in run (you can still read from Rockwell PLCs when they are faulted or in prog mode - this catches lots of people out who rely only on .ER bits of a message instruction. )
 
Write logic in the ControlLogix to periodically read a block of Status information from the PLC-5's Status data file (data file 2).

If the /ER bit is set, you know there's a failure somewhere in the network path or the controller is shut off.

I would read at least S:1 through :23.

S:1 is the controller status and flags
S:10 and 11 are the Minor and Major Fault bits
S:12 is the Error Code
S:18,19,20,21,22,23 is the Real Time Clock (Y:M:D:H:M:S)
 
What i do is have one PLC (CLX here) send a number that increments every write, then the other PLC (PLC-5) moves that value to a different tag that is read by the first PLC.

Run a timer that does not reset itself for a decent time to detect comm's loss in each PLC. When the CLX reads a new value RES the timer, when the PLC-5 gets a new value RES its timer.

If the readback value for the CLX does not change within a timer PRE then comm's are lost. If the written value in the PLC-5 doesn't change then it knows the comm's are lost.
This is what I've done for years and it has never let me down. Even simpler and easier to follow than a boolean heartbeat toggle or whatnot, in my opinion.
 
If the readback value for the CLX does not change within a timer PRE then comm's are lost. If the written value in the PLC-5 doesn't change then it knows the comm's are lost.




Actually that should say:


If the readback value for the CLX does not change within a timer PRE then comm's are lost or the PLC5 is not running to move the value to the other tag.
 
I use a date constructed similar to Ken suggestion (YYMMDDHHMMSS). I read it at some interval and it has the advantage of showing a time stamp displaying the last time you heard from it.
 

Similar Topics

The attached files shows a rung modified by the Migration Tool. Can anyone explain the purpose of the added parallel branch? I figure it has to do...
Replies
3
Views
1,755
First post. I find very helpful information here! I have an existing PLC5 Enhanced on a DH+ network with several other SLC500's and several (6)...
Replies
7
Views
2,877
I have a new project that is replacing the PLC-5/30 CPU with a 1771-ASB and ControlLogix CPU. This line is all blue-hose comms to 5 racks and the...
Replies
22
Views
4,787
I am upgrading an existing PLC5 program to controllogix (L73 V23). For my question I will only use the logic for my CH1 on my 1771-IFE/C...
Replies
7
Views
2,793
Partial disclaimer: I'm not the one programming the radios so everything is suspect. But I need to get the CLX eliminated as a problem. I will...
Replies
3
Views
3,417
Back
Top Bottom