1 1 str ing par a met e rs – HEIDENHAIN TNC 620 (73498x-01) User Manual
Page 295

HEIDENHAIN TNC 620
295
8.1
1
Str
ing par
a
met
e
rs
Reading a string of a machine parameter
In order to store the content of a machine parameter as a string in a
QS parameter:
U
Show the soft-key row with special functions
U
Select the menu for defining various plain-language
functions
U
Select string functions
U
Select the STRING FORMULA function
U
Enter the number of the string parameter in which the
TNC is to save the machine parameter. Confirm with
the ENT key
U
Select the CFGREAD function
U
Enter the numbers of the string parameters for the
key, entity and attribute, then confirm with the ENT
key
U
Enter the number for the index, or skip the dialog with
NO ENT, whichever applies
U
Close the parenthetical expression with the ENT key
and confirm your entry with the END key
Example: Read as a string the axis designation of the fourth axis
Parameter settings in the configuration editor
DisplaySettings
CfgDisplayData
axisDisplayOrder
[0] to [5]
14 DECLARE STRING QS11 = ""
Assign string parameter for key
15 DECLARE STRING QS12 = "CfgDisplayData"
Assign string parameter for entity
16 DECLARE STRING QS13 = "axisDisplayOrder"
Assign string parameter for parameter name
17 QS1 = CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 IDX3 )
Read out machine parameter