Siemens SINUMERIK 828D Commissioning Manual page 1088

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

Advertisement

Programming commands
6.3 Functions
As loops can impair the system performance, depending on the configuration, they should be
used carefully and without time-intensive actions in the loops.
It is recommended that a register (REG[]) be used as run variable, because normal display
variables (particularly those with system or user variables connection) also impair the system
performance due to the frequent updates or write operations.
The runtime of "Run MyScreens" methods can be determined with the DEBUG function (see
Section DEBUG (Page 121)). Problems caused by loops (high CPU load, reduced response
capability) may be identified in this way.
Note
As each FOR loop can be replaced by a WHILE loop, the syntax to formulate a FOR loop is
not supported in EasyScreen.
Programming
DO
LOOP_WHILE <Condition to continue the loop>
DO
LOOP_UNTIL <Condition to terminate the loop>
DO_WHILE <Condition to continue the loop>
LOOP
DO_UNTIL <Condition to terminate the loop>
LOOP
Example
REG[0] = 5
DO
158
<instructions>
<instructions>
<instructions>
<instructions>
DEBUG("OUTER: " << REG[0])
REG[0] = REG[0] + 1
REG[1] = -5
DO
DEBUG("INNER: " << REG[1])
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents