Conditional Compilation - HEIDENHAIN iTNC 530 Technical Manual

Cnc control
Hide thumbs Also See for iTNC 530:
Table of Contents

Advertisement

8.2 Conditional Compilation

February 2002
Depending on the machine parameters, a PLC program can be conditionally
compiled on the iTNC. This allows you to select and deselect machine options
by entering the options in machine parameters. Therefore, only one PLC
program is necessary for all variants of machine options.
7
Enter the commands for the conditional compilation in the PLC program.
7
Create the Config. file.
7
In OEM.SYS, enter PLCCOMPCFG = followed by the path for the Config. file.
7
Enter the machine options in the machine parameters MP4000.x.
7
Reset the iTNC or recompile the PLC program.
Example:
OEM.SYS:
...
PLCCOMPCFG = PLC:\OEM\OEM.CFG
...
#if SWIVEL_HEAD = 3
...
#endif
#ifdef CHIP_CONVEYOR
...
#endif
#if STAR_DELTA = YES
...
#endif
#if TOOLCHANGER = 1
...
#endif
MP4000.0-15 Options for the conditional compilation of the PLC program
Conditional Compilation
OEM.CFG:
DEFINE TOOLCHANGER = 1
DEFINE STAR_DELTA = %MP4000.1%
DEFINE %MP4000.2%
DEFINE %MP4000.3%
MP4000.1 : YES
MP4000.2 : CHIP_CONVEYOR
MP4000.3 : SWIVEL_HEAD = 3
8 – 11

Advertisement

Table of Contents
loading

Table of Contents