Professional Documents
Culture Documents
CMZ Programming Manual
CMZ Programming Manual
( G codes type A )
The basic preventive information contained in the manual should be observed in order to
ensure a safe operation of the machine. The operator should thoroughly read this manual
before operating the machine.
Keep this manual at hand reach in a safe location.
Issue 07.2004
Valid for
TL-15 from machine 368
TL-20 from machine 368
TL-25 from machine 368
TB-46 from machine 123
TB-67 from machine 123
TBI520 from machine 556
MEANING OF SYMBOLS
Several symbols are used to indicate the various types of warning or advise.
The operator must know the meaning of these symbols and carefully read the instructions
enclosed in order to ensure a safe operation of the machine.
<Other Symbols>
COMMAND
Indicates the manual or page number to which you should be referred to find
further information on the topic in question.
Provides guidelines on the topic being described.
EXAMPLE
4nd Stop the machine and determine workpiece zero before performing the 2nd machining stage. ......27
In this manual we will always refer to codes G type A. Refer to Fanuc programming manual for further
information on G codes........................................................................................................................... 29
Comment:............................................................................................................................................... 29
These are notes included in the program............................................................................................... 29
These notes are totally optional, and it is up to the programmer to enter them or not............................ 29
These notes will be always placed in brackets () in order to prevent the program reading them. ...........29
T101 29
Here is shown that the tool to be used is in position 1 and a correction value of 01 is applied...............29
T0101 could be also entered, as the four mandatory characters are present, however, the first zero is
optional.................................................................................................................................................... 29
Head rotation direction:.......................................................................................................................... 29
M3 head rotation direction...................................................................................................................... 29
M4 head rotation direction reverse or clockwise..................................................................................... 29
M4 M200 M8.......................................................................................................................................... 29
As seen in this example, up to 3 M codes can be programmed on each line......................................... 29
It is always advisable to switch chip conveyor and coolant on at the start of the program, excepting for
special cases........................................................................................................................................... 29
G0 X150 Z150........................................................................................................................................ 29
Note that tool retraction in this example is to 150 mm on X+ and 150 mm on Z+ from workpiece zero,
and not from chuck face, as no order for changing the position is given to workpiece zero, which in this
example is maintained in the previous position....................................................................................... 29
Line number (N10, N20...)...................................................................................................................... 29
Line numbers are optional, and can be either entered or not.................................................................. 29
It is advisable to enter line numbers with a margin, such as 10, 20 , as you can then enter
intermediate operations without requiring changing all line numbers (10, 12, 13, 20...)........................... 29
G96 G99 S200 F.25............................................................................................................................... 29
As you can see, G codes are first placed and then S and F codes. Codes can be also entered in the
following manner: G96 S200 G99 F.25................................................................................................... 29
Entering codes such as G96 and G50 in the same line is not permitted................................................. 29
In this example you can see that the first pass (N10 to N50) is carried out letting part of the machining
pressed. 36
3. M FUNCTIONS................................................................................................................................... 40
For M codes not included in this manual, refer to CMZ. In some machine models, other M codes for
functions different to those described herein may be availbale................................................................ 40
4. THREADING....................................................................................................................................... 45
The outside thread area will be turned to a diameter (- 0.1 mm the metric diameter) in order to prevent
that thread tips can result in sharp edges................................................................................................ 46
G32 for threading operations, always operate at fixed rpm (G97).......................................................... 46
When retapping threads, do not release the workpiece, do not change the speed and do not change the
start point................................................................................................................................................ 46
5. CONTROL FIXED CYCLES................................................................................................................ 47
You can find here a brief explanation of machining cycles. For a detailed description, refer to section 13
of FANUC manual, part 1/2..................................................................................................................... 47
At the end of each cycle sequence the machine is always positioned in the position at which this cycle
sequence was started. The tool will be commonly located in the position used for rough machining. .....47
The profile allows changing X and Z direction........................................................................................ 47
At the end of each cycle sequence the machine is always positioned in the position at which this cycle
sequence was started.............................................................................................................................. 47
The positioning allows changing X- and Z-axis direction........................................................................ 47
If the block G71 U3 R1 is entered for the first time, it will be stored in the parameter U=P5132 and
R=P5133 and will be kept until changed in either the program or the parameter..................................... 47
Same as the above one, excepting for the profile................................................................................... 48
IMPORTANT: Roughing cycles are without tool radius compensation. Because of this, higher
allowances will be specified for X and Z depending on tool radius.......................................................... 49
6. EXAMPLES OF FIXED CYCLES........................................................................................................ 51
For retraction at the start, the end of program will be replaced by this end of program; with cycle G83
the control retracts the drill to the start point (X0 Z3) every time, thus the retraction (R05) is not entered.
52
Groove width or groove end point can be defined with a W code in this example (W27, that is, 30 3 of
tool), if tool is positioned on the right-hand would be (W-27). For either Z or W, tool width must be
subtracted............................................................................................................................................... 53
It must be kept in mind that in all cases when pitch is multiplied by the revolutions the result must be ?
4000. Pitch x R.P.M. . 4000.................................................................................................................. 55
83
1- For a threading cycle, axis and head override will be set to 100%..................................................... 84
2- Dry Run function is not available when a threading cycle is being executed...................................... 84
3- Ensure that powered tool and head are stopped prior to executing a threading cycle........................ 84
4- As axes and tool are synchonised, using a floating tap will not be required....................................... 84
5- Powered tool speed will be limited when using a rigid threading cycle............................................... 84
For subsequent calls, only a single coordinate value is possible. X or Z or C......................................... 84
7- G384 function is programmed in all blocks requiring a rigid threading cycle. H, R, F, S, D, M, Q, E, A
and T values must not be entered in the second block in which a rigid threading cycle is programmed, as
well as in all subsequent blocks. Only the position at which a threading operation is to be carried out
must be entered. .................................................................................................................................... 84
8- H argument is the distance from R point to hole bottom..................................................................... 84
9- Entering the number of repeats for a rigid threading cycle is not permitted........................................ 84
10- A rigid threading cycle enabled with G384 must be disabled with G380........................................... 84
If another fixed cycle is entered without previously disabling a rigid threading cycle, an alarm message
(No. 3011) will be displayed. Indexing the turret with a T command during a rigid threading cycle is not
permitted................................................................................................................................................. 84
If another fixed cycle is specified without previously cancelling the rigid threading cycle, a collision
between tool and workpiece may occur................................................................................................... 84
11- During a rigid threading cycle, turret indexing by means of command T is carried out when starting
the cycle and before positioning the axes................................................................................................ 84
12- If no D value is specified, tool lead-in and lead-out speed will be that specified for S....................... 84
13- If neither M50 nor M250 is specified, there will be no head braking................................................. 84
14- T3 value must be only specified for machins equipped with a sub-head (S). This value must not be
used to perform a front threading operation on a workpiece located on the sub-head............................ 84
15- Commnad M250 will be only valid if a T3 value is specified............................................................. 84
16- If any cycle argument is erroneous, the following alarm message will be displayed:........................ 84
Power tool is stopped............................................................................................................................. 85
When moving from initial point to R point, powered tool rotation is stopped........................................... 85
G00 X200.0 Z100.0 M05; Powered tool is stopped................................................................................ 86
M81; C-axis is disabled.......................................................................................................................... 86
G99; Advance per revolution.................................................................................................................. 86
Commands G384 and G380 can be only used on machines equipped with powered tool..................... 88
< Rigid threading cycle on front end >.................................................................................................... 88
G384 X_C_Z_........................................................................................................................................ 88
H_R_F_S_D_M_E_Q_A_T2(T3);........................................................................................................... 88
< Rigid threading cycle on a side >......................................................................................................... 88
G384 X_C_Z_........................................................................................................................................ 88
H_R_F_S_D_M_E_Q_A_T1;................................................................................................................. 88
G380;88
- G384 Enables a rigid threading cycle................................................................................................... 88
- G380 Disables a rigid threading cycle.................................................................................................. 88
- X,Z,C Absolute command for positioning the tool in front of hole centre.< Rigid threading on front end
>
88
2- Dry Run function is not available when a threading cycle is being executed...................................... 89
3- Ensure that powered tool and head are stopped prior to executing a threading cycle........................ 89
4- As axes and tool are synchonised, using a floating tap will not be required....................................... 89
5- Powered tool speed will be limited when using a rigid threading cycle............................................... 89
For subsequent calls, only a single coordinate value is possible. X or Z or C......................................... 89
7- G384 function is programmed in all blocks requiring a rigid threading cycle. H, R, F, S, D, M, Q, E, A
and T values must not be entered in the second block in which a rigid threading cycle is programmed, as
well as in all subsequent blocks. Only the position at which a threading operation is to be carried out
must be entered. .................................................................................................................................... 89
8- H argument is the distance from R point to hole bottom..................................................................... 89
9- Entering the number of repeats for a rigid threading cycle is not permitted........................................ 89
10- A rigid threading cycle enabled with G384 must be disabled with G380........................................... 89
If another fixed cycle is entered without previously disabling a rigid threading cycle, an alarm message
(No. 3011) will be displayed. Indexing the turret with a T command during a rigid threading cycle is not
permitted................................................................................................................................................. 89
If another fixed cycle is specified without previously cancelling the rigid threading cycle, a collision
between tool and workpiece may occur................................................................................................... 89
11- During a rigid threading cycle, turret indexing by means of command T is carried out when starting
the cycle and before positioning the axes................................................................................................ 89
12- If no D value is specified, tool lead-in and lead-out speed will be that specified for S....................... 89
13- If neither M50 nor M250 is specified, there will be no head braking................................................. 89
14- T3 value must be only specified for machins equipped with a sub-head (S). This value must not be
used to perform a front threading operation on a workpiece located on the sub-head............................ 89
15- Commnad M250 will be only valid if a T3 value is specified............................................................. 89
16- If any cycle argument is erroneous, the following alarm message will be displayed:........................ 89
Power tool is stopped............................................................................................................................. 90
When moving from initial point to R point, powered tool rotation is stopped........................................... 90
G00 X200.0 Z100.0 M05; Powered tool is stopped................................................................................ 91
M81; C-axis is disabled.......................................................................................................................... 91
G99 (G95); Advance per revolution........................................................................................................ 91
The G100 command can be used only with the programmable tailstock specification machine. ............91
U/2 distance must be greater than angular runout length ( r ). Refer to bottom left figure. ..................... 95
95
M23; ............ Used for angular runout.................................................................................................... 95
M24; ............ Used for straight runout (disables angular runout)............................................................ 95
As shown in the figure, r distance is programmed by means of parameter 5130. Runout angle will be
45. 95
M33, M34 and M36 commands are only used on machines equipped with a sub-head (S). .................. 96
M33; ............ Speed synchronisation...................................................................................................... 96
M34; ............ Phase and speed synchronisation.................................................................................... 96
M36; ............ Synchronisation mode disabled........................................................................................ 96
1- For transferring a workpiece from main head to sub-head, head and sub-head speed must be
synchronised by means of M33 command. If the workpiece is transferred without activating the
synchronisation mode, scratching of workpiece could result................................................................... 96
2- For transferring an hexagonal bar, head and sub-head phase and speed must be synchronised by
means of M34 command, as otherwise the transfer operation will not be possible................................. 96
3- M36 function should be only programmed after completing a cutting cycle or when chucks on main
head and sub-head are open.................................................................................................................. 96
4- If a M34 function is programmed with sub-head jaws closed, alarm message FM 102 will be
displayed................................................................................................................................................. 96
5- M5 function must not be programmed when phase and/or speed synchronisation mode is activated.
M5 function will disable the synchronisation mode.................................................................................. 96
M34 function can de also used for round parts, but considering that phase (and speed) synchronisation
time is longer and speed synchronisation time, using M33 function is recommended when machining
round parts.............................................................................................................................................. 96
Machining program................................................................................................................................. 97
G97 S1000 M03; Main head rotates at 1000 min-1................................................................................ 97
M34; Phase and speed synchronisation................................................................................................. 97
After synchronising the phases, head and sub-head speed is synchronised to 1000 min-1................... 97
M211; Sub-head jaws are opened.......................................................................................................... 97
During the synchronisation, heads can be rotated with jaws open.......................................................... 97
G53 B-_; Sub-head is moved to limit point on B-axis (machine co-ordinates) ........................................ 97
G98 G01 B-_F1000; Sub-head is approached to workpiece at a speed of 1000 mm/min ...................... 97
G38 J_K_F_Q_; Workpiece push is detected........................................................................................ 97
Includes clamping of workpiece on sub-head......................................................................................... 97
G99; Advance per revolution.................................................................................................................. 97
Machining program)............................................................................................................................... 97
M36; Synchronisation mode is disabled................................................................................................. 97
Sub-head is stopped while main head continues rotating at programmed speed................................... 97
G28 B0; Sub-head is returned to reference point on B-axis................................................................... 97
Machining program................................................................................................................................. 98
G97 S1000 M03; Main head rotates at 1000 min-1................................................................................ 98
M33; Speed synchronisation.................................................................................................................. 98
Head and sub-head speed is synchronised to 1000 min-1..................................................................... 98
M211; Sub-head jaws are opened.......................................................................................................... 98
During the synchronisation, heads can rotate with jaws open................................................................ 98
G53 B-_; Sub-head is moved to limit point in B-axis (machine co-ordinates)......................................... 98
G98 G01 B-_F1000; Sub-head is approached to workpiece at 1000 mm/min ........................................ 98
G38 J_K_F_Q_; Workpiece push is detected........................................................................................ 98
Includes clamping of workpiece on sub-head......................................................................................... 98
G99; Advance per revolution.................................................................................................................. 98
Machining program................................................................................................................................. 98
M36; Synchronisation mode is disabled................................................................................................. 98
Sub-head is stopped while main head continues rotating at programmed speed................................... 98
G28 B0; Sub-head is returned to reference point on B-axis................................................................... 98
M310; Automatic selection of main spindle windings.............................................................................. 99
M311; Star-winding selection in main spindle........................................................................................ 99
M312; Delta-winding selection in main spindle...................................................................................... 99
M320; Automatic selection of windongs in subspindle............................................................................ 99
M321; Star-winding selection in subspindle........................................................................................... 99
M322; Delta-winding selection in subspindle......................................................................................... 99
102
Workpiece collector operates independently from turret position......................................................... 102
B-axis co-ordinate value will be the position at which the workpiece is released from the sub-head
without causing any interference with workpiece collector, turret, etc.................................................... 102
M73; Workpiece collector is moved to collection position..................................................................... 102
M211; Workpiece released from sub-head........................................................................................... 102
G04 U_; Time delay.............................................................................................................................. 102
G28 B0; B-axis is moved to reference point......................................................................................... 102
M74; Workpiece collector is moved to ejection position....................................................................... 102
M254; Sub-head jaws are blown with air.............................................................................................. 102
G04 U_; Time delay.............................................................................................................................. 102
M259; Jaw blowing is deactivated........................................................................................................ 102
M432; .............Workpiece collection cycle............................................................................................ 105
1.- Commands M210 and M211 (open and close sub-head jaws respectively) cannot be executed when
a workpiece collection cycle is being executed...................................................................................... 105
2.- The following operations, if programmed when a workpiece collection cycle is activated, will be
executed at the end of workpiece collection cycle:................................................................................ 105
- B-axis displacement........................................................................................................................... 105
- Head phase synchronisation (M34).................................................................................................... 105
- Head speed synchronisation (M33).................................................................................................... 105
- Manual door opening (M30)............................................................................................................... 105
- Automatic door opening (M70)........................................................................................................... 105
- Sub-head rotation (M203/M204)......................................................................................................... 105
- Sub-head orientation (M219).............................................................................................................. 105
- Sub-head jaws blowing (M254).......................................................................................................... 105
3.- Programming a M432 will not be permitted in there is any interference of B-axis with workpiece
collector................................................................................................................................................. 105
4.- If a M432 is programmed in a block together with a displacement of B-axis, workpiece collection
cycle will be executed after the required B-axis displacement is completed.......................................... 105
Machining program............................................................................................................................... 106
Through-coolant supply will be only activated with machine door closed.............................................. 108
The coolant gun is an option available for all machines........................................................................ 108
10. PROGRAMMING C-AXIS AND POWERED TOOL........................................................................ 109
Commands M80, M280, M81 and M281 can be only used on machines of M type Commands M280 and
M281 can be only used on machines of SM type. ................................................................................ 109
By programming command M80, M280 on automatic mode or MDI mode, head1 or head2 can be
indexed to the required angular position in order to drill holes on the circular contour of the workpiece or
on the end face...................................................................................................................................... 109
On mode M80 or M280, head rotation can be controlled synchronically with tool movement in order to
cut grooves or slots............................................................................................................................... 109
M80; ............. C-axis mode is activated on head1. .............................................................................. 110
M280; ........... C-axis mode is activated on head2................................................................................ 110
M81; ............. C-axis mode is deactivated on main head or on head1................................................. 110
M281; ........... C-axis mode is deactivated on head2............................................................................ 110
1- Stop the head (head1 and/or head2) by entering the command M05 (head1) or M205 (head2) before
entering commands M80, M280. If any of the last parameters is entered with head1 or head2 rotating,
the machine will be stopped and an alarm message (FM024) will be shown on the display..................110
2- Before entering command M81 or M281, the powered tool must be stopped by entering command
M05 or M85. If any of these commands is entered when the powered tool is rotating, the machine will be
stopped and the alarm message (FM025) will de shown on the display................................................ 110
3- For machines of SMC series, deactivating C-axis function will not be necessary when changing this
function from a head to the other head by means of M80 or M280........................................................ 110
4- For machines of SMC series, head1 or head2 will operate on C-axis mode when entering M80 or
M280 respectively. To deactivate C-axis function on either head, only enter command M81 or M281
respectively, in case of each head......................................................................................................... 110
5- For machines of SMC series, if machining operations are to be carried out with head2, C-axis must be
returned to its zero reference point after completing the machining operations with head1................110
Commands M480 and M481 can be only used on machines of SMC series........................................ 111
M480; ........... C-axis mode is activated on both heads, head1 and head2........................................... 111
M481; ........... C-axis mode is deactivated on both heads, head1 and head2....................................... 111
111
When C-axes on both heads are coupled, activating the hydraulic brake to lock head1 (M50) will only be
permitted. Considering that this function is used to machine workpieces clamped on both heads, locking
both heads will not be required. ............................................................................................................ 111
1- Stop head, head1 or head2 by entering M05 (head1) and/or head2 by entering M205 before entering
command M480. If the last command in entered when the head1 or head2 is rotating, the machine will
be stopped and the alarm message (FM024) will be shown on the display........................................... 111
2- Before entering command M481 you will need to stop the powered tool by entering M05 or M85
command. If command M481 is programmed when the powered tool is running, the machine will be
stopped and the alarm message (FM025) will be shown on the display................................................ 111
3- For machines of SMC series, when a command M480 is entered both heads, head1 and head2 will
operate in C-axis mode. To rotate the heads, C-axis must be deactivated by means of M81 or M281
respectively, or by means of M481........................................................................................................ 111
Commands M380 and M381 are only used on machines of SMC series provided with SUPERCAP tool.
112
M380; ........... C-axis mode is activated by means SuperCap.............................................................. 112
M381; ........... C-axis mode is activated by means SuperCap.............................................................. 112
M303; ........... When SuperCap is used, activates C-axis for head1 after enabling C-axis mode by
means of M380...................................................................................................................................... 112
M304; ........... When SuperCap is used, activates C-axis for head2 after enabling C-axis mode by
means of M380...................................................................................................................................... 112
For machines of SMC series, chuck locking function is only valid for the head for which the last M
function is entered, and provided that more than one M303 (activation of C-axis for head1), M304
(activation of C-axis for head2), M50 (head brake for head1), or M250 (head brake for head2), is entered
in a single block. Therefore, the machining process must be carried out with the head corresponding to
the M code entered in the program. If the machining operation is carried out with the other head, the
powered tool will not be stopped, irrespective the jaws are open or not, so the workpiece could fall down
or be thrown away the chuck, causing personal injures or damages to the machine. ........................... 112
1- For machines of SMC series, head1 or head2 will operate in C-axis mode if command M303 or M304,
respectively, is entered in the program. To rotate head1 or head2, C-axis mode is disabled on head1
and head2 by entering the command M381.......................................................................................... 112
2- For machines of SMC series, after using main head, C-axis must be returned to zero position before
changing to the subhead, after using the main head............................................................................. 112
Numbers in brackets indicate the order in which holes are drilled........................................................ 113
Numbers in brackets indicate the order in which holes are drilled........................................................ 114
This operation will be performed in two passes.................................................................................... 116
This tapping operation is only performed on machines equipped with powered tool............................ 120
This example describes a rigid tapping operation for three holes spaced 120.................................... 120
The approach operation is only an example. The programmer is responsible for entering correct values.
121
This tapping operation is only performed on machines equipped with powered tool............................ 122
This example describes a rigid tapping operation for two holes spaced 180....................................... 122
Milling radius compensation must be always used in this type of programs. ........................................ 123
In this case we are using a milling cutter of diameter 10...................................................................... 123
Therefore, on the correction table, enter Radius = 5 and Tool type = 9................................................ 123
Tool selection and approach to start point operations are omitted and they must be determined by the
programmer........................................................................................................................................... 124
Approach operation is omitted. The programmer is responsible for entering correct values. ...............125
11. FUNCTIONS TO SHORTEN CYCLE TIME..................................................................................... 126
Those functions which require to be executed that a function in the same block will be previously
executed must not be entered in the same block.................................................................................. 127
For instance, neither M80 M83 nor M81 M85 must be entered in the same block, as M83 and M85
require that M80 and M81 respectively will be previously executed....................................................... 127
Do not enter M70 M30, but M30 M70 (cycle end and door opening)............................................... 127
12. OTHER PROGRAMMING EXAMPLES........................................................................................... 129
The approach operation is only an example. The programmer is responsible for entering correct values.
129
130
The approach operation is only an example. The programmer is responsible for entering correct values.
130
In this example the machining operations include facing, axial drilling and.......................................... 131
cutting plus cylindrical grooving. .......................................................................................................... 131
131
N270 G0 G40 X200 Z150 M30............................................................................................................. 131
In this case, all roughing cycles will not permit tool compensation. The approach operation is omitted, as
the programmer depending of tool used should determine it................................................................. 132
132
1. BASIC CONCEPTS
1.1
Machine axes
X+
Z-
Z+
B-
B+
XX-, Z- and B-axis and their respective positive and negative displacement directions are shown
on the above schematic diagram.
As you can see, when workpiece zero reference point is located on workpiece end (most
common case), the positive direction is outside the workpiece, while the negative direction is
on the workpiece area to be machined (inside the workpiece).
Commonly, you will operate in the quadrant defined by X+ and Z-.
The machine will enter only in X- area for facing operations.
You may also operate X+ Z+ quadrant when the workpiece is clamped on the subhead.
1.1.2 C-axis
C-axis would be used to swivel the head in order to
position the workpiece for drilling operations using a
powered tool.
C-
C+
Vc1000
1.2
Tool offset
The correction value is the protruding length of tool end from the zero reference of turret disc.
The required correction values must be entered each time tool position is changed with respect
to the aforementioned position; if tool position is not changed, entering a correction value will
not be necessary as these values are stored in the memory.
New correction values must be entered when the tool is moved because of a hit
1.3
1.4
Facing
O0001;
N10 G10 P0 Z-103;
N20 T101 (FACING);
N30 G50 S2000 (LIMIT R.P.M.);
N40 G96 G99 S200 F.25 M4 M200 M8
(CUTTING CONDITIONS, CHIP
CONVEYOR AND COOLANT
ACTIVATION);
N50 G0 X45 Z0 (APROXIMATION)
N60 G1 X-2;
N70 G0 X150 Z150;
N80 M30;
BBD 210
Program number
Data input
O0001;
Cutting speed
(Vc=200 m/min)
Feed (mm/revolution)
Chip conveyor
running
Coolant supply on
Head rotation in
clockwise direction
Facing up to X-2, that is,
crossing 2 mm below
the axis
Comment:
These are notes included in the program.
These notes are totally optional, and it is up to the programmer to enter them or
not.
These notes will be always placed in brackets () in order to prevent the program
reading them.
T101
Here is shown that the tool to be used is in position 1 and a correction value of
01 is applied.
T0101 could be also entered, as the four mandatory characters are present,
however, the first zero is optional.
Head rotation direction:
M3 head rotation direction
M4 head rotation direction reverse or clockwise.
M4 M200 M8
As seen in this example, up to 3 M codes can be programmed on each line.
It is always advisable to switch chip conveyor and coolant on at the start of the
program, excepting for special cases.
G0 X150 Z150
Note that tool retraction in this example is to 150 mm on X+ and 150 mm on Z+
from workpiece zero, and not from chuck face, as no order for changing the
position is given to workpiece zero, which in this example is maintained in the
previous position.
Line number (N10, N20...)
Line numbers are optional, and can be either entered or not.
It is advisable to enter line numbers with a margin, such as 10, 20 , as you
can then enter intermediate operations without requiring changing all line
numbers (10, 12, 13, 20...).
G96 G99 S200 F.25
As you can see, G codes are first placed and then S and F codes. Codes can be
also entered in the following manner: G96 S200 G99 F.25
Entering codes such as G96 and G50 in the same line is not permitted.
1.5
Taper turning
BBD 210
Pass
Pass
O0002;
N10 G10 P0 Z-78;
N20 T101;
N30 G50 S1500;
N40 G96 G99 S200 F.25 M4 M8 M200;
N50 G0 X52.5 Z2;
N60 G1 Z-19.9;
N70 G0 X55 Z2;
N80 X45;
N90 G1 Z0;
N100 X52 Z-20 F.2;
N110 X61;
N120 G0 X200 Z200;
N130 M30;
In this example you can see that the first pass (N10 to N50) is carried out letting
part of the machining operation for de second pass (N60 to N120).
You can also see that for taper turning entering the start point and the end point
will not be necessary, and the angle between these two points will be machined.
1.6
Inside turning:
BBD 210
O0003;
N10 G10 P0 Z-85;
N20 T606;
N30 G50 S2000;
N40 G96 G99 S180 F.2 M4 M8 M200;
N50 G0 X44 Z2;
N60 G1 Z0;
N70 X40 Z-2 F.15;
N80 Z-40 F.2;
N90 X35;
N100 G0 Z5;
N110 X200 Z100;
N120 M30;
1.7
Radii
BBD 210
G2
O0004;
N10 G10 P0 Z-110;
N20 T303;
N30 G50 S2500;
N40 G96 S220 G99 F.2 M4 M8 M200;
N50 G0 X30 Z2;
N60 G1 Z-22;
N70 G2 X40 Z-27 R5 (CLOCKWISE SENSE);
N80 G1 X55;
N90 G3 X80 Z-57 R80 (COUNTERCLOCKWISE);
N100 G1 Z-62;
N110 X86;
N120 G0 X150 Z150 M30;
G3
1.8
Cylindrical interpolation
BBD 210
O0005;
N10 G10 P0 Z-165;
N20 T404;
N30 G50 S2000;
N40 G96 S200 G99 F.2 M4 M8 M200;
N50 G0 X69.282 Z2;
N60 G1 Z-20;
N70 G3 X69.282 Z-60 R40;
N80 G2 X69.282 Z-100 R40;
N90 G1 Z-105;
N100 G0 X150;
N110 Z10
N120 M30;
As you can see, for the interpolation, you must know the point from which this
interpolation will take place in order to change radius direction (in this example
on point X69.282 Z-60).
1.9
O0006;
N10 G10 P0 Z-96:
N20 T505;
N30 G96 G99 S120 F.1 M4 M8 M200;
N40 G0 X78 Z-20;
N50 G1 X65;
N60 G4 X1 (TEMPORIZACION 1 SEGUNDO);
N70 G0 X78;
N80 W-10 (INCREMENTAL);
N90 G1 U-7;
N100 G4 X1;
N110 G0 U7;
N120 W-15;
N130 G1 U-9;
N140 G4 X1;
N150 G0 U9;
N160 X200 Z200;
N170 M30;
In this example, slots of de 65, 71 and 69 are to be machined. For this, tool
T5 will be used.
The references are:
U for X-axis (U-command also on to)
W for the Y-axis
H for the C-axis
Time delays are entered each time a slot is machined in order to stop the tool
for a given time and then properly complete the machining operation.
Clockwise turning
Boring
Tool 1
Inside machining
O0007;
N10 G10 P0 Z-74;
N20 T101 (EXTERNAL);
N30 G50 S2500;
N40 G96 S220 G99 F.25 M4 M8 M200;
N50 G0 X35 Z0;
N60 G1 X-2;
N70 G0 X26 Z2;
N80 G1 Z0;
N90 X28 Z-1 F.2;
N100 Z-18 F.25;
N110 X32;
N120 G0 X150 Z200 M5;
N130 T202 (BROCA DE 15);
N140 G97 S600 G99 F.15 M3;
N150 G0 X0 Z3;
N160 G1 Z-47;
N170 G0 Z100 M5;
N180 T303 (INTERIOR);
N190 G96 S150 G99 F.25 M4;
N200 G0 X22 Z3;
N210 G1 Z0;
N220 X20 Z-1 F.15;
N230 Z-13 F.2;
N240 X15 Z-20 F.15;
N250 G0 Z5;
N260 X200 Z150 M30;
External machining
Tools:
T1= Outside and facing.
T2= 15 twist drill.
T3= Inside.
2. G FUNCTIONS
G functions used in machining programs are described in this section.
This section describes G codes more commonly used. Refer to CNC unit
manual supplied by the manufacturer for G codes not included in this section.
2.1
List of G codes
Also called preparatory functions, G codes consist of a G address followed by a numerical
value which defines a machining mode or an axis displacement within a program block. The
CNC unit will control the specified G code.
G codes are classified into two types:
Type
Description
Non-modal G code
(Group 00, excepting G10 and G11)
Modal G code
(Groups other than 00)
For instance, G00 and G01 are modal G codes, as they pertain to a group other than 00.
G01 X_Z_;
X_;
Z_;
G00 X_Z_;
1- More than one G code may be programmed in a block, provided they are
from different groups.
2.- If more than one G code in a group is programmed in a block, only the last
programmed G code will be executed.
3.- If a G code not specified in the list of G codes or a G code related to a
function not available in the machine is programmed, alarm message no. 010
will be displayed.
4.- G codes marked with % are activated by default when CNC is started or
RESET key
pressed.
G Code
%
%
Group
Function
Remarks
G00
G00
G00
G01
G01
G01
G02
G02
G02
G03
G03
G03
G04
G04
G04
G07.1
(G107)
G07.1
(G107)
G07.1
(G107)
G10
G10
G10
G11
G11
G11
G12.1
(G112)
G13.1
(G113)
G12.1
(G112)
G13.1
(G113)
G12.1
(G112)
G13.1
(G113)
G17
G17
G17
G18
G18
G18
G19
G19
G19
G20
G20
G70
01
00
00
21
16
)
)
Time delay
Cylindrical interpolation
x2
x2
x2
Input in inches
Input in mm
06
G21
G21
G71
G22
G22
G22
09
G23
G23
G23
G27
G27
G27
G28
G28
G28
00
+
+
Go to reference point
G30
G30
G30
G31
G31
G31
Skip function
G Code
A
G32
G33
G33
Group
Function
Remarks
Threading
01
G34
G34
G34
G40
G40
G40
G41
G41
G41
G42
G42
G42
G50
G92
G92
G38
G38
G38
G50.2
(G250)
G51.2
(G251)
G50.2
(G250)
G51.2
(G251)
G50.2
(250)
G51.2
(G251)
G52
G52
G52
G53
G53
G53
G54
G54
G54
G55
G55
G55
G56
G56
G56
07
00
G57
G57
G58
G58
G58
G59
G59
G59
G65
G65
G65
G66
G66
G66
)
)
)
x4
x5
Polygonal turning
x5
20
00
14
G57
00
+
+
+
+
+
+
Call macro
12
G67
G67
G67
G70
G70
G72
Finishing cycle
G71
G71
G73
G72
G72
G74
G73
G73
G75
Lead repetition
G74
G74
G76
G75
G75
G77
G76
G76
G78
G80
G80
G80
+2
00
10
G Code
%
%
Group
Function
Remarks
G83
G83
G83
+2
G84
G84
G84
+2
G86
G86
G86
+2
G87
G87
G87
+2
G88
G88
G88
+2
G89
G89
G89
+2
G90
G77
G20
G92
G78
G21
Threading cycle
G94
G79
G24
G96
G96
G96
G97
G97
G97
G98
G94
G94
G99
G95
G95
G90
G90
Absolute programming
G91
G91
Incremental programming
G98
G98
G99
G99
G138
G138
G138
G238
G238
G238
G380
G380
G380
x2
G384
G384
G384
X2
01
02
05
03
11
00
)
)
x1
x1
3. M FUNCTIONS
M functions used in machining programs are described in this section.
For M codes not included in this manual, refer to CMZ. In some machine
models, other M codes for functions different to those described herein may be
availbale.
3.1
List of M codes
These codes control functions complementary to those controlled by G codes. For instance,
coolant supply, head rotation direction, etc.
CMZ
Function
M023 Chamfering ON
M024
M025
M026
M027
M028
M029
M030
CMZ
M033
Description
All machine functions are unconditonally
stopped
Machine functions are conditinally stopepd
(OPS function activated)
End of program and CNC reset
Spindle 1 running in CW direction
Spindle 1 running in CCW direction
Spindle 1, spindle 2 and powered tool are
stopped
Turret rotates in CW direction
Turret rotates in CW direction
Coolant 1 supply ON (Coolant 1 start key)
All coolnat supplies stopped (1 and 2)
Workpiece clamped by chuck/collet on spindle
1
Workpiece released from chuck/collet on
spindle 1
Reduced pressure on spindle 1 activated
Reduced pressure on spindle 1 activated
Chamfering OFF
Tailstock spindle out
Tailstock spindle in
Tailstock body unclamp
Tailstock body clamp
Rigid tapping in spindle ON (spindle 1)
Program end and rewind
End of program, rewinding and CNC reset
Function
Description
Phase synchronous operation OFF
Speed synchronised on both heads
M075
M076
M080
M081
M083
M084
M085
M087
M088
CMZ
M090
M091
M092
Description
Description
M311
M312
M316
M318
M319
M320
M321
M322
M337
M338
M382
M383
M384
M387
M408
M409
M410
M411
M412
M413
M414
M415
M416
M417
M418
M419
M420
M421
M422
M423
M424
M425
M426
M427
M428
M429
M430
M431
Function
Pressure 1 in tailstock high
Pressure 2 in tailstock low
Graphic mode axis C
Special M code output
Special M code output
Special M code output
Client M function
Client M function
Client M function
M443
M444
M445
M446
M447
M448
M449
M454
M455
M456
M457
M458
M459
M470
M471
M472
M473
M474
M478
M479
Client M function
Client M function
Client M function
Client M function
Client M function
Client M function
Client M function
4. THREADING
BBD 210
O0008;
N10 G10 P0 Z-95;
N20 T101 (Surfacing);
N30 G50 S2500;
N40 G96 S200 G99 F.25 M3 M8 M200;
N50 G0 X70 Z0;
N60 G1 X-2;
N70 G0 X57 Z1;
N80 G1 Z0;
N90 X59.9 Z-1.5;
N100 Z-45;
N110 X66;
N120 G0 X150 Z100;
N130 T202; (Threading);
N140 G97 S700 M3;
N150 G0 X60 Z2 (Start 2 times the step);
N160 X59.4 (First pass);
N170 G32 Z-40 F1 (F=step);
N180 G0 X62;
N190 Z2;
N200 X58.8 (Second pass);
N210 G32 Z-40 F1;
N220 G0 X62;
N230 Z2;
N240 X58.7 (Last pass);
N250 G32 Z-40 F1;
N260 G0 X62;
N270 X200 Z2
00 M30;
The outside thread area will be turned to a diameter (- 0.1 mm the metric
diameter) in order to prevent that thread tips can result in sharp edges.
G32 for threading operations, always operate at fixed rpm (G97).
When retapping threads, do not release the workpiece, do not change the
speed and do not change the start point.
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
O0071;
N10 G10 P0 Z-130;
N20 T101 (ROUGHING);
N30 G50 S2500;
N40 G96 S200 G99 F.25 M3 M8 M200;
N50 G0 X105 Z0;
N60 G1 X-2 (SURFACING);
N70 G0 X105 Z1 (STARTING POINT AND END OF FIXED CYCLE);
N80 G71 U3 R1 (DEPTH OF PASS= U3mm REMOVING R1mm);
N90 G71 P100 Q140 U2 W2 F0.3 (ROUGHING LETTING OFFSETS OF 2 mm IN X AND Z);
N100 G0 X40 (FROM BLOCK 100 TO140 THE PROFILE IS DEFINED);
N110 G1 Z-30;
N120 X60 Z-60;
N130 Z-80;
N140 X100 Z-90;
N150 G70 P100 Q140 (FINISHING CYCLE)
N160 G0 X200 Z200 M5;
N170 M30;
6.2
6.2.1 G74 Drilling cycle with a short retraction for chip breakage
O0009;
N10 G10 P0 Z-75;
N20 T808 (BORING TOOL OF 30);
N30 G97 S265 M4 F0.2 M8 M200;
N40 G0 X0 Z3;
N50 G74 R0.5;
N60 G74 Z-60 Q20000 F0.2;
6.2.2 G83 Fixed drilling cycle with retraction at the start for chip
breakage and removal
N40 G0 X0 Z3 M8;
N50 G83 Z-60 Q20000 F0.2;
We place at X0 Z3
Bore until Z-60, depth 20000 microns per
pass, Av=0.2mm per revolution
ATTENTION: in machines with specification of
tenth of micron, Q200000 must be set
instead of Q2000000
Removing and ending
For retraction at the start, the end of program will be replaced by this end of
program; with cycle G83 the control retracts the drill to the start point (X0 Z3)
every time, thus the retraction (R05) is not entered.
6.3
BBD 210
O0010;
N10 G10 P0 Z-110;
N20 T707 (RANURADO);
N30 G50 S1000;
N40 G96 G99 S110 M4 M200 M8;
N50 G0 X80 Z-55;
N60 G75 R.5;
N70 G75 X69 Z-28 P3000 Q2500 F.1;
Groove width or groove end point can be defined with a W code in this example
(W27, that is, 30 3 of tool), if tool is positioned on the right-hand would be (W27). For either Z or W, tool width must be subtracted.
6.4
Threading in 8 passes.
Thread height
P= 0.65 x 2 (thread pitch) = 1.3 mm
1300 microns
Bottom diameter
= nominal ( 2 x height of threads)
= 60 (2 x 1.3) = 57.4
1st pass cutting depth
Q=
Thread height
Nr. of passes
Q=
1300 microns
8
=457 microns
O0011;
N10 G10 P0 Z-88;
N20 T101 (ROUNDING);
N30 G50 S2000;
N40 G96 G99 S200 F0.25 M4 M200 M8;
N50 G0 X68 Z0;
N60 G1 X-2;
N70 G0 X56 Z2;
N80 G1 Z0;
N90 X60 Z-2 F0.15;
N100 Z-35 F0.25;
N110 X66;
N120 G0 X200 Z100;
N130 T303 (ROSCADO);
N140 G97 S800 M4;
N150 G0 X62 Z4 (2 TIMES THE STEP);
N160 G76 P010060 Q50 R0.03;
6.5
PROGRAM:
O0012;
N10 G10 P0 Z-100;
N20 T101;
N30 G50 S2000;
N40 G96 G99 S200 F0.2 M4 M8 M200;
N50 G0 X73 Z0;
N60 G1 X-2;
N70 G0 X61 Z2;
N80 G1 Z0;
N90 X64.9 Z-2 F0.15 (THREAD DIAMETER);
N100 Z-35 F0.2;
N110 X70 Z-50 F0.15;
N120 X71;
N130 G0 X150 Z200;
N140 T808 (BORE OF 28);
N150 G97 S300 M4 F0.15;
N160 G0 X0 Z3;
N170 G74 R1;
N180 G74 Z-84 Q30000 F0.15; ATTENTION: in machines
with specification of tenth of micron, Q300000 must be set
instead of Q30000
N190 G0 Z100;
N200 T1010 (INTERNAL MACHINING);
N210 G96 G99 S150 M4 F0.2;
N220 G0 X34 Z2;
N230 G1 Z0;
N240 X29.6 Z-2 F0.15;
N250 Z-30 F0.2;
N260 X27;
N270 G0 Z100;
N280 T1212 (INTERNAL THREAD);
N290 G97 S1300 M4;
N300 G0 X28 Z4 (2 TIMES THE LENGTH OF PASS);
N310 G76 P010060 Q40 R0.03; ATTENTION: in machines
with specification of tenth of micron, Q400 must be
set instead of Q400
N320 G76 X32 Z-25 R0 P1300 Q450 F2; ATTENTION: in machines with
specification of tenth of micron, P13000 and Q4500 must be set instead of
P1300 y Q450
N330 G0 X250 Z100;
N340 T505 (EXTERNAL THREADING);
N350 G97 S650 M4;
N360 G0 X67 Z3 (2 TIMES THE STEP);
N370 G76 P010060 Q50 R0.04; ATTENTION: in machines with specification of tenth of
micron, Q500 must be set instead of Q50
N380 G76 X63.05 Z-30 R0 P975 Q400 F1.5; ATTENTION: in machines with specification of
tenth of micron, P9750 and Q4000 must be set instead of P975 y Q400
N390 G0 X200 Z200 M30;
7.1
O0012;
N10 G10 P0 Z-200;
N20 T303 (PROFILING);
N30 G50 S2200;
N40 G96 G99 S230 F0.12 M4 M8 M200;
N50 G0 X0 Z3;
N60 G1 Z0 (P1);
N70 ,A90 R6 (FIRST ANGLE);
N80 X50 Z-25 ,A165 (SECOND ANGLE);
N90 ,A180
N100 X75 Z-49 ,A90 ,C1;
N110 Z-60;
N120 ,A150 R50;
N130 X185 Z-100 ,A110;
N140 ,A90 ,C2;
N150 X200 Z-150 ,A180 (P2);
N160 G0 X250 Z200 M30;
Finishing on (P3):
N140 X200 C2;
N150 Z-102 (it is not known if right or left);
You can program two angles with 2 radii or bevels as a maximum.
7.2
Compensation function
For further information on this subject, refer to section 14 on Fanuc manual, part
1/2.
<EXTERNAL>
<INTERNAL>
7.3
Tools
T1 = EXTERNAL
T8= TWIST DRILL 38
T10 = INTERNAL
7.6
TOOLS:
T1 = EXTERNAL ROUGHING
T2 = EXTERNAL FINISHING
T6 = INTERNAL ROUGHING
T10 = INTERNAL FINISHING
7.7
7.8
PROGRAM:
O0001 (EXAMPLE OF M98);
N10 G10 PO Z-130;
N20 M98 P30002 (REPEATS 3 TIMES THE SUBPROGRAM 0002);
N30 G0 X150 Z150 M30
SUBPROGRAM
00002 (SUBPROGRAM);
N10 T101;
N25 G50 S1500;
N30 G96 S150 G99 F0.08 M4;
N40 G0 X30 Z-10;
50 G1 X-2;
N60 G0 X30;
N70 G10 P0 W10;
N80 M99
8.1
G38 is programmed when a workpiece clamped on the head is to be moved to the sub-head.
When transferring the workpiece from the head to the sub-head, it is assumed that the workpiece will
be in contact with sub-head chuck face when the limit value preset for B-axis is reached. Then the
workpiece is clamped on the sub-head and the program advances to the following block.
COMMAND
G38 B (J)_K_F_Q_;
- G38................Workpiece push checking command.
- B....................Absolute command
This is a B-axis coordinate value for the working position at
which the workpiece will be transferred from the head to the
sub-head.
- F....................Advance (mm/min)
This is the advance speed for workpiece transfer operation.
- Q....................Transfer position tolerance.
After the workpiece is positioned on B+Q as a result of transfer
operation, the program will be advanced to the following block.
8.2
G138 is programmed when a workpiece, which was previously clamped with main head, is to
be clamped with the tailstock (B-axis)
In the clamping operation, the workpiece is meant to be properly clamped when B-axis motor
torque reaches the limit value (cycle argument)
G138 is only available for machines equipped with automatic tailstock on B-axis
(T specification)
COMMAND
5- Workpiece clamped signal is activated after reaching the torque limit and
current tailstock position is within tolerance "B-Q".
6- J value is optional; its default value, when J is not programmed, is: 5 mm.
7- If any cycle argument is erroneous, the following alarm message will be
displayed:
3012 ILLEGAL COMMAND
EXAMPLE
M30;
8.3
COMMAND
3- Workpiece clamped signal is activated after reaching the torque limit and
current tailstock position is within tolerance "B,B-Q".
4- Programming X and Z arguments, for both clamping and releasing, is
optional.
5- If programmed, the positioning of X-, Z- and B-axis, when clamping or
releasing the workpiece, is simultaneous movement of 3 axes on G0.
6- Programming A argument is only possible during the clamping cycle and is
optional.
7- If K value is omitted, the default vale will be 10 mm. This value is only
effective on clamping cycle.
8- J value is optional, and is only effective during the releasing cycle its default
value, when B is not programmed, is: 0 mm.
9- When programming B on a releasing cycle, the J argument is optional. If J
is not programmed, the tailstock will go to B position programmed on G0
from the clamping position.
10- If B and J are programmed on a releasing cycle, the tailstock is retracted J
mm on G1 and then will go to B coordinate value programmed on G0.
11- If any cycle argument is erroneous, the following alarm message will be
displayed:
3012 ILLEGAL COMMAND
O0001;
N1;
G238 X100 Z50 B-425.8 K5 Q1 S700 T250 A501 E1; .... Workpiece clamping cycle
The X, Z and B axes moving at the same time.
The tailstock is advanced to the B-position (-425.8+5=-420.8mm) on
G0, as K is 5 and B is 425.8. From this position, the tailstock is
advanced on G1 until reaching the torque, with F700mm/min, as S is
700.
After executing the part-clamping-movement, the new T code will be
executed.
The part will be clamping, if the B-axis position is between (B, B-Q].
If the B-axis final position is greater than B-Q (in the example,
-424.8mm), the alarm 3011 PART NOT CLAMPED will appear.
If the B-axis final position is less or equal to B (in the example,
-425.8mm), the alarm 3011 PART NOT CLAMPED will appear.
G97 S1000 M03..........................................Main head rotates at 1000 rpm
G99;............................................................Advance per revolution.
Machining program
G238 X250 Z250 B100 D1200 J10 E2;
8.4
COMMAND
G384 X_C_Z_
H_R_F_S_D_M_E_Q_A_T2(T3);
< Rigid threading cycle on a side >
G384 X_C_Z_
H_R_F_S_D_M_E_Q_A_T1;
G380;
- G384..............Enables a rigid threading cycle
- G380..............Disables a rigid threading cycle
- X,Z,C..............Absolute command for positioning the tool in front of hole
centre.< Rigid threading on front end >
- R....................Used to set R point position (incremental value).
- H....................Specifies the position of hole bottom on X- or Z-axis from
point R (incremental value)
- F....................Used to set thread pitch (mm).
- S....................Used to set tool lead-in speed (min-1).
- D....................Used to set tool lead-out speed (min-1).
- A....................Specifies the command for t code, for selecting a new tool.
- M....................Used to activate head brake.
M50.............Brake of head or head 1.
M250...........Brake of head 2.
- T....................Used to set threading direction.
T1................Direction according to X-axis (threaded radial).
T2................Direction according to Z-axis (threaded axial <head 1>).
T3................Direction according to Z-axis (threaded axial <head 2>).
- Transmission ratio powered tool holder
E.................Tool holder input speed
Q.................Tool holder output speed.
1- For a threading cycle, axis and head override will be set to 100%.
2- Dry Run function is not available when a threading cycle is being executed.
3- Ensure that powered tool and head are stopped prior to executing a threading
cycle.
4- As axes and tool are synchonised, using a floating tap will not be required.
5- Powered tool speed will be limited when using a rigid threading cycle.
6 Positioning of X-, Z- and C-axis is performed on G0 simultaneously on the 3
axes. This movement is carried out when calling the cycle for the first time.
For subsequent calls, only a single coordinate value is possible. X or Z or C.
7- G384 function is programmed in all blocks requiring a rigid threading cycle. H,
R, F, S, D, M, Q, E, A and T values must not be entered in the second block in
which a rigid threading cycle is programmed, as well as in all subsequent
blocks. Only the position at which a threading operation is to be carried out must
be entered.
8- H argument is the distance from R point to hole bottom.
9- Entering the number of repeats for a rigid threading cycle is not permitted.
10- A rigid threading cycle enabled with G384 must be disabled with G380.
If another fixed cycle is entered without previously disabling a rigid threading
cycle, an alarm message (No. 3011) will be displayed. Indexing the turret with a
T command during a rigid threading cycle is not permitted.
If another fixed cycle is specified without previously cancelling the rigid threading
cycle, a collision between tool and workpiece may occur.
11- During a rigid threading cycle, turret indexing by means of command T is
carried out when starting the cycle and before positioning the axes.
12- If no D value is specified, tool lead-in and lead-out speed will be that
specified for S.
13- If neither M50 nor M250 is specified, there will be no head braking.
14- T3 value must be only specified for machins equipped with a sub-head (S).
This value must not be used to perform a front threading operation on a
workpiece located on the sub-head.
15- Commnad M250 will be only valid if a T3 value is specified.
16- If any cycle argument is erroneous, the following alarm message will be
displayed:
3012 ILLEGAL COMMAND
EXAMPLE
A rigid threading cycle (G384) (pitch: 2 mm; depth: 20 mm) is to be carried out for holes 1 to 6.
Infeed
Rapid displacement
Z30.0
(Initial point)
Normal rotation
Reverse rotation
Z15.0
(R point)
0.1 s dwell time on hole bottom
Movements for G384 on 1 - 6
O0001;
N1;
G98;........................................Advance per minute
M80;........................................C-axis on main head is activated
G28 H0;..................................Go to C-axis reference point
G97;........................................Constant head speed control is activated
Power tool is stopped
G384 X150.0 Z30.0 C30.0 H20.0 R15.0 F2.0 S300. D600. M50. T2. A101;
A rigid threading cycle is executed on point 1
- X150.0 Z30.0 C30.0
The axes are positioned on point 1 (X150, Z30, C30) at quick speed (G0).
G384 C90.0;
G384 C150.0;
A rigid threading cycle (G384) is executed on
G384 C210.0;
...............
points 2 to 6
G384 C270.0;
G384 C330.0;
G380;......................................Rigid threading cycle is disabled (G384)
G00 X200.0 Z100.0 M05;........Powered tool is stopped.
M81;........................................C-axis is disabled.
G99;........................................Advance per revolution.
M30;
Fig. 1.3.1
To calibrate this force, the variable #130 of the program O9016 (for the cycle G138), or the
program O9015 (for the cycle G238) can be introduced from the keyboard, until both
measurements are the same.
The initial #130 is introduced by the manufacturer during the machine
verification process.
If the bit 4 in the parameter 3202 takes the value of 1, the edition of registered
programs O9000 to O9999 will not be possible.
8.5
COMMAND
G384 X_C_Z_
H_R_F_S_D_M_E_Q_A_T2(T3);
< Rigid threading cycle on a side >
G384 X_C_Z_
H_R_F_S_D_M_E_Q_A_T1;
G380;
- G384..............Enables a rigid threading cycle
- G380..............Disables a rigid threading cycle
- X,Z,C..............Absolute command for positioning the tool in front of hole
centre.< Rigid threading on front end >
- R....................Used to set R point position (incremental value).
- H....................Specifies the position of hole bottom on X- or Z-axis from
point R (incremental value)
- F....................Used to set thread pitch (mm).
- S....................Used to set tool lead-in speed (min-1).
- D....................Used to set tool lead-out speed (min-1).
- A....................Specifies the command for t code, for selecting a new tool.
- M....................Used to activate head brake.
M50.............Brake of head or head 1.
M250...........Brake of head 2.
- T....................Used to set threading direction.
T1................Direction according to X-axis (threaded radial).
T2................Direction according to Z-axis (threaded axial <head 1>).
T3................Direction according to Z-axis (threaded axial <head 2>).
- Transmission ratio powered tool holder
E.................Tool holder input speed
Q.................Tool holder output speed.
1- For a threading cycle, axis and head override will be set to 100%.
2- Dry Run function is not available when a threading cycle is being executed.
3- Ensure that powered tool and head are stopped prior to executing a threading
cycle.
4- As axes and tool are synchonised, using a floating tap will not be required.
5- Powered tool speed will be limited when using a rigid threading cycle.
6 Positioning of X-, Z- and C-axis is performed on G0 simultaneously on the 3
axes. This movement is carried out when calling the cycle for the first time.
For subsequent calls, only a single coordinate value is possible. X or Z or C.
7- G384 function is programmed in all blocks requiring a rigid threading cycle. H,
R, F, S, D, M, Q, E, A and T values must not be entered in the second block in
which a rigid threading cycle is programmed, as well as in all subsequent
blocks. Only the position at which a threading operation is to be carried out must
be entered.
8- H argument is the distance from R point to hole bottom.
9- Entering the number of repeats for a rigid threading cycle is not permitted.
10- A rigid threading cycle enabled with G384 must be disabled with G380.
If another fixed cycle is entered without previously disabling a rigid threading
cycle, an alarm message (No. 3011) will be displayed. Indexing the turret with a
T command during a rigid threading cycle is not permitted.
If another fixed cycle is specified without previously cancelling the rigid threading
cycle, a collision between tool and workpiece may occur.
11- During a rigid threading cycle, turret indexing by means of command T is
carried out when starting the cycle and before positioning the axes.
12- If no D value is specified, tool lead-in and lead-out speed will be that
specified for S.
13- If neither M50 nor M250 is specified, there will be no head braking.
14- T3 value must be only specified for machins equipped with a sub-head (S).
This value must not be used to perform a front threading operation on a
workpiece located on the sub-head.
15- Commnad M250 will be only valid if a T3 value is specified.
16- If any cycle argument is erroneous, the following alarm message will be
displayed:
3012 ILLEGAL COMMAND
EXAMPLE
A rigid threading cycle (G384) (pitch: 2 mm; depth: 20 mm) is to be carried out for holes 1 to 6.
Infeed
Rapid displacement
Z30.0
(Initial point)
Normal rotation
Reverse rotation
Z15.0
(R point)
0.1 s dwell time on hole bottom
Movements for G384 on 1 - 6
O0001;
N1;
G98 (G94);..............................Advance per minute
M80;........................................C-axis on main head is activated
G28 H0;..................................Go to C-axis reference point
G97;........................................Constant head speed control is activated
Power tool is stopped
G384 X150.0 Z30.0 C30.0 H20.0 R15.0 F2.0 S300. D600. M50. T2. A101;
A rigid threading cycle is executed on point 1
- X150.0 Z30.0 C30.0
The axes are positioned on point 1 (X150, Z30, C30) at quick speed (G0).
G384 C90.0;
G384 C150.0;
A rigid threading cycle (G384) is executed on
G384 C210.0;
...............
points 2 to 6
G384 C270.0;
G384 C330.0;
G380;......................................Rigid threading cycle is disabled (G384)
G00 X200.0 Z100.0 M05;........Powered tool is stopped.
M81;........................................C-axis is disabled.
G99 (G95);..............................Advance per revolution.
M30;
COMMAND
Execution of M27 (tailstock body unclamp; joint pin extends from the
tailstock body to connect with the saddle).
Z_ (positioning of the tailstock at the position specified by Z_)
Execution of M28 (joint pin extracts from saddle to release the
tailstock body from the saddle ; tailstock body clamp).
EXAMPLE
O0005;
N1;
G100 Z_; . Moving the tailstock to the position specified by Z_ (value in
mm).
M25; The tailstock spindle moves OUT to hold the workpiece by
the tailstock spindle center.
G04 U_; ... Calling for dwell to allow positive support of the workpiece by
the tailstock spindle center.
G50 S1000:
T0101:
G96S100M03;
...
Machining program
G28 U0; . Machine zero return of X-axis to avoid interference with the
tailstock.
M05;
M26; .. The tailstock spindle moves IN.
G04 U_; . Calling for dwell to allow tailstock spindle to correctly extract
into the tailstock body.
G100 Z_; Moving the tailstock to the previously located position,
specified by Z_ (value in mm).
COMMAND
G101;
G101 . Calls the tailstock connect joint mode
1/ Specify the G101 command independently in a block without other
commands.
To execute the G101 command, the following conditions must be satisfied:
The main spindle or the rotary tool spindle is stopped.
The turret head index has completed.
The tailstock spindle is in the IN position.
When programing G101 to get out the tailstock from park position, the joint hole
doesnt change and the tailstock is coupled to the 2nd hole.
During setup operation, it is recommended to record the position(s) where the
tailstock should be positioned and the position where the tailstock should be
returned after the completion of machining. The coordinate values must be
specified in the machine coordinate system.
Execution of M27 (tailstock body unclamp; joint pin extends from the
tailstock body to connect with the saddle).
EXAMPLE
Programming using G101
O0005;
N1;
G101; . Moving the Z axis to the position where the tailstock was left.
G1Z_F100; .. Approuch the tailstock to the part with the Z-axis.
M28; .. Uncouple and clamp the tailstock.
M25; The tailstock spindle moves OUT to hold the workpiece by
the tailstock spindle center.
G04 U_; ... Calling for dwell to allow positive support of the workpiece by
the tailstock spindle center.
G50 S1000:
T0101:
G96S100M03;
...
Machining program
G28 U0; . Machine zero return of X-axis to avoid interference with the
tailstock.
M05;
M26; .. The tailstock spindle moves IN.
G04 U_; . Calling for dwell to allow tailstock spindle to correctly extract
into the tailstock body.
G101; . Moving the Z axis to the position where the tailstock was left.
G1Z_F100; Moving the tailstock to the previously located position
specified by Z_ (absolute coordinate value).
M28; Uncouple and clamp the tailstock.
9.1
COMMAND
9.2
COMMAND
EXAMPLE
These functions are used when the workpiece on main head is to be transferred to sub-head
with the synchronisation mode activated.
O0001;
Machining program.
(machining operation on main head)
N5;
G97 S1000 M03;.....................Main head rotates at 1000 min-1.
M34;........................................Phase and speed synchronisation.
After synchronising the phases, head and subhead speed is synchronised to 1000 min-1.
M211;......................................Sub-head jaws are opened.
Sub-head rotates at 1000 min-1 in reverse direction with jaws
open.
During the synchronisation, heads can be rotated
with jaws open.
G53 B-_;.................................Sub-head is moved to limit point on B-axis (machine coordinates)
(First approach)
G98 G01 B-_F1000;................Sub-head is approached to workpiece at a speed of 1000
mm/min
(Second approach)
G38 J_K_F_Q_;......................Workpiece push is detected.
Includes clamping of workpiece on sub-head.
9.3
9.4
EXAMPLE
O0001;
Machining program
(Machining operation on main head)
N5;
G97 S1000 M03;.....................Main head rotates at 1000 min-1
M33;........................................Speed synchronised in both heads.
M211;
Workpiece transfer
G99 G00 X42.0 M08;..............Advance per revolution
G01 X-06 F0.08;.....................Cutting cycle. Workpiece cut to X-0.6 at a feed speed of 0.08
mm/sec.
G28 U0 M09;
M40;........................................Detection of cut workpiece
Main head rotates at 1000 min-1 and sub-head is
stopped.
G28 W0;
M36;........................................Head synchronisation mode is disabled
G28 B0;...................................Sub-head is returned to reference point on B-axis.
M01;
9.5
COMMAND
1.- Before executing a M73 function, ensure that the turret is out the
interference area with workpiece collector.
2.- Singly programming a M73 or M74 function in a block without any
other command and entering a G04 function in the next block, will allow
workpiece collector movements to be completed without any
interference.
If a G04 function is not entered in the next block, next block can be
started with workpiece collector not having completed its movements
and thus with a risk of collision.
G04 time period must be longer than the time required for collecting and
ejecting the workpiece. It should be taken also into account that this
time period will depend on air pressure.
3.- If workpiece weight or volume exceeds the capacity of workpiece
collector, do not use it, as otherwise damages could be caused to the
machine.
1.- On machines equipped with a sub-head (S), don not enter a M73 function in
the program if there is any risk of collision with sub-head body.
2.- On machines equipped with a sub-head (S), B-axis displacement is not
permitted when workpiece collector is in collection position.
EXAMPLE
9.6
COMMAND
M329 X_ Z_ H_ R_ F_ S_ T_ A_ I_;
- M329................Command for rigid threading.
- X, Z........Absolute commands, with the position of the hole to be
machined.
- R.............Used to set R point position (incremental value) (mm).
- H.............Specifies the position of hole bottom on Z-axis (absolute
value) (mm)
- F.............Used to set thread pitch (mm).
- S.............Specifies head rotation speed for a threading operation (min 1
).
- A.............Specifies the T code for selecting a new tool.
- I..............Specifies thread direction, right-hand (0) or left-hand (1).
- T.............Used to set threading direction.
T2................Direction on Z-axis (head 1)
T3................Direction on Z-axis (head 2)
1- For a threading cycle, axis and head override will be set to 100%.
2- Dry Run function is not available when a threading cycle is being executed.
3- Ensure that powered tool and head are stopped prior to executing a
threading cycle.
4- As axes and head are synchronised, using a floating tap will not be required.
5- Positioning on X- and Z-axis is performed on G0 simultaneously on the 2
axes.
6- During a rigid threading cycle, turret indexing by means of command T is
carried out when starting the cycle and before positioning the axes.
7- T3 value must be only specified for machines equipped with a sub-head (S)
(S specification). This value must not be used to perform a front threading
operation on a workpiece located on the sub-head.
8- If argument 1 is set to a value other than 1, the cycle will assume that a
right-hand thread is to be machined.
9- If any cycle argument is erroneous, the following alarm message will be
displayed:
3012 ILLEGAL COMMAND
M30;
9.7
EXAMPLE
The following example assumes that the machine is equipped with a bar feed.
O0001;
Machining program
(Machining operation on sub-head)
M05:........................................Sub-head is stopped
G53 B_;...................................Sub-head is moved to the position at which workpiece collector
collects the workpiece.
N10;
M11;........................................Open jaws on main head.
G04 U_;..................................Time delay to allow properly opening main head jaws.
M62;........................................Bar feed (push)
M10;........................................Clamp workpiece on main head.
G04 U_;..................................Time delay to allow properly clamping a new workpiece on main
head.
N11;
G50 S2000;
G00 T0101;
G96 S120 M03;
Machining program
(Machining operation on main head)
M30;
9.8
9.9
9.10.1
Coolant
If the machine is equipped with a single coolant pump, M8 code, while on automatic mode, will
start the pump and M38 code will stop it. You can also enter M9 code to stop the pump, as this
code will switch off all pumps, both coolant pumps and cleaning fluid pumps.
A push-button is available for starting this pump on manual mode. The LED on this pushbutton will be lighted when the pump is started.
TBI 520 machines can be provided with a second coolant pump. This pump is
started and stopped, while on automatic mode, by means of codes M18 and
M17, respectively. If a M9 code is programmed, both coolant pumps are
stopped.
This pump is optional for TBI520 machines.
Same as for the first pump, a push-button is available on control panel for starting and
stopping the second coolant pump on manual mode. (The LED will be lighted when this pump
is started)
These two coolant pumps will only operated if machine door is closed.
9.10.2
Cleaning fluid
If the machine is equipped with a rear chip conveyor, cleaning pump operation will be governed
by chip conveyor operation. By this way, when a M200 code is entered to start the chip
conveyor, the pump will be also started and will be kept running until a M201 code is entered to
stop the chip conveyor.
If the chip conveyor is located on the machine side instead of on the rear, M382 and M383
code will start and stop the pump, respectively, while on automatic mode. In this case, a pushbutton on control panel is used to start (LED lighted) and stop the pump on manual mode.
9.10.3
9.10.4
Coolant gun
Coolant gun can be only activated with machine door open To activate coolant gun, press
coolant start push-button on main control panel.
The coolant gun is an option available for all machines.
M8
M9
M38
M18
..............
............................
........................
...........
M380
M381
M480
M481
10.1.1
axis
C-axis activation
(head1 and head2 coupled)
C-axis deactivation
(head1 and head2 coupled)
M80, M81, M280 y M281 - Activation and deactivation of CWhen a command M80 is entered, C-axis operation is activated on the main head, or on the
head1.
When a command M280 is entered, C-axis operation is activated for head2.
When a command M81 is entered, C-axis operation is deactivated for main head, or for head1.
When a command M281 is entered, C-axis operation is deactivated for head2.
Commands M80, M280, M81 and M281 can be only used on machines of M
type Commands M280 and M281 can be only used on machines of SM type.
By programming command M80, M280 on automatic mode or MDI mode, head1
or head2 can be indexed to the required angular position in order to drill holes
on the circular contour of the workpiece or on the end face.
On mode M80 or M280, head rotation can be controlled synchronically with tool
movement in order to cut grooves or slots.
COMMAND
M80; .............
M280; ...........
M81; .............
M281; ...........
For machines of SM series, chuck locking function is only enabled for the head
for which the last M command has been programmed, provided that more than
one M80 (C-axis activation for head1), M280 (C-axis activation for head2), M50
(brake activation for head1), and M250 (brake activation for head2) is
programmed in a single block. Chuck locking function is nor enabled for other
heads. Therefore, the machining operation must be performed with the head for
which the last M command is programmed. If the machining operation is
performed with other head, the powered tool will not be stopped even with jaws
open, letting the workpiece to fall or be thrown out the chuck, causing personal
injures or damages to the machine.
1- Stop the head (head1 and/or head2) by entering the command M05 (head1)
or M205 (head2) before entering commands M80, M280. If any of the last
parameters is entered with head1 or head2 rotating, the machine will be
stopped and an alarm message (FM024) will be shown on the display.
2- Before entering command M81 or M281, the powered tool must be stopped
by entering command M05 or M85. If any of these commands is entered
when the powered tool is rotating, the machine will be stopped and the
alarm message (FM025) will de shown on the display.
3- For machines of SMC series, deactivating C-axis function will not be
necessary when changing this function from a head to the other head by
means of M80 or M280.
4- For machines of SMC series, head1 or head2 will operate on C-axis mode
when entering M80 or M280 respectively. To deactivate C-axis function on
either head, only enter command M81 or M281 respectively, in case of each
head.
COMMAND
10.1.2
M480 and M481 - Coupling of C-axes for head and
subhead.
Function M480 is used for coupling C-axis movement for head and subhead. For instance, this
function is used to perform C-axis operations with a workpiece simultaneously clamped on bot
heads.
By entering M481 head coupling is disengaged.
Commands M480 and M481 can be only used on machines of SMC series.
M480; ........... C-axis mode is activated on both heads, head1 and head2.
M481; ........... C-axis mode is deactivated on both heads, head1 and head2.
When C-axes on both heads are coupled, activating the hydraulic brake to lock
head1 (M50) will only be permitted. Considering that this function is used to
machine workpieces clamped on both heads, locking both heads will not be
required.
10.1.3
M380, M381, M303 and M304 - Activation and deactivation
of C-axis with SuperCap.
When the control unit is provided with SuperCap tool, C-axis is activated by means of
command M380, and then enter M303 or M304 to activate C-axis mode on head1 or head2
respectively.
Command M381 deactivated C-axis function on head1 or head2.
Commands M380 and M381 are only used on machines of SMC series provided
with SUPERCAP tool.
COMMAND
PROGRAM
O0004
N10 G10 P0 Z-100;
N20 T101 M8;
N30 M80 (ACTIVATES C AXIS);
N40 G98 G97 F80 M83 S800;
N50 G0 C0;
N60 X90 Z2;
N70 G83 Z-10 Q5000 H90 K4 M50 F80 (ORDER OF BORING: 90, 180, 270, 0);
ATENCIN: en machines with specification of tenth of micron, Q50000 must be set
instead of Q5000
N80 G0 G80 X150 Z150 M5;
N90 M81 (DEACTIVATES THE C AXIS);
N100 M30;
First go to C0= position then rotate the head by the angle given by M command and finally
perform the drilling operation. As the head is first rotated and then the drilling operation is
carried out, C-axis position at the beginning must be advanced by a value equal to the angle
given by H command. The number of K command indicates the number of holes and the angle
given by H command indicates the rotation angle between a hole and the next one.
H distance between two holes in degrees.
K number of holes.
M50 strong braking on head.
Q infeed interval.
G83 start of drilling cycle.
G80 end of drilling cycle.
M5 stop of powered tool.
Numbers in brackets indicate the order in which holes are drilled.
By pressing F6 on the screen of CMZ main menu, you can gain access to a screen allowing
you to select both tool holder and its own rotation direction. By this way, when M83 is entered,
it is assumed that the tool holder will rotate in the proper direction.
ALTERNATIVE PROGRAM
This fixed drilling cycle can be programmed in the apparently more logic and simple sequence,
ie, 0 - 90 - 180 - 270. This cycle would be as follows:
PROGRAM
O0004
N10 G10 P0 Z-100;
N20 T101 M8;
N30 M80 (ACTIVATES C AXIS);
N40 G98 G97 F80 M83 S800;
N50 G0 C0;
N60 X90 Z2;
N70 G83 Z-10 Q5000 M50 F80; ATTENTION: in machines with specification of tenth of
micron, Q50000 must be set instead of Q5000
N80 C90;
N90 C180;
N100 C270 (BORING ORDER: 0, 90, 180, 270);
N110 G0 G80 X150 Z150 M5;
N120 M81 (DEACTIVATES C AXIS);
N130 M30;
10.3 G87 Programming of fixed axial drilling cycle with powered tool
3 HOLES SPACED 120
PROGRAM
O0005
N10 G10 P0 Z-120;
N20 T303 M8;
N30 M80 (ACTIVATES C AXIS);
N40 G98 F100 M83 S900 G97;
N50 G0C0;
N60 X125 Z-15;
N70 G87 X96 Q4500 H120 K3 M50 F100; ATTENTION: in machines with specification
of tenth of micron, Q45000 must be set instead of Q4500
N80 G0 G80 X180 Z150 M5;
N90 M81 (DEACTIVATES C AXIS);
N100 M30;
In this case, the first position must be also advanced by the angle with respect to the first hole
given by H command.
PROGRAM
O0009
N10 G10 P0 Z-105;
N20 T505 M8;
N30 M80 (ACTIVATES C AXIS);
N40 G98 F100 M84 S700 G97;
N50 G0C0;
N60 X110 Z2;
N70 M98 P40020 (Calls subprogram 0020, that Hill be executed 4 times);
N80 G0 X200 Z100 M85;
M90 M81 (DEACTIVATES C AXIS);
M100 M30;
SEN30= A / 30 A=30xSEN30=15mm
COS30= B / 30 B=30xCOS30=25,98mm
Geometry data:
R4
T9
PROGRAM
O0001
N10 G10 P0 Z-95;
N20 T101 (MILLING TOOL DIAMETER 8);
N30 M80;
N40 G98 F100 M83 S1000;
N50 G0C0:
N60 X80 Z-2;
N70 G112 (ACTIVATES COORDENATES TRANSFORMATION);
N80 G1 G42 X60 (P1) (G42 ACTIVATES TOOL COMPENSATION);
N90 X30 C25,98 (P2)
N100 X-30 (P3);
N110 X-60 C0 (P4);
N120 X-30 C-25,98 (P5);
N130 X30 (P6);
N140 X60 C0 (P1);
N150 G40 X80 (G40 DEACTIVATES TOOL COMPENSATION);
N160 G113 (DISABLESCOORDENATES TRANSFORMATION);
N170 M53 (ONLY IN TBI)
N180 M5;
N190 M81;
N200 G0 X150 Z150 M30;
PROGRAM
O0033
N5 T101 (SELECTION OF MILLING TOOL);
N10 M80 (ACTIVATION OF C AXIS);
N15 M83 S1000 G98 F100 G97 (DEFINITION OF CUTTING COORDENATES);
N20 G0C0
N25 G0 X120 Z-1
N30 G112 COORDENATES TRANSFORMATION);
N35 M52 (LOW PRESSURE BRAKE, ONLY IN TBI);
N40 G42 G1 X80 (P2);
N45 X40 C30 (P3);
N50 X-100 (P4);
N55 G2 X-100 C-30 R30 (P5);
N60 G1 X40;
N65 X80 C0;
N70 G40 X120;
N75 G113 (DEACTIVATIN OF COORDENATES TRANSFORMATION);
N80 G0 X150 Z100;
N85 M53 (DEACTIVATES LOW PRESSURE BRAKE, ONLY IN TBI);
N90 M81 (DEACTIVATES C AXIS);
N95 M5 (STOPS DRIVEN TOOL);
N100 M30;
PROGRAM
O0001;
N10 T101 M5;
N20 M80 (ACTIVATION OF CAXIS);
N30 G0 C0 (POSITIONING OF C AXIS AND ACTIVATION OF SPINDLE BRAKE);
N40 X50 Z4 (POSITIONING AT FIRST POINT OF THREADING CYCLE);
N50 G384 H12 F1 S800 D800 M50 T2 (FIRST HOLE THREADING CYCLE);
N60 G384 C120 (POSITIONING AT SECOND HOLE AND THREADING CYCLE);
N70 G384 C240 (POSITIONING AT THIRD HOLE AND THREADING CYCLE);
N80 G380 (END OF CYCLE);
N90 G0 X100 Z50 M81
N100 M30;
PROGRAM
N10 M5;
N20 T303 (BORING TOOL 8,5MM DIMETER);
N30 M80 (ACTIVATION OF C AXIS);
N40 G98 F80 M83 DS500 G97;
N50 G0C0;
N60 X90 Z5;
N70 G83 Z-10 Q5000 H90 K4 M50 F80 (FOUR HOLES BORING IN ORDER 2-3-4-1);
ATTENTION: in machines with specification tenth of micron
Q50000 must be set instead of Q5000
N80 G80 (DISABLES BORING FIXED CYCLE);
N90 G0 X200 Z200 M85 (STOPS DRIVEN TOOL);
N100 M81 (DEACTIVATES CAXIS);
N110 T606 (THREADING TOOL);
N120 M80 (ACTIVATES C AXIS);
N130 G98 G97 F80 M83;
N140 G0 C0;
N150 X90 Z5;
N160 G384 H10 S300 D300 M50 T2 F1,5 (RIGID TAPPING CYCLE AT (1));
N170 G384 C90 (RIGID TAPPING CYCLE AT (2));
N180 G384 C180 (RIGID TAPPING CYCLE AT (3));
N190 G384 C270 (RIGID TAPPING CYCLE AT (4));
N200 G380 (DISABLES FIXED CYCLE);
N230 G0 X200 Z200 M85 (REMOVE AND STOP OF DRIVEN TOOL);
N240 M81 (DEACTIVATION OF C AXIS);
N250 G99;
PROGRAM
O0001;
N10 T101 M5;
N20 M80 (ACTIVATION OF C AXIS);
N30 G0 C0 (POSITIONING OF C AXIS);
N40 X60 Z-10 (POSITIONING AT THREADING CYCLE STARTING POINT);
N50 G384 H30 F1 S800 D800 M50 T1 (FIRST HOLE THREADING CYCLE);
N60 G384 C180 (POSITIONING AT SECOND HOLE AND THREADING CYCLE);
N70 G380 (END OF CYCLE);
N80 G0 X100 Z50 M81
N90 M30
PROGRAM
N10 T010 (MILLING TOOL DIAMETER 10);
N20 M80;
N30 G98 M83 S100 F100;
N40 G0C0X20 Z-1,3 (IN TBI MACHINES, M52 IS ADDED, LOW PRESSURE SPINDLE
BRAKE);
N50 G112;
N60 G1 G42 X10 C1,5 F300 (P1);
N70 X-8 F100 (P2);
N80 C-1,5 F2000 (P3);
N90 X8 F100 (P4);
N100 G40 X20 F600;
N110 G113;
N120 M53 (ONLY IN TBI MACHINES, DEACTIVATES SPINDLE BRAKE);
N130 G0 X150 Z100 M85;
N140 M81;
N150 M30;
Tool selection and approach to start point operations are omitted and they must
be determined by the programmer.
PROGRAM
N10...;
N20...;
N30 G112 C45;
N40 G0 Z-39,4;
N50 G1 G42 X16 C4.42 F1000;
N60 X-18 F80;
N70 C-4,42 F1000;
N80 X17 F80;
N90 G40 X80 F1000;
N100 G113;
N110 M30
10.12 Example of bevelling two squares, one with the main head and
the other with the subhead
The sum of locking and unlocking times is saved as a result of function M316, as these
operations are performed while the turret is being moved.
Those functions which require to be executed that a function in the same block
will be previously executed must not be entered in the same block.
For instance, neither M80 M83 nor M81 M85 must be entered in the same
block, as M83 and M85 require that M80 and M81 respectively will be previously
executed.
M30, M0, M1, M2, M301, M302, M303, M304 y M29 functions must be required as the first M
function of all three functions.
Do not enter M70 M30, but M30 M70 (cycle end and door opening).
11.3 Using G97 to ensure the head reaching the required rotation
speed
If G96 is entered, cutting speed will be constant. This means that, for small turning diameters,
the head will reach high rotation speeds.
If when turning a small diameter a tool change is required, the turret should be moved out from
the workpiece to the position in which the tool is changed. The head will be decelerated
because this turret movement is carried out without specifying the speed. Consequently, when
the turret returns to the position in which a small diameter is turned, the head will be
accelerated until the speed required for turning this small diameter is reached.
By entering function G97 together with the required head speed, the required head rotation
speed is maintained while both moving the turret out the workpiece and returning it to the
workpiece, thus reducing the time required to accelerate the head.
For example:
N10 G10 P0 Z-103;
N20 T101 (surfacing);
N30 G50 S3500 (R.P.M. limit);
N40 G96 G99 S200 F.25 M4 M200 M8;
N50 G0 X45 Z0 (APROXIMATIN);
N60 G1 X-2 (SURFACING REACHES 3500 RPM)
N70 G0 X150 Z150 G97 S3500 M316(CONSTANT TURNING SPEED 3500);
N80 T303;
N90 G0 X20 Z1 (APROXIMATION);
N100 G96 G99 S200 F.25 M4 M200 M8 (G96 IS PROGRAMMED AGAIN, BUT SPINDLE IS
ALREADY TURNING AT PROGRAMMED SPEED);
N110...........
11.4 Using M318 to change tower position while axes are being
moved.
By default, tower position is changed after all axes are moved to programmed position.
However, by using M318 code, you can change tower position before all axis movements are
completed.
As M318 enables tower movement while the axes are being moved,
you should keep in mind that a collision between the workpiece
and tool holding disc could occur if machine movements are
incorrectly programmed. Before starting a new cycle, make sure
that any interference between movements is prevented.
Quicker version
T101
G97 S50 M4 F0.2
G0 X0 Z2 S3500
PROGRAM
N10 T606;
N20 G50 S1800;
N30 G96 S250 G99 F0,2 M3;
N40 G0 X28 Z1;
N50 G72 W2,5 R0,5;
N60 G72 P1000 Q1100 U-1 W0,1 F0,2;
N70 G1 Z-28 F0,35;
N80 X181 F0,15;
N90 Z1;
N100 G0 X200 Z100;
N110 M30
PROGRAM
N10 T101 (GROOVING);
N20 G50 S1500;
N30 G96 G99 S120 F0,1 M3;
N40 G0 X108 Z-36,5;
N50 G75 R0,5;
N60 G75 X91 W25 P5000 Q2500 F0,1 (FIRST ROUGHING);
ATTENTION: in machines with specification of tenth of micron, P50000 and Q25000
must be set instead of P5000 and Q2500
N70 G0 X93 Z-32,5;
N80 G75 R0,5;
N90 G75 X83 W17 P2000 Q2500 F0,1 (SECOND ROUGHING);
ATTENTION: in machines with specification of tenth of micron P20000 and Q25000
must be set instead of P2000 and Q2500
N100 G0 X85 Z-28;
N110 G75 R0,5;
N120 G75 X79 W8 P2000 Q2500 F0,1 (THIRD ROUGHING);
ATTENTION: in machines with specification of tenth of micron P50000 and Q25000
must be set instead of P5000 and Q2500
N130 G0 X150;
N140 X250 Z150;
N150 T202 (ROUND, TYPE 8, RADIUS 8);
N160 G96 G99 S120 M3 F0,15;
N170 G0 G42 X115 Z-7,5;
N180 G1 X106;
N190 G2 X106 Z-37,5 R15;
N200 G1 X110;
N210 G0 G40 X115 Z10;
N220 G42 X106 Z5;
N230 G1 Z-7;
N240 G2 X106 Z-38 R15,5;
N250 G1 Z-45;
N260 X110;
N270 G0 G40 X200 Z150 M30
PROGRAM
N10 T101 (GROOVING);
N20 G50 S1500;
N30 G96 G99 S120 F0,1 M3;
N40 G0 X108 Z-36,5;
N50 G75 R0,5;
N60 G75 X91 W25 P5000 Q2500 F0,1 (FIRST ROUGHING);
ATTENTION: in machines with specification of tenth of micron, P50000 and Q25000
must be set instead of P5000 y Q2500
N70 G0 X93 Z-32,5;
N80 G75 R0,5;
N90 G75 X83 W17 P2000 Q2500 F0,1 (SECOND ROUGHING);
ATTENTION: in machines with specification of tenth of micron, P20000 and Q25000
must be set instead of P2000 and Q2500
N100 G0 X85 Z-28;
N110 G75 R0,5;
N120 G75 X79 W8 P2000 Q2500 F0,1 (THIRD ROUGHING);
ATTENTION: in the machines with specification of tenth of micron, P50000 and
Q25000 must be set instead of P5000 and Q2500
N130 G0 X150;
N140 X250 Z150;
N150 T202 (ROUND, TYPE 8, RADIUS 8);
N160 G96 G99 S120 M3 F0,15;
N170 G0 G42 X115 Z-7,5;
N180 G1 X106;
N190 G2 X106 Z-37,5 R15;
N200 G1 X110;
N210 G0 G40 X115 Z10;
Date ______________________
To help us to improve this manual, we invite you to send us your comments about any insufficient
description or error found in this manual. Please, limit your comments to the aspects related to this
manual.
Manual designation:
Issue No.:
Name
Company
Department
Telephone
Address
Chapter
Page
Line
Comments/requests
Reception No.
Received by