12
Fig. 3-6
Absolute programming:
G17 G90 G16
;
Specifies polar coordinate command selection X Y plane
G81 X100 Y30 Z20 R-5 F200
;
Specifies drilling position: Distance 100mm, angle 30 °
Y150
;
Specifies drilling position: Distance 100mm, angle 150 °
Y270
;
Specifies drilling position: Distance 100mm, angle 270 °
G15 G80;
Cancellation polar coordinate command
Relative value programming:
G17 G90 G16
;
Specifies polar coordinate command selection X Y plane
G81 X100 Y30 Z20 R-5 F200
;
Specifies drilling position: Distance 100mm, angle 30 °
G91 Y120
;
Specifies drilling position: Distance 100mm, 120 ° angle increases
Y120
;
Specifies drilling position: Distance 100mm, 120 ° angle increases
G15 G80;
Cancellation polar coordinate command
3.6 Decimal Point Programming
The values can be entered with or without a decimal point. For the commands which stand for distance, time
and speed can use decimal values point. The addresses that can be entered with a decimal point as follows:
X, Y
,
Z
,
U
,
V
,
W
,
A
,
B
,
C
,
I
,
J
,
K
,
Q
,
R and F.
Z15.0
;
Z15mm
Z.015
;
Z0.015mm
Z15
;
Z15mm
F10
;
0.01mm/r 0.01mm/min
F10
;
10mm/r
10mm/min
4 Preparatory Function (G Code)
The preparatory function represented by the G code and the value behind the G Code and it defines its
meaning in a block of instructions. The preparatory function G code is generally divided in two types:
Table 4-1 The Meaning of Modal and Non-modal Code
Non-modal G Code
Only effective in the
specified block
00 team
Modal G Code
Effective until another G
code of the same group
Non-00 group