min&max value data

artmierz

Member
Join Date
Apr 2014
Location
ct
Posts
12
Hello.
I need to read value of potentiometer from 0-10v and show that on screen. But i also need to show max a and min value of potentiometer. If pot =5v display show me 5v, and value max=5v , if pot=4v i read 4v but max value=5v.And with min pot=4v even pot =5v.
Thank you for any suggestion.
 
Hello.
I need to read value of potentiometer from 0-10v and show that on screen. But i also need to show max a and min value of potentiometer. If pot =5v display show me 5v, and value max=5v , if pot=4v i read 4v but max value=5v.And with min pot=4v even pot =5v.
Thank you for any suggestion.

I am not sure I understand why you would want to do that or if you have explained it correctly but letting folks know the HMI and PLC manufacturer might be a good starting point...........
 
Value > Max_Value Move Value to Max_Value.
Value < Min_Value Move Value to Min_Value.

Reset_Held_Values Move Value to Max_Value Move Value to Min_Value


Modify for your unspecified PLC.
 
yes i forgot.Im using fx3u mitsubishi and Eaton hmi 10in.i have already code.
I just want to keep max and min value each time if that value is lower or higher should been overwrite. at first time when m76 is on value from d66 sent to d80 ad d82, next i compare those values and if is higher or lower move to d80 or d82.
also i get reset button on hmi m90 to reset d80 and d82.
That code seems to me is good.
I will have to change that code to float number.

fx code.jpg
 

Similar Topics

Hi all-- I need to create code in a Micrologix 1400 project that requires minimum, maximum and running average calculated values (Flows and...
Replies
17
Views
3,738
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...
Replies
4
Views
3,266
Hi I am trying to determine (online) max and min value from DB. Anybody may help me and give me any example how I may to cope with this problem...
Replies
11
Views
3,117
I've got a 4-20ma pressure transducer connected to an analog card on an AB PLC5. Under the setup for the card, I have to set a raw minimum and...
Replies
12
Views
7,380
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,115
Back
Top Bottom