Professional Documents
Culture Documents
KERTAS PENERANGAN
INSTITUT TEKNIKAL JEPUN MALAYSIA
J14 DIPLOMA IN MANUFACTURING ENGINEERING TECHNOLOGY
KOD DAN NAMA
KURSUS
J15 DIPLOMA IN PRECISION MACHINING ENGINEERING TECHNOLOGY
KOD DAN NAMA
DPB1302 / DJB1302 NUMERICAL CONTROL PROGRAMMING
MODUL
PENGALAMAN
6.0 CNC MILLING PROGRAM
PEMBELAJARAN
NO. TUGASAN NONE
BERKAITAN
Following the command of the program number, it is possible to command the program name by
parenthesizing it like the example of program 2. When the program number is not commanded,
the first sequence number of the program is used as the program number. The program starts
with the program number and ends with the end of program (M02 or M30) as the example of
program 3.
Fig. 6-2 Commanding method of program number
The sequence number can also be commanded for only a particular block, though it can be
commanded for each block. In addition, the number may not be in order. (Refer to the example
of program 2). In general, the sequence number is commanded with a consecutive number
according to the process sequence, the example of program 3. As in the case of the program
number, it is also possible to command the process name by parenthesizing if following the
sequence number.
Fig. 6-3 Commanding method of sequence number
The G-functions marked with in the table are functions which show the condition of their G
functions when the power source is switched on or after the machine is reset. This condition is
the initial condition of the NC unit. The block in the example of program configuration 3is for
presetting the initial condition of the NC unit on the program as shown in Fig. 6-4 when
executing the subsequent programs.
Fig. 6-4 Setting of initial condition
The G-functions can be classified into the following two types according to their operations.
1. One-shot G-function - G-function which is significant for only the commanded block
2. Modal 0-function - G-function which remains effective until another 0-function in the
same group is commanded.
In Table 6-1, the G-functions in the 00 group are the one-shot 0-functions, and those in groups
other than the 00 group are the modal G-functions. When a modal 0-function is commanded, the
command for the 0-function in every block can be omitted until another 0-function in the same
group is commanded.
In addition, multiple 0-functions can be commanded in the same block if they are from different
groups as shown in Fig. 6-4. If multiple 0-functions in the same group are commanded in the
same block, the 0-function which is commanded last becomes effective. Table 6-1 shows the
extracted major 0-functions (FANUC-1 IM). There are many 0-functions besides the above. For
the 0-functions which are not shown in the table, refer to the instruction manual of the machine
or the NC unit.
Table 6-1 Kinds and semantics of G-function
1) M-function which starts to work simultaneously with the movement of the axis in the block
(Win the table)
(Example) M03 The main spindle starts to rotate in the forward direction simultaneously
with the movement of the axis.
2) M-function which starts to work after the movement of the axis in the block is completed (A
in the table)
(Example) M05 The rotation of the main spindle stops after the movement of the axis.
3) M-function which commands independently to the block (S in the table)
(Example) M57 The tool registration model is set. M57 remains effective until the
registration mode is cancelled by M02 or M30.
The M-function in the program generally commands with such a configuration as shown in Fig.
6-5. The M-function can only command one block. If the M-function commands two or more
blocks, the M function which is commanded latest becomes effective. Table 6-2 shows the
extracted major M functions. There are many M functions besides the above. For the M-
functions which are not shown in the table, refer to the instruction manual of the machine or the
NC unit.
The XY-plane is a plane looking from the plus side of the Z-axis, the ZX-plane is a plane looking
from the plus side of the Y-axis, and the YZ-plane is a plane looking from the plus side of the X-
axis. In the case of the ZX-plane, workpieces are mounted / removed and the machine is
operated on the minus side of the Y-axis frequently. Therefore, it is necessary to take care not to
mistake the plus direction for the minus direction and vice versa. The movement command has
no relation to the plane designation. For example, when G17GO1Z; is commanded, the Z-axis
moves as commanded, irrespective of XY plane of G17.
Fig. 6-9 Example of program of G91 Fig. 6-10 Example of program of G90
Fig. 6-13 Work coordinate system (G54) Fig. 6-14 Multiple coordinate systems
in work coordinate system
Generally, the work coordinate system is established by commanding G54 as shown in Fig. 6-
13. After the work coordinate system is established, the movement command is given by the
absolute command (G90) in the selected work coordinate system as shown in Fig. 6-13. In a
program which takes multiple coordinate systems, work coordinate systems are selected and
commanded as required, as shown in Figs. 6-14 and 6-15.
Fig. 6-15 Example of program configuration using work coordinate system
The lower limit (minimum speed of the spindle) and the upper limit (maximum speed of the main
spindle) of the main spindle speed that can be commanded by the 5-funciton vary with
machines. In this textbook, 10 to 3500 mm -1 is assumed to be the range of the main spindle
speed that can be set. In general, the main spindle speed has a low speed range and a high
speed range, and the changeover of the speed range is done automatically by a low speed
range and a high speed range, and the changeover of the speed range is done automatically by
a machine. In this case, in order to change the main spindle speed while the main spindle is
being turned in a different speed range, the rotation of the main spindle is stopped once, and
then the speed range is changed to set new main spindle speed. The main spindle (mm-1) is
determined by the following formula, using the cutting speed (m/mm) of the tool which cuts a
workpiece.
[Example of calculation]
When a workpiece is cut with a 125 mm dia. milling cutter at a cutting speed of 90 m/mm, the
main spindle speed can be determined as follows.
Consequently, the main spindle speed is 230 (mm -1 ) and the command of the S-function is
S230. The cutting speed depends on the material of a workpiece, type of tool, machining
accuracy, etc. For reference, the standards for the cutting conditions are shown in Appendix 1.
(Example of calculation)
When a workpiece is cut with an eight-bladed face milling cutter at a feed per blade of 0.25 mm,
the feed speed is to be determined. In this case, the main spindle speed is assumed to be 300
mm -.
Consequently, the feed speed is 600 mm/mm and the command of the feed function is F600.
The feed per blade varies depending on the material of a workpiece, type of tool, machining
accuracy, etc. For reference, yardsticks of the feed per blade are shown in the Appendix 1.
Question:
1. Complete the following table by referring to the example of entry.
Table 6-3
2. Command the tool path shown in the figure with G90 and G91.
3. Determine the data of the S-function and the F-function of the tools shown below, by referring
to the table cutting conditions in Appendix 1 . In this case, the material of the workpiece is
assumed to be S35C.
(Note) Cutting conditions vary according to various kinds of factors such as the
size of the tool diameter, the rigidity and setting method of a workpiece and
machining accuracy. Values in the above table can be used as yardsticks of cutting
conditions.