Mikel Posted December 13, 2020 Report 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.
TozoM8 Posted December 13, 2020 Report 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.
MVP 2023 Flex727 Posted December 13, 2020 MVP 2023 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now