DEBUG("OUTER: " << REG[0])
REG[0] = REG[0] + 1
REG[1] = -5
DO
DEBUG("INNER: " << REG[1])
REG[1] = REG[1] + 1
LOOP_UNTIL 0 <= REG[1]
LOOP
6.3.38 Cyclic execution of scripts: START_TIMER, STOP_TIMER
Description
SUB methods can be called cyclically with the aid of timers. The START_TIMER() and
STOP_TIMER() functions are available for this purpose.
Note
Only one timer can be configured for each SUB method.
Programming
Syntax: START_TIMER
("SUB name", Interval)
Description: Starts cyclic processing of a SUB method
Parameters: SUB name: Name of the SUB method to be called cyclically
Interval: Interval in milliseconds
Syntax: STOP_TIMER
("SUB name", Interval)
Description: Stops cyclic processing of a SUB method
Parameters: SUB name: Name of the SUB method whose timer is to be stop‐
ped.
Example
//M(TimerSample/"My timer")
DEF MyVariable=(I//0/,"Number of cyclic calls:"/WR1)
VS1=("Start%ntimer")
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
190 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1