Programming instructions

NC Programming 17VRS Motion Commands, Dimension Inputs
3-3
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
3.3 Dimension Input
The motion commands for the axes can be entered in two different ways:
As an absolute dimension input (G90) or
as an incremental dimension input (G91).
Input Data as Absolute Dimensions 'G90'
With absolute dimension input all dimensions are stated relative to a fixed
zero point. When the CNC-program boots, the initial setting is G90. G90
remains in effect until it is written over with G91. In the NC-program, G90
only needs to be programmed if one wishes to cancel G91.
Example
20
40
60
80
100
20 40 60 80 100 120 140
X
Y
[P1]
[P2]
[P3]
[P4]
Fig. 3-2: Absolute dimension input
G00 G90 G54 X0 Y0 Z10 S1000 M03 Starting position
G01 X50 Y50 F500 [P1]
BSR .DRILL Branch to drilling subroutine
Y80 [P2]
BSR .DRILL Branch to drilling subroutine
X100 [P3]
BSR .DRILL Branch to drilling subroutine
Y50 [P4]
BSR .DRILL Branch to drilling subroutine
M05 Spindle OFF
RET End of program
.DRILL Drilling subroutine
G01 Z-10 F300 Drill to depth Z
G04 F2 Dwell time 2 seconds
Z3 Drill to safety distance
RTS Return from subroutine