EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 747

Siemens SINUMERIK 840DE SL
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
Loading...
Tag identifier Meaning
LET The instruction creates a local variable under the specified name.
Fields:
Using the attribute dim (dimension) single or two-dimensional fields can be created. The
field index addresses the individual field elements.
For a two-dimensional field, initially the line index is specified and then the column index.
Single-dimensional field:
Indices 0 to 4
Two-dimensional field:
Index line 0 to 3 and index column 0 to 5

 


Attributes:
name
Variable name
type
The variable type can be an integer (INT), unsigned integer (UINT), double (DOUBLE),
float (FLOAT), string (STRING), or STRUCT. It is also possible to use a structure created
by typedef as a variable type (see tag identifier TYPEDEF). If there is no type instruction
specified, the system creates an integer variable.
<LET name = "VAR1" type = "INT" />
permanent
If the attribute is set to true, then the variable value is saved permanently. This attribute
is only effective for a global variable.
dim
The following number of field elements must be specified. For a two-dimensional field,
the second dimension is specified after the first dimension separated by a comma.
A field element is accessed via the field index, which is specified in square brackets
after the variable name.
name[index] or name[row,column]
Single-dimensional field: dim="<Number of elements>"
Two-dimensional field: dim="<Number of lines>,<number of columns>"
Non-initialized field elements are pre-assigned with "0".
Generating user dialogs
1.7 XML identifier
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 29

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals