Max and Min values

brijacq

Member
Join Date
Oct 2002
Location
Cumbria
Posts
44
I am programming a PLC5 and have come across a problem that the customer has requested. The customer requires me to monitor a thermocouple value and at the end of a set period i need to display the minimum and maximum thermocouple values, and i cannot think of an instruction that will look at the value and store in an integer file tha max and min values over a period of time.

Thanx in advance for any responses.
 
Paste this into RSLogix

(change the adresses to suit your program)
n7:0 = Analog value
n7:1 = Stored minimum value
n7:2 = Stored maximium value

LES N7:0 N7:1 MOV N7:0 N7:1

GRT N7:0 N7:2 MOV N7:0 N7:2

add some logic to reset the min and max values.
 
I don't know about PLC5, but I have the same thing in an SLC and I have to wait until all my NT8 inputs to come online so to speak to not capture negative values when the SLC first starts.

Also, I capture the min value when the input is less than AND not equal to the minimum and I use a oneshot before the move. That way, it will continue to record the minimum every time it is below min and changes. Same for the max.
 

Similar Topics

Hope everyone is refreshed and ready to get back at it after new year! I'm struggling to find where or if i can set the min and max values of a...
Replies
1
Views
1,112
I'm really trying to test the limits of what SE can do with E-sig buttons for a customer. They want all the existing buttons converted to E-sig...
Replies
1
Views
1,765
Looking at 6 Integer values...say N7:0 - N7:5. Need a clever way to find the Minimum and Maximum values from this group. Better yet would like to...
Replies
5
Views
6,319
I am almost finished with this project but now Im kind of having a hard time trying to figure out how to find the maximum and minimum values from...
Replies
4
Views
1,576
Hi there. I have to calculate the mean, max and min value of about 600 values in types REAL. Is there any standard blocks to do this in an easy...
Replies
1
Views
4,477
Back
Top Bottom