dsoper Posted October 22, 2018 Report Share Posted October 22, 2018 How can I write the logic to look at the values of an analog input and store the maximum value that it reached during a specific time of a sequence, then in another register store the end value during that time? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 22, 2018 MVP 2022 Report Share Posted October 22, 2018 Something like this? Quote Link to comment Share on other sites More sharing options...
dsoper Posted October 22, 2018 Author Report Share Posted October 22, 2018 Not quite. I guess I should have said the Highest value rather than max. I want to store whatever the highest value was. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 22, 2018 MVP 2022 Report Share Posted October 22, 2018 You can name the operand whatever you want. In what way are you distinguishing highest value from max value? Quote Link to comment Share on other sites More sharing options...
dsoper Posted October 24, 2018 Author Report Share Posted October 24, 2018 I guess it would be the peak value seen during a specified time of the process sequence. I don't know what the peak value would be ... what ever the highest value that the sensor sees.it would be a 0 to 1000 range. at some point during the process, it may see a peak value of 694. during the rest of the process time it varied between 325 and 505 (example). I want to store that peak value in a register, and also store the value seen at a specific time in the process. That part I can do, it is the peak value I am unsure about. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 24, 2018 MVP 2022 Report Share Posted October 24, 2018 I'm at a loss as to how peak value would be any different than what I showed you in the post above. Quote Link to comment Share on other sites More sharing options...
dsoper Posted October 24, 2018 Author Report Share Posted October 24, 2018 Maybe it is. Now that I look at it, it should work. Thank you for the help and your patience. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.