Siemens SINUMERIK 840DE sl Commissioning Manual page 746

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

Advertisement

Generating user dialogs
1.7 XML identifier
Tag identifier
IF
INCLUDE
28
Meaning
Conditional instruction (IF, THEN, ELSE)
The THEN and ELSE tags are enclosed in the IF tag.
The condition that is executed in the CONDITION tag follows the IF tag. The further pro‐
cessing of the instructions depends upon the result of the operation. If the function result is
true, then the THEN branch is executed and the ELSE branch is skipped. If the result of the
function is false, the parser executes the ELSE branch.
Syntax:
<IF>
<CONDITION> Condition != 7 </CONDITION>
<THEN>
Instruction for the case: Condition fulfilled
</THEN>
<ELSE>
Instruction for the case: Condition not fulfilled
</ELSE>
</IF>
Example:
<IF>
<CONDITION> "plc/mb170" != 7 </CONDITION>
<THEN>
<OP> "plc/mb170" = 7 </OP>
...
</THEN>
<ELSE>
<OP> "plc/mb170" = 2 </OP>
...
</ELSE>
</IF>
The instruction includes an XML description.
(see also DYNAMIC_INCLUDE in this table)
Attribute:
● src
Contains the path name.
Syntax:
<?INCLUDE src="<Path name>" ?>
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Easy XML

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents