If the variable points to an array, e.g. DEF VAR_AC3 = (I/* MYARRAY), these functions
are not available as otherwise the global array would be changed.
At least one value must be defined for the variable in the DEF line. This specifies the "Simple"
or "Extended" list type.
However, the list can then be completely deleted and, if required, completely rebuilt. The
"Simple" or "Extended" type must be retained however, it cannot be changed dynamically.
Programming
Syntax: LISTINSERTITEM
(Variable name, Position, ItemValue[, ItemDisp‐
Value])
Description: Inserts an element at a specific position; reading from a file
Parameter: Variable name
Position Position at which an element is
to be inserted in the list
ItemValue Value of the list entry
ItemDispValue Value as it is to be displayed in
the list
Syntax: LISTADDITEM(Variable name, ItemValue[, ItemDispValue])
Description: Adds an element to the end of the list
Parameter: Variable name
ItemValue Value of the list entry
ItemDispValue Value as it is to be displayed in
the list
Syntax: LISTDELETEITEM(Variable name, Position)
Description: Deletes a specific element
Parameter: Variable name
Position Position of the element to be de‐
leted in the list
Syntax: LISTCOUNT(Variable name)
Description: Returns the current number of elements in the list
Parameter: Variable name
Syntax: LISTCLEAR
(Variable name)
Description: Deletes the complete list
Parameter: Variable name
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
154 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1