Sorry the forum isn't allowing me to put a jpeg of my timer done with Ecostruxture for a TM221.
Basically, a coi acceptor sends a pulse to an input, everytime it's received adds 66 seconds on an operation block, when another pulse is receive, adds another 66 seconds (at this point there's 138 seconds) When another input receives an signal, the timer starts, when it reaches zero it resets.
Wish I could post it to get the idea, it's a timer for a self service car wash 50 cents gives you x amount of seconds through a pulse 1€ gives two pulses (x+x) 2€ four pulses (x+x+x+x).