Professional Documents
Culture Documents
G10 PDF
G10 PDF
1
Lesson Nine: G10 Data Setting Command
.
.
G10 L50
N5141 R0020
G11
.
.
The N word specifies the parameter number and the R word specifies the value. Note
that if you have more parameters to set, you simply do so before the G11 command.
Also note that some parameters are related to axes and have one value per axis. For these
parameters, a P word in each value setting command specifies the axis number.
Entering tool length and cutter radius compensation values for machining centers
Many CNC users assemble and measure cutting tools while the machine is in production.
In essence, theyre getting ready for the next setup while the machine is still producing.
Most companies that do this have someone in the tool crib (commonly the tool setter)
assembling and measuring tools. That is, it is not commonly the responsibility of the
CNC operator or setup person in these companies to assemble and measure cutting tools.
While this can dramatically reduce the amount of time the machine is down between
production runs, many tool setters simply write down tool length and cutter radius
compensation values and the setup person is expected to enter these values into the
control during setup.
One great application for G10 will minimize (almost eliminate) the amount of time it
takes to enter offsets into the CNC control. It will also eliminate the setup persons
potential for making mistakes while doing so. After measuring each tool (length and/or
radius), the tool setter can enter its value in a G10 command. A special template program
will really help. It can be called up on a CNC text editor right at the tool setters work
station. Heres an example of the template program:
O5000 (Tool offset setting program)
G90 G10 L10 P1 R20.0 (Set offset number one)
G90 G10 L10 P2 R20.0 (Set offset)
G90 G10 L10 P3 R20.0 (Set offset)
G90 G10 L10 P4 R20.0 (Set offset)
G90 G10 L10 P5 R20.0 (Set offset)
G90 G10 L10 P6 R20.0 (Set offset)
G90 G10 L10 P7 R20.0 (Set offset)
G90 G10 L10 P8 R20.0 (Set offset)
G90 G10 L10 P9 R20.0 (Set offset)
G90 G10 L10 P10 R20.0 (Set offset)
G90 G10 L10 P11 R20.0 (Set offset)
G90 G10 L10 P12 R20.0 (Set offset)
G90 G10 L10 P13 R20.0 (Set offset)
G90 G10 L10 P14 R20.0 (Set offset)
G90 G10 L10 P15 R20.0 (Set offset)
G90 G10 L10 P16 R20.0 (Set offset)
2
Lesson Nine: G10 Data Setting Command
3
Lesson Nine: G10 Data Setting Command
Note that many setup people will not wanting this command executed every time the
program is run. If any fine tuning of fixture offsets is necessary (though they
shouldnt be if the setup is truly qualified), this command will overwrite whatever
minor modifications they make. A better way to include this command in the program
yet ensure that it is only executed once (during setup) is to include it in a special series
of commands after the end of program command (usually M30 or M02). Here is an
example.
4
Lesson Nine: G10 Data Setting Command
that should help you understand. Though were using but two subprograms, you can
have as many as youd like.
Coordinate system setting subprograms:
O6001 (Set coordinate system number one)
G90 G10 L2 P1 X-12.1277 Y-11.8227 Z9.2138 (Set fixture offset number one
as needed)
G54 (Invoke fixture offset number one)
M99 (End of subprogram)
5
Lesson Nine: G10 Data Setting Command
6
Lesson Nine: G10 Data Setting Command
machining the first thread, you can give the G10 commands that set the parameters in the
manner you wish them set for the first thread. After machining the first thread with G76,
give the G10 commands that set the values for the second thread. Then you can give the
G76 command for the second thread. Heres an example for a 15T control (remember,
parameter numbers vary from one control model to another).
.
.
.
G10 L50
N6218 R0030
N6219 R0002
N6220 R3
G11
N045 G00 X3.2 Z0.2
N050 G76 X2.92 Z-0.75 K0.040 D0100 F0.0625 (Machine first thread)
G10 L50
N6218 R0070
N6219 R0004
N6220 R2
G11
N055 G00 X5.2
N060 Z-2.8
N065 G76 X4.8 Z-0.75 K0.1 D0250 F0.1875 (Machine second thread)
.
.
.
As you can see, these are two substantially different threads. The first is a 1/16 pitch,
0.04 deep thread. The second is a 3/16 pitch, 0.1 deep thread. The minimum depth of cut
(parameter 6218) is set to 0.003 for the first thread but 0.007 for the second. The final
pass depth (parameter 6219) is set to 0.0002 for the first thread and 0.0004 for the
second. And the number of spring passes (parameter 6220) is three for the first thread
and two for the second.
Though the need to set parameters from within CNC programs is rare (well be pointing
out a few more), it is quite important that you know its possible.