Siemens SINUMERIK 808D Function Manual page 236

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

Advertisement

Tag identifier
LET
236
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. The variable type can also
be a structure defined with 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 attrib-
ute 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".
Function Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents