beautypg.com

Reading configuration data—para, 31 pr ogr amming v a ri ables – HEIDENHAIN SW 548328-05 DIN Programming User Manual

Page 396

background image

396

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: Key word

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