Peak Flow in RSLogix 5000

adonnell

Member
Join Date
Jun 2010
Location
NH
Posts
4
I am developing a pump program and need to capture the peak flow that occurs in 1 day. I have the analog input for the flow but I don't know how to capture the highest value of that flow for the day. I also need to capture the time at which the peak flow occurs. Any ideas?

I should use the compare instruction but what should I be comparing? Thanks for your help!
 
This is what I use for a max timer. You can use something similar for any input, and move a 0 into the file at the start of the day.

max timer.jpg
 
If the NEW is > PEAK, then set a bit.

Use the bit to MOV NEW to PEAK and to GSV Wallclocktime into your storage locations.

At the end of the day, reset PEAK to zero (or whatever value makes sense).
 
User Ladder compares and the MOV instruction


if live_flow is greater than max_flow
then
MOV live_flow -> max_flow and MOV TIME->max_flow_time.

At the end of the day (controller clock or a 24hr timer.dn)

MOV max_flow -> yesterday_max_flow
MOV max_flow_time -> yesterday_max_flow_time
MOV 0->max_flow
MOV 0->max_flow_time
 
Thanks. I am new to PLC programming (I am really an HMI/SCADA guy) and really appreciate the help!

Using GSV DateTime to set PeakFlowTime (a member of a user defined data type), what data type should PeakFlowTime be? I can't find a datetime type.
 
DateTime DINT[7] GSV
SSV
The date and time in a readable format.
DINT[0] year
DINT[1] integer representation of month (1-12)
DINT[2] integer representation of day (1-31)
DINT[3] hour (0-23)
DINT[4] minute (0-59)
DINT[5] seconds (0-59)​
DINT[6] microseconds (0-999,999)
 

Similar Topics

Hello all- I have a unique challenge using a customers Direct logic 06 PLC. This customer has a DC motor operating at 10 RPM which is turning a...
Replies
1
Views
131
Hi everyone, I'm working on a project that involves using a Keyence LR-X100 sensor in Studio 5000 V35 ladder logic to determine the object's...
Replies
4
Views
672
I have an analog flow signal that fluctuates with many peaks and valleys. Occasionally due to valve changes a peak value (or several) will be way...
Replies
2
Views
1,236
I have an application where I need to know the peak pressure of a machine and time at peak pressure. I am wondering does anyone know of an...
Replies
4
Views
1,564
I've been doing Modbus for 20 odd years but almost never do I have to use a slave simulator. Until today. I used Peak HMI's freeware RTU slave...
Replies
2
Views
1,940
Back
Top Bottom