How to program for a failed meter.

Saturn_Europa

Member
Join Date
May 2016
Location
USA
Posts
58
RS Logix 5000 v20.04 Contol Logix L-7 Processor

I have been tasked with recording the highest daily turbidity value on a reclaim water system. I am going to take a 10 second moving average and compare it to the previous 10 second moving average and keep the highest one. (Still trying to figure out how to reset it after 24 hrs). Suggestions?

There are two turbidity meters on this system. One for primary and one for backup. Is there a slick way to select between which turbidity meter the program will use for calculation? I would like the program to de-select the meter if it starts giving bad readings. Obviously anything under 4 mA would indicate a bad reading. Has anyone done this before?
 
Could you not just MOVE 0 to destination after 24 hours, then your next 10 second sample would be your high for the beginning of that day.

One way you could select between the 2 meters would be designate them as meter #1 and meter #2.
Use a compare to say that if meter # 1 < raw value of 4ma to latch a bit. (Use this bit to trigger an alarm also so you know meter #1 is faulty)
Then use this bit as XIC = meter 1 XIO = meter 2. Use these instructions to move the proper meter value into your math calculation for 10 second average.

You can put a button to unlatch the bit after you check/repair meter 1 and put it back in service.

(Of course meter 1 would be the primary reading and meter 2 would be your secondary should #1 fail, if you wanted to have either as primary you would just have to add logic to do that)

I think that is what you are asking, anyway. Figured I would take a shot at it, don't get to program as much as I use to and its all stating to slowly fade away.

EDIT: I had some jiberish in this post before which I deleted and added ladder drawing.

Meter 1.jpg
 
Last edited:
I had to post my previous above quick as I had other things going on. Just came back and looked at it......
If you want Meter 1 to be your primary and Meter 2 to be your back up then you would have to invert the XIC and XIO Instructions, I placed them backwards on the rungs.
(Was unable to edit the post by the time I got back and saw my mistake)
Attached corrected below.

If you don't use it you loose it, and I am getting rusty quick.

Good Luck
BCS

Meter 1.jpg
 
Last edited:
RS Logix 5000 v20.04 Contol Logix L-7 Processor

I have been tasked with recording the highest daily turbidity value on a reclaim water system. I am going to take a 10 second moving average and compare it to the previous 10 second moving average and keep the highest one. (Still trying to figure out how to reset it after 24 hrs). Suggestions?

There are two turbidity meters on this system. One for primary and one for backup. Is there a slick way to select between which turbidity meter the program will use for calculation? I would like the program to de-select the meter if it starts giving bad readings. Obviously anything under 4 mA would indicate a bad reading. Has anyone done this before?

Yes. I've done this sort of thing with redundant thermocouples. You say that a signal below 4 mA is obviously "bad", but I think that you need to better define what a "bad reading" is, prior to planning a means for avoiding using it within your control logic.

With a redundant thermocouple, I have typically chosen the higher of the two temperatures to employ as the process temperature, unless one of them has approached full scale. Open thermocouple channels are typically setup for fail safe high, and I've seen damaged thermocouples report temperatures that are higher than are feasible for the process being observed. How will you know whether a reading should be considered bad?
 
Could you not just MOVE 0 to destination after 24 hours, then your next 10 second sample would be your high for the beginning of that day.

One way you could select between the 2 meters would be designate them as meter #1 and meter #2.
Use a compare to say that if meter # 1 < raw value of 4ma to latch a bit. (Use this bit to trigger an alarm also so you know meter #1 is faulty)
Then use this bit as XIC = meter 1 XIO = meter 2. Use these instructions to move the proper meter value into your math calculation for 10 second average.

You can put a button to unlatch the bit after you check/repair meter 1 and put it back in service.

(Of course meter 1 would be the primary reading and meter 2 would be your secondary should #1 fail, if you wanted to have either as primary you would just have to add logic to do that)

I think that is what you are asking, anyway. Figured I would take a shot at it, don't get to program as much as I use to and its all stating to slowly fade away.

EDIT: I had some jiberish in this post before which I deleted and added ladder drawing.


Thank you! Good suggestions!
 
Yes. I've done this sort of thing with redundant thermocouples. You say that a signal below 4 mA is obviously "bad", but I think that you need to better define what a "bad reading" is, prior to planning a means for avoiding using it within your control logic.

With a redundant thermocouple, I have typically chosen the higher of the two temperatures to employ as the process temperature, unless one of them has approached full scale. Open thermocouple channels are typically setup for fail safe high, and I've seen damaged thermocouples report temperatures that are higher than are feasible for the process being observed. How will you know whether a reading should be considered bad?


Just had a thermocouple fail today for exhaust temp on Caterpillar engine, it failed high.

It would be wise to take Bit Buckets advice and set up logic to compare the temps of the 2 sensors and also set parameters to let you know if there is a discrepancy between the two or if they are reading outside the normal operating range of your application, be it low or high.
 
Last edited:

Similar Topics

Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
123
Posted this to Reddit with little success, so I figured I would share it here as well. Very new to PLCs, but figured I would give it a shot to...
Replies
0
Views
109
Does anyone have RSLogix 5000 ladder diagram program of tank leveling (factory IO). Fill valve, discharge valve, set point, level, etc? I looked...
Replies
2
Views
147
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
519
Back
Top Bottom