Hello,
I'm using S7 on a S-300 series Siemens controller. My goal is to write a function into my program that triggers every cycle time (for example 24 hours, would prefer this to be adjustable), and during this function enables a coil for a set amount of time. The tricky part is that both during this cycle and for an adjustable amount of time after the cycle is completed I need to freeze a few database values to provide a recovery time.
I wrote a function that converts an integer input to the s5time, but I'm not sure how to implement the freeze time.
Originally I attempted to use ODTS timers with some cobbled together ladder logic, but it isn't working.
My S7 knowledge is somewhat limited as well.
Any suggestions?
Thanks for your help.
I'm using S7 on a S-300 series Siemens controller. My goal is to write a function into my program that triggers every cycle time (for example 24 hours, would prefer this to be adjustable), and during this function enables a coil for a set amount of time. The tricky part is that both during this cycle and for an adjustable amount of time after the cycle is completed I need to freeze a few database values to provide a recovery time.
I wrote a function that converts an integer input to the s5time, but I'm not sure how to implement the freeze time.
Originally I attempted to use ODTS timers with some cobbled together ladder logic, but it isn't working.
My S7 knowledge is somewhat limited as well.
Any suggestions?
Thanks for your help.