The time switch is implemented with the help of the flag in the S7-1200 CPU. The advantage, as compared to the TON timer, is the immediate reaction when changes in parameters occur, and not a reaction during the next interval. This is reasonable if you want to change the counter parameter from the Central Station.