Programming: q parameters 9.10 string parameters – HEIDENHAIN TNC 620 (81760x-02) ISO programming User Manual

Page 336

Advertising
background image

Programming: Q parameters

9.10

String parameters

9

336

TNC 620 | User's ManualDIN/ISO Programming | 2/2015

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 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

N10 DECLARE STRINGQS11 = "CH_NC"

Assign string parameter for key

N20 DECLARE STRINGQS12 = "CFGGEOCYCLE"

Assign string parameter for entity

N30 DECLARE STRINGQS13 = "POCKETOVERLAP"

Assign string parameter for parameter name

N40 Q50 = CFGREAD( KEY_QS11 TAG_QS12 ATR_QS13 )

Read out machine parameter

Advertising