Programming Q Parameters | String parameters
10
HEIDENHAIN | TNC 620 | Conversational Programming User's Manual | 10/2017
455
Reading a numerical value of a machine parameter
Store the value of a machine parameter as a numerical value in a Q
parameter:
Select Q parameter function
Press the FORMULA soft key
Enter the number of the Q 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 NNOENT, whichever applies
Close the parenthesized expression with the ENT
key
Press the END key to conclude entry
Example: Read overlap factor as Q parameter
Parameter settings in the configuration editor
ChannelSettings
CH_NC
CfgGeoCycle
pocketOverlap
Example
14 QS11 = "CH_NC"
Assign string parameter for key
15 QS12 = "CfgGeoCycle"
Assign string parameter for entity
16 QS13 = "pocketOverlap"
Assign string parameter for parameter name
17 Q50 = CFGREAD(KEY_QS11TAG_QS12ATR_QS13)
Read out machine parameter