Reading configuration data—para, 31 pr ogr amming v a ri ables – HEIDENHAIN SW 54843x-03 DIN Programming User Manual
Page 418

418
DIN Programming
4.31 Pr
ogr
amming v
a
ri
ables
Reading configuration data—PARA
The PARA function is used to read configuration data. To do this, use 
the parameter designations from the configuration parameters. You 
also use the designations from the configuration parameters to read 
user parameters.
When you read optional parameters, check whether the return value 
is valid. Depending on the data type of the parameter (REAL/STRING), 
the value "0" or the text "_EMPTY" is returned when reading an optional 
attribute that has not been set.
Example: PARA function
Access to configuration data
Syntax:
PARA(key, entity, attribute, index)
Key: Keyword
Entity: Name of the configuration 
group
Attribute: Element name
Index: Array number if the attribute is 
from an array
. . .
N.. #l10=PARA("","CfgDisplayLanguage","ncLanguage")
Reads the number of the currently selected 
language
N.. #l1=PARA("","CfgGlobalTechPara","safetyDistWorkpOut")
Reads the external safety clearance on the 
machined part (SAT)
N.. #l1=PARA("Z1","CfgAxisProperties","threadSafetyDist")
Reads the thread safety clearance for Z1
N.. #l1=PARA("","CfgCoordSystem","coordSystem")
Reads the machine orientation number
. . .
#x2=PARA("#x30","CfgCAxisProperties","relatedWpSpindle",0)
Check whether the optional parameter is set
IF #x2<>"_EMPTY"
Evaluation:
THEN
[ The parameter "relatedWpSpindle" was set ]
ELSE
[ The parameter "relatedWpSpindle" was not set ]
ENDIF
