1686 HEIDENHAIN Technical Manual iTNC 530 HSCI
Along with the keywords there are also system parameters. System
parameters are identified by a preceding and following $ character. Depending
on which options have been set, they are defined via the compiler and can be
used for conditional compilation. For more information about this, please refer
to the PLCdesignNT help.
Available system parameters:
Strings in #if conditions for conditional compilation in the PLC program, in soft
key and cycle resources can now also contain blank spaces. The PLC tools can
also process #if conditions with strings containing blank spaces and integer
values with algebraic sign (e.g #if TEST "1 2 3").
A PLC program can identify whether the current system is the conventional
hardware (MC 42x, CC 42x) or HSCI hardware, which is addressed through
the IOC configuration. For this purpose, the environmental variable
%HsciHardware% is provided for the configuration file of the PLC program
(PLCCOMPCFG entry in OEM.SYS file). The variable contains the value 1 if
software 606 42x, and thus the HSCI hardware, is detected. Marker M4641
can be used for interrogation at run time.
System parameter Meaning
For interrogation with #ifdef:
$MULTIFILE$ Multifile option is set
$SYM_LABELS$ Symbolic labels option is set
$<nc model>$ Current control model, e.g. #ifdef $TNC407$
$<nc variante>$ Current NC ID number, e.g. #ifdef $340490_05$
$<nc basisvar.>$ Current NC basic ID number, e.g. #ifdef $340490$
For interrogation with #if:
$<VARIANT>$ Current NC ID number as numerical value, e.g.
#if $VARIANT$ >= 34049005
$<VARIANTBASE>$ Current NC basic ID number as numerical value, e.g.
#if $VARIANTBASE$ = 340490
$<VARIANTINDEX>$ Current NC ID number index as numerical value,
e.g. #if $VARIANT$ >= 05
$<VERSIONBASE>$ Current compiler basic version as numerical value
$<VERSIONINDEX>$ Current compiler index as numerical value