1 1 str ing p a ra met e rs – HEIDENHAIN TNC 320 (340 55x-05) User Manual
Page 289

HEIDENHAIN TNC 320
289
8.1
1
Str
ing P
a
ra
met
e
rs
Reading a numerical value of a machine parameter
In order to store the value of a machine parameter as a numerical value
in a Q parameter:
U
Select Q parameter functions
U
Select the FORMULA function
U
Enter the number of the Q 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 overlap factor as Q parameter
Parameter settings in the configuration editor
ChannelSettings
CH_NC
CfgGeoCycle
pocketOverlap
14 DECLARE STRING QS11 = "CH_NC"
Assign string parameter for key
15 DECLARE STRING QS12 = "CfgGeoCycle"
Assign string parameter for entity
16 DECLARE STRING QS13 = "pocketOverlap"
Assign string parameter for parameter name
17 Q50 = CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 )
Read out machine parameter