Programming Qparameters | String parameters
9
Reading a string of a machine parameter
In order to store the content of a machine parameter as a string in a
QS parameter:
Press the Q key.
Press the STRING FORMULA soft key
Enter the number of the string parameter in which
the control is to save the machine parameter
Press the ENT key
Select the CFGREAD function
Enter the numbers of the string parameters for
key, entity, and attribute
Press the ENT key
Enter the number for the index, or skip the dialog
with NOENT, whichever applies
Close the parenthesized expression with the ENT
key
Press the END key to conclude entry
Example: Read as a string the axis designation of the fourth axis
Parameter settings in the configuration editor
DisplaySettings
CfgDisplayData
axisDisplayOrder
[0] to [5]
Example
14 QS11 = ""
; Assign QS parameter for the key
15 QS12 = "CfgDisplaydata"
; Assign QS parameter for the entity
16 QS13 = "axisDisplay"
; Assign QS parameter for the parameter name
17 QS1 =
CFGREAD(KEY_QS11TAG_QS12ATR_QS13IDX3)
; Read out machine parameter(s)
322
HEIDENHAIN | TNC620 | Klartext Programming User's Manual | 01/2022