HEIDENHAIN TNC 320 User Manual page 293

Conversational programming
Hide thumbs Also See for TNC 320:
Table of Contents

Advertisement

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:
Select Q-parameter functions
Select the FORMULA function
Enter the number of the Q parameter in which the
TNC is to save the machine parameter. Confirm
with the ENT key
Select the CFGREAD function
Enter the numbers of the string parameters for
the key, entity and attribute, then confirm with the
ENT key
Enter the number for the index, or skip the dialog
with NO ENT, whichever applies
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 STRINGQS11 = "CH_NC"
15 DECLARE STRINGQS12 = "CFGGEOCYCLE"
16 DECLARE STRINGQS13 = "POCKETOVERLAP"
17 Q50 = CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 )
TNC 320 | User's Manual HEIDENHAIN Conversational Programming | 5/2013
String parameters 8.11
Assign string parameter for key
Assign string parameter for entity
Assign string parameter for parameter name
Read out machine parameter
8
293

Advertisement

Table of Contents
loading

Table of Contents