//M(TimerSample/"My timer")
VS2=("Stop%ntimer")
SUB(MyTimerSub)
MyVariable = MyVariable + 1
END_SUB
PRESS(VS1)
;Calls SUB "MyTimerSub" every 1000 milliseconds
START_TIMER("MyTimerSub", 1000)
END_PRESS
PRESS(VS2)
STOP_TIMER("MyTimerSub")
END_PRESS
If START_TIMER is called again for a timer already assigned to a SUB method, then the new
interval is taken over if it is different. Otherwise, the second call is ignored.
The smallest interval for the system is100 milliseconds.
If STOP_TIMER is called for a SUB method for which no timer is currently running, the call is
ignored.
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 191