Cyclic Execution Of Scripts: Start_Timer, Stop_Timer - Siemens SINUMERIK 828D Commissioning Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Programming commands
6.3 Functions
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:
Description:
Parameters:
Syntax:
Description:
Parameters:
Example
//M(TimerSample/"My timer")
DEF MyVariable=(I//0/,"Number of cyclic calls:"/WR1)
VS1=("Start%ntimer")
VS2=("Stop%ntimer")
SUB(MyTimerSub)
END_SUB
160
REG[1] = REG[1] + 1
LOOP_UNTIL 0 <= REG[1]
MyVariable = MyVariable + 1
("SUB name", Interval)
START_TIMER
Starts cyclic processing of a SUB method
SUB name:
Name of the SUB method to be called cyclically
Interval:
Interval in milliseconds
("SUB name", Interval)
STOP_TIMER
Stops cyclic processing of a SUB method
SUB name:
Name of the SUB method whose timer is to be stop‐
ped.
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SINUMERIK Integrate Run MyScreens

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents