This procedure waits until the time cycle given by ti_synctime is finished and adjusts the timer. Before this procedure is used, the timer with the number #TI_SYNC has to be started.