Determining The Index Of A Parameter Element - Para - HEIDENHAIN CNC PILOT 640 User Manual

Smart.turn and din programming
Table of Contents

Advertisement

DIN/ISO programming | Programming variables
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
PARA (key,
Key: Key word
entity,
Entity: Name of the configuration group
attribute,
Attribute, name: Attribute name and
element,
element name
index)
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.
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
4
473

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Manualplus 620

Table of Contents