Programming instructions
NC Programming 17VRS NC Program
2-3
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Advance program
An advance program consists of a complete sequence of NC-blocks
needed to produce a workpiece. In addition to the path information
needed for machining, the advance program also contains all additional
auxiliary functions and branch/jump commands for subroutines and cy-
cles.
The advance program ends with the NC-block in which RET (end of pro-
gram with reset) is programmed.
Example
T4 BSR .M6 Tool change SF D50
T8 MTP Next machining tool
G00 G90 G54 X0 Y0 Z50 S5000 M03 Home position
G01 X46 Y144 Z2 Pos. at safety distance
.
.
RET
Reverse Program
A reverse program consists of a complete series of NC-blocks which de-
scribe an operation sequence which is to be performed to establish the
reference or home position of a station, regardless of how complicated
the traverse moves required for it might be. As a rule, a reverse program
is programmed in program number 0 or number 99 so that it can be used
as a subroutine to establish the reference point or home position of a sta-
tion or machine.
The reverse program begins with the NC-block in which the label .HOME
is programmed. Other entry points for the reverse program can be de-
fined in the advance program with the aid of reverse vectors (see Chapter
9 "Commands for Controlling Processes and Programs ").
When reverse programming is done in a systematic manner without any
omissions, the operator can extract the station(s) or the machine from the
most complicated machining situations and return to the initial position in
the event of errors or malfunctions or in any given EMERGENCY STOP
situation. This is done safely and without the risk of collision.
Example
.HOME Global Homing
MRF Go to tool magazine reference point
D0 Cancel D-corrections
G40 G47 G53 G90 Cancel overrides
G74 Z0 F1000 Go to Z axis reference point
G74 X0 Y0 F1000 Go to X and Y axis reference point
RET
Note:
It is not necessary to program a reverse program unless the
machine builder has specified in the process parameters that
a reverse program must be programmed.