Programming Q Parameters | String parameters
10
HEIDENHAIN | TNC 620 | Conversational Programming User's Manual | 10/2017
453
Reading out machine parameters
With the CFGREAD function, you can read out machine parameters
of the control as numerical values or as strings. The read-out values
are always output in metric units of measure.
In order to read out a machine parameter, you must use the
control's configuration editor to determine the parameter name,
parameter object, and, if they have been assigned, the group name
and index:
Icon Type Meaning Example
Key Group name of the
machine parameter (if
available)
CH_NC
Entity Parameter object (name
begins with Cfg...)
CfgGeoCycle
Attribute Name of the machine
parameter
displaySpindleErr
Index List index of a machine
parameter (if available)
[0]
If you are in the configuration editor for the user
parameters, you can change the display of the existing
parameters. In the default setting, the parameters are
displayed with short, explanatory texts.
Further information: "Changing the display of the
parameters", page 776
Each time you want to interrogate a machine parameter with the
CFGREAD function, you must first define a QS parameter with
attribute, entity and key.
The following parameters are read in the CFGREAD function’s
dialog:
KEY_QS: Group name (key) of the machine parameter
TAG_QS: Object name (entity) of the machine parameter
ATR_QS: Name (attribute) of the machine parameter
IDX: Index of the machine parameter