
B-63874EN/05 GENERAL 5.NOTES ON CREATING PROGRAMS
- 13 -
5 NOTES ON CREATING PROGRAMS
The notes that should be observed when creating a program are
described below. Read the notes before creating a program.
1. General notes on machining programs
<1> Use ISO code form (G code commands) basically for a
machining program. Enter a command for simple motion
directly with a G code, and use cycle machining for
complicated machining.
<2> Enter directly a tool change command involving the calling
of the next tool by using a code such as a T code and M
code or by using a subprogram call prepared by the machine
tool builder, referring to the relevant operator's manual of
the machine tool builder.
<3> Enter directly a tool length compensation command used
with a machining center by using a G code such as G43.
<4> For changing tools or tool length compensation, a similar
command is repeatedly entered. So, such a command can
be entered easily by registering a fixed form sentence
beforehand.
2. Programmed commands required before cycle machining input
<1> When using a tool database with a CNC of the M series, be
sure to enter a D command (offset number).
<2> Be sure to enter a spindle rotation command. At the same
time, specify whether to enable or disable constant surface
speed control.
<3> No feedrate command needs to be specified, because a
feedrate command is separately entered as a cycle
machining command. However, specify a command for
feed per revolution or feed per minute as required. For
example, operator know-how on executing milling in
pocketing by feed per revolution can be utilized.
<4> Enter an M code command for switching between the
spindle and C-axis, and a command for C-axis reference
position return as required.
<5> Enter M codes such as for coolant ON/OFF as required.
<6> By setting bit 2 of parameter No. 27000 to 1, a polar
coordinate interpolation command (G12.1) required for
machining (polar coordinate interpolation) on the XC plane
can be automatically specified during cycle machining.
Upon completion of the cycle machining, polar coordinate
interpolation is automatically cancelled.