Determining the index of a parameter element— para, Determining the index of a parameter element—para, 31 pr ogr amming v a ri ables – HEIDENHAIN SW 54843x-02 DIN Programming User Manual
Page 395

HEIDENHAIN MANUALplus 620, CNC PILOT 640
395
4.31 Pr
ogr
amming v
a
ri
ables
Determining the index of a parameter element—
PARA
You activate the index search for an element by appending the name
of the list element to the attribute, separated by a comma.
Example:
Determining the logical axis number of spindle S1
#c1 = PARA( "", "CfgAxes", "axisList,S1", 0)
The function returns the index of the "S1" element in the "axisList"
attribute of the "CfgAxes" entity. The index of element S1 equals the
logical axis number in this example.
Access to configuration data
Syntax:
PARA("key","entity","attribute,elem
ent", index)
Key: Key word
Entity: Name of the configuration
group
Attribute,name: Attribute name and
element name
Index: 0 (not required)
Without the attribute extension "S1", the function would
read the element located at the list index number 0. Since
the element is a string in this example, the result has to be
assigned to a string variable.
#x1 = PARA( "", "CfgAxes", "axisList", 0)
The function reads the string name of the element at list
index number 0.