DIN/ISO programming | Programming variables
4
472
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
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.
Access to configuration data
PARA (key,
entity,
attribute,
index)
Key: Key word
Entity: Name of the configuration group
Attribute: Element name
Index: Array number if the attribute is
from an array
Example: PARA function
. . .
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