Siemens SINUMERIK 828D Commissioning Manual page 1055

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

Advertisement

Examples
Note
The following examples build upon each other. The sequence of the examples is relevant in
order to understand the respective results.
Requirement/assumption:
DEF VAR_AC = (I/* 0="Off",1="On"/1/,"Switch"/WR2)
Adding an element -1="Undefined" to the end of the list:
LISTADDITEM("VAR_AC", -1, """Undefined""")
Result: 0="Off", 1="On", -1="Undefined"
Inserting an element 99="Maybe" at position 2:
LISTINSERTITEM("VAR_AC", 2, 99, """Maybe""")
Result: 0="Off", 1="On", 99="Maybe", -1="Undefined"
Determining the current number of list elements:
REG[10]=LISTCOUNT("VAR_AC")
Result: REG[10] = 4
Deleting the element at position 1:
LISTDELETEITEM("VAR_AC", 1)
Result: 0="Off", 99="Maybe", -1="Undefined"
Deletion of the complete list:
LISTCLEAR("VAR_AC")
Result: List is empty
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Programming commands
6.3 Functions
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents