User manual
WinPC-NC Economy Additional Information
Example: Square
with rounded
corners
%prog2
N001 G90
N002 G71 T1 M6
N003 G00 X110 Y100 Z10
N004 G01 Z11
N005 G01 X190
N006 G03 X200 Y110 J10
N007 G01 Y190
N008 G03 X190 Y200 I-10
N009 G01 X110
N010 G03 X100 Y190 J-10
N011 G01 Y110
N012 G03 X110 Y100 I10
N013 G01 Z10
N014 G00 X0 Y0 Z0
N015 M30
Start of program
Absolute coordinates
Dimensions in mm, tool 1
Speed to 1st position
Plunge movement with Z
Feed movement in straight line
Arc about center point
etc...
Rapid speed to zero point
End of program
Bear in mind the following points when writing G code
programs :
• The programs must be written using an editor or an external
program
• The program name with % sign introduces the real program code,
all preceding lines are remark lines
• At least one tool has to be selected and changed, e.g. with T1 M6
in the program head (M6 is absolutely necessary)
• Speeds are adjustable with F commands in mm/sec. or mm/min.
defined by paramaters.
• The command number can be defined using N commands
• For arcs, you can either use the I, J, K commands to define the
center point or R to program a radius. Positive radii produce an
arc less than 180° and negative radii an arc greater than 180°.
• Up to 20 subroutines are defined at the end of the main program
after M30, using G98 Lx. The definition ends with G98 L0. The
subroutine call can be positioned anywhere with Lx.
- 103 -