how to write program to find max and min value

mustaqim90

Member
Join Date
Mar 2015
Location
SHAH ALAM
Posts
13
hi.

i have a problem. im using omron cx-programmer..how to write the program to find maximum and minimum value in ladder diagram using the formula (tn < tn-1) and (tn > tn-1).

help me..
 
you are trying to compare the current value to a previous value?
 
I'm not familiar with Omron, but most PLCs have a greater than and a less than comparison function. Compare the existing min to the new process value, and if the new process value is lower move it to the register for the existing min value. Similar for the max.

At the beginning of a new test period initialize the existing min and max values to the current process values.
 

Similar Topics

Hello everyone, We have a PLC Omron CJ2m CPU12, it contains an old program and it is UM read protected by password. Now we have a new program...
Replies
0
Views
532
Hello friends. I need to write a program. This is exactly what is asked of me: When Sensor 1 and Sensor 2 give output, it will allow Robot to...
Replies
3
Views
953
I am trying to import and overwrite program while online with a 5570. I swear you can do this with a 5580. I even tried inhibiting the program...
Replies
1
Views
1,072
I just finished writing my first program! Well PLC program anyway. I used to do a little programming when I was a kid working thru manuals on my...
Replies
11
Views
2,842
Hi guys, I've taken on a new client, rural water district. They have an ancient system, with Scadapacks and NI Lookout. Some of their...
Replies
1
Views
1,772
Back
Top Bottom