Mikel Posted December 13, 2020 Report Share Posted December 13, 2020 Hi Guys, Hope you're all safe and doing well. Is there a way to reset a memory float register to zero using the clock function under utilities. I'm accumulating data from a flow meter into an MF register. I need to reset the numbers in this register to zero at the end of every month. How do i do that if its possible Thanks Mike. Quote Link to comment Share on other sites More sharing options...
TozoM8 Posted December 13, 2020 Report Share Posted December 13, 2020 You can store the date every couple seconds or minutes and compare the stored to rtc. If different hit reset your data. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 13, 2020 MVP 2022 Report Share Posted December 13, 2020 If your PLC is on all the time, you can just compare SI 37, and when it equals 1, then it is the start of a new month. If the PLC is not on all the time, simply store SI 38 to a MI, then compare to SI38 on power up, and if different, reset your data. 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.