Siemens SINUMERIK 840DE sl Commissioning Manual page 747

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

Advertisement

Tag identifier
LET
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Meaning
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
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents