Subroutines, Macros
2.13 Search path adaptation of the subroutines prepared during startup
Job planning
2-26 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2.13 2.13 Search path adaptation of the subroutines prepared during startup
Function
Machine data can be used to set a situation where the PROC instructions of the
NC programs saved in the cycle directories are read prepared with parameters for the
subroutine call during startup. The sequence for this is identical to that which the cycle
directories searches when calling up the subroutine. The user cycles are thereby first
addressed, followed by the manufacturer cycles and finally the standard cycles.
Application
The user or machine manufacturer can therefore copy NC programs from the standard
cycles to then adapt these to their own requirements. The NC programs modified in this way
can then be saved in a directory of the same name for user or manufacture cycles.
Machine manufacturer
All files which are prepared during startup can be identified with the PREPRO key word in
the PROC instruction line with appropriately set machine data. Please see the machine
manufacturer’s specifications for further details.
Read subroutine with preparation and subroutine call
The cycle directories are addressed in the same order both for subroutines prepared with
parameters during startup and during subroutine call
1. _N_CUS_DIR user cycles
2. _N_CMA_DIR manufacturer cycles
3. _N_CST_DIR standard cycles
In cases of NC programs of the same name with different characteristics, the first PROC
instruction found is activated and the other PROC instruction overlooked without an alarm
message.