January 2012 8.2 PLC Compiler 1515
Example:
Entries in OEM.MCG:
DEFINE %CfgOemBool.NP_MG_STAR_DELTA.value.0%
DEFINE %CfgOemInt.NP_DG_TOOLCHANGER.value.0%
DEFINE %CfgOemInt.NP_DG_SWIVEL_HEAD.value.0%
Instructions for conditional compilation in the PLC program:
#if NP_MG_STAR_DELTA = 1
...
#endif
#if NP_DG_TOOLCHANGER = 3
...
#endif
#if NP_DG_SWIVEL_HEAD = 2
...
#endif
Settings in the configuration editor
System
Paths
CfgPlcPaths
compCfgFile: %OEM%\plc\oem.mcg
PLC
CfgOemBool
NP_MG_STAR_DELTA
value
[0]: TRUE
CfgOemInt
NP_DG_TOOLCHANGER
value
[0]: 3
NP_DG_SWIVEL_HEAD
value
[0]: 2