Siemens SINUMERIK 808D ADVANCED Commissioning Manual page 320

Hide thumbs Also See for SINUMERIK 808D ADVANCED:
Table of Contents

Advertisement

Tag identifier
TYPEDEF Continued
WAITING
WHILE
320
Meaning
Some predefined functions expect variables of structure type RECT, POINT, or SIZE as
the call parameter. These structures are defined in the file struct_def.xml.
RECT:
<typedef name="StructRect" type="struct" >
<element name="left" type="int">0</element>
<element name="top" type="int">0</element>
<element name="right" type="int">0</element>
<element name="bottom" type="int">0</element>
</typedef>
POINT:
<typedef name="StructPoint" type="struct" >
<element name="x" type="int">0</element>
<element name="y" type="int">0</element>
</typedef>
SIZE:
<typedef name="StructSize" type="struct" >
<element name="width" type="int">0</element>
<element name="height" type="int">0</element>
</typedef>
The tag waits for the component to undergo a hot restart after an NC or drive reset.
Attributes:
WAITINGFORNC = "TRUE" - the system waits for the NC to restart
Syntax:
<WAITING WAITINGFORNC = "TRUE"/>
Example:
...
<CONTROL_RESET resetnc = "true"/>
<WAITING waitingfornc = "true"/>
...
WHILE loop
WHILE (Test)
Instruction
Syntax:
<WHILE>
<CONDITION>...</CONDITION>
Instructions
...
</WHILE>
The While loop executes a sequence of instructions repeatedly while a condition is met.
This condition is tested before the sequence of instructions is executed.
Example:
<WHILE>
<CONDITION> "plc/ib9" == 0 </CONDITION>
<DATA name = "PLC/qb11"> 15 </DATA>
</WHILE>
Commissioning Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents