January 2012 8.2 PLC Compiler 1513
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, please refer to the
PLCdesignNT help.
Available system parameters:
System
parameters
Meaning
For interrogation with #ifdef:
$<nc model>$ Current control model, e.g. #ifdef $TNC620$
$<nc variante>$ Current NC ID number, e.g. #ifdef $340560_03$
$<nc basisvar.>$ Current NC basic ID number, e.g. #ifdef $340560$
For interrogation with #if:
$<VARIANT>$ Current NC ID number as numerical value, e.g.
#if $VARIANT$ >= 34056003
$<VARIANTBASE>$ Current NC basic ID number as numerical value, e.g.
#if $VARIANTBASE$ = 340560
$<VARIANTINDEX>$ Current NC ID number index as numerical value,
e.g. #if $VARIANT$ >= 03
$<VERSIONBASE>$ Current compiler basic version as numerical value
$<VERSIONINDEX>$ Current compiler index as numerical value