Siemens SINUMERIK 840DE sl Commissioning Manual page 745

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Tag identifier
FOR
FORM
HMI_RESET
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Meaning
For loop
for (initialization; test; continuation) instruction(s)
Syntax:
<FOR>
<INIT>...</INIT>
<CONDITION>...</CONDITION>
<INCREMENT>...</INCREMENT>
Instructions
...
</FOR>
The For loop is executed as follows:
1. Evaluation of the expression initialization (INIT).
2. Evaluation of the expression test (CONDITION) as a Boolean expression.
If the value is false, the For loop is exited.
3. Execution of the following instructions.
4. Evaluation of the expression continuation (INCREMENT).
5. Continue with 2.
All the variables within the INIT, CONDITION, and INCREMENT branches are declared
and initialized outside the FOR loop.
Example:
<LET name = "count">0</LET>
<FOR>
<INIT>
<OP> count = 0</OP>
</INIT>
<CONDITION> count <= 7 </CONDITION>
<INCREMENT>
<OP> count = count + 1 </OP>
</INCREMENT>
<OP> "plc/qb10" = 1+ count </OP>
</FOR>
The tag contains the description of a user dialog. The description is provided in Chapter
"Generating softkey menus and dialog forms (Page 49)."
The tag triggers an HMI restart.
Interpretation is stopped after this instruction.
Generating user dialogs
1.7 XML identifier
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents