Hey all. Been on here forever but rarely post. I'm working on an S7 project that I need some assistance with as I rarely use S7 and when I do, it's typically to troubleshoot, not develop. The code I'm working on was written by someone else and I noticed it doesn't work as I would expect. The original developer used an S_ODTS timer to ensure an event only happens every 20 minutes. The resets are based on if the system is turned off, or if it's completed. The problem is the S_ODTS timer will continue timing when one of the conditions drops out, and then resets when the condition is true again. I've found the FC80 Retentive timer, but the program I'm working in has an FC80 and when I drop it in the program, it says it already exists and asks if I want to overwrite it. I said no, and gave it a new name. I then dropped it in OB1, populated it with everything that was necessary and toggle the bits to enable it, but it's still not functioning.
I apologize in advance if this sounds unintelligent, I just don't use this much at all and I'm lost. Any help in the right direction would be greatly appreciated.