Siemens S5 PLC Timers. Have looked through manual re types of timers There are 5 timer types in Simatic S5 (pulse, extended pulse, On delay, retentive On delay, Off delay) and 2 counter types (Up and Down).
The retentive timer looks Ok at first but appears to hold values if power is lost only.
I need to enable a timer when flag 1 goes false. Then accumulate run time of a motor output Q xxx that stops and starts until a preset has been reached. Then I want to reset a flag 2.
If Flag 1 goes true and then back to false before preset reached I need to reset any accumulated time to zero
Note the current logic is in a PB block called via a Jump call.
Have I missread the retentive timer function, or do I need to add the run time into a counter? If so would I need to do that in a FB block.
The retentive timer looks Ok at first but appears to hold values if power is lost only.
I need to enable a timer when flag 1 goes false. Then accumulate run time of a motor output Q xxx that stops and starts until a preset has been reached. Then I want to reset a flag 2.
If Flag 1 goes true and then back to false before preset reached I need to reset any accumulated time to zero
Note the current logic is in a PB block called via a Jump call.
Have I missread the retentive timer function, or do I need to add the run time into a counter? If so would I need to do that in a FB block.