EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK ONE MCP 2400.4c

Siemens SINUMERIK ONE MCP 2400.4c Commissioning Manual

Siemens SINUMERIK ONE MCP 2400.4c
1734 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1174 background imageLoading...
Page #1174 background image
6.3.37 WHILE/UNTIL loops
Description
A loop can be implemented with the DO LOOP commands. Depending on the configuration,
it is run through as long as a condition is satisfied (WHILE) or until a condition occurs (UNTIL).
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 151)). 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
<instructions>
LOOP_WHILE <Condition to continue the loop>
DO
<instructions>
LOOP_UNTIL <Condition to terminate the loop>
DO_WHILE <Condition to continue the loop>
<instructions>
LOOP
DO_UNTIL <Condition to terminate the loop>
<instructions>
LOOP
Example
REG[0] = 5
DO
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
188 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals