Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Equipped with
TABLE OF CONTENTS
ROTARY AXIS FUNCTIONS................................................................................6
C - Axis .......................................................................................................................................................... 6
C-axis locking function................................................................................................................................. 6
Normal Rotary Axis Assignment for PUMA 1500, 2000, 2500 YS Models ............................................. 7
A - Axis .......................................................................................................................................................... 8
A-axis locking function................................................................................................................................. 8
Switching the Rotary Axis Names by M-Code........................................................................................... 8
Switching the Rotary Axis Clamp M-Code ................................................................................................ 8
Feed Rate Calculation for Linear Interpolation with Rotary Axis .......................................................... 9
DRILLING AND TAPPING WITH LIVE TOOLS ON THE SUB SPINDLE .........18
Z-axis peck drilling on the sub spindle ..................................................................................................... 18
Z-axis tapping ............................................................................................................................................. 18
Example: Drilling and Tapping on the Face of a part using Sub Spindle positioning. ........................ 18
X-axis peck drilling on the sub spindle ..................................................................................................... 19
X-axis tapping on the sub spindle ............................................................................................................. 19
Example: Drilling and Tapping on the OD of a part using Sub Spindle positioning. .......................... 19
C- AXIS
A - AXIS
Normal Rotary Axis Assignment for PUMA 1500, 2000, 2500 YS Models
The C-Axis (also referred to as C1-axis) normally assigned to the Main Spindle,
on left side.
The A-Axis (also referred to as C2-axis) normally assigned to the Sub Spindle,
on right side.
A - Axis
PUMA Turning centers that are equipped with a sub spindle and Y-axis include a
rotary axis each on the main and on the sub spindle. The rotary axis on the sub
spindle is assigned as the A-axis. NC programming for the A-axis is done same
way as on the C-axis, except as noted, below.
M290 This M-Code restores the normal axis name assignment, setting the Caxis on the main spindle and the A-axis on the sub spindle.
M291 This M-Code inverts the normal axis name assignment, setting the C-axis
on the sub spindle and the A-axis on the main spindle.
Switching the Rotary Axis Clamp M-Code
M390 sets the condition so that M89 clamps the C-Axis, M189 clamps the Aaxis
M391 sets the condition so that M189 clamps the C-Axis. M89 clamps the Aaxis.
3. Calculate the time it should take for the 1.07 long cut, applying the feed rate
of 5 per minute. Time = 60/5x1.07=12.84 seconds.
4. Calculate the feed rate in degrees per minute that is required for a rotation of
30 degrees in12.8 seconds: F=30/12.8*60=141 degrees per minute.
Or apply the following formula, where:
10
G0 G18G40
G80
G99
G96 S__
G97 S__
Explanation
These commands are normally used for starting or
stopping the main spindle. In addition, they will
automatically disconnect the C-axis. When the C-axis
happens to be clamped, at the time unclamping will be done,
automatically by these commands.
Use these G-codes at the beginning of any program segment
where Canned cycles G81through G88 or cutter compensation
G41, G42 is used. G18 (X-Z Plane select, default on power up)
IPR-feed mode should always be used for turning. (G99-mode
is set as default on power-up)
Constant surface speed control command is used for turning
only. Not to be used for drilling, tapping, milling or thread
cutting.
Constant (RPM) control command. Use G97 for drilling, tapping
milling or thread cutting. (G97-mode is set as default on powerup).
Explanation
These commands are normally used for starting or
stopping the sub spindle. In addition, they will
automatically disconnect the C-axis. When the C-axis
happens to be clamped, at the time unclamping will be done,
automatically by these commands.
11
G0 G40 G80
M90
G28 H0
G50 C__
G97 S__M33,
M34
M206
G97 S__M119
M33
M34
M88
M89
G99
G98
Remarks
Live tool spindle rotation-stop command and C-axis-selection.
This command is used for switching from Turning-Mode to
Live- Tooling Mode.
The main spindle now serves as the C-axis.
Use these G-codes at the beginning of any program segment
where Canned cycles G81through G88 or cutter compensation
G41, G42 is used.
C-axis unclamp-command. Use at the beginning of any program
segment where C-axis clamp function (M88 or M89) is used.
C-axis Reference-point-return command. This command should
be used always after the C-axis has been newly activated.
G50 C only! No other axis. This may be used to pre-set the Caxis coordinates, at the reference point, if desired.
Constant (RPM) control command must be used always when
C-axis is active. (G97-mode is set as default on power-up).
Note: The G96 command must never be used in Live
Tooling Mode.
Allows simultaneous spindle rotation of more than one spindle
at a time. This command is used just after sub spindle
positioning is done. It will keep the live tool spindle running.
Sub spindle positioning (when applicable)
Live tool spindle-forward rotation command. Also activates the
C-axis.
Live tool spindle-reverse rotation command. Also activates the
C-axis.
C-axis low pressure clamp. Use only when necessary. C-axis
clamping may be required for heavy milling, drilling or broaching
operations on relatively large diameters.
C-axis high pressure clamp. Use only when necessary.
(See above)
IPR-feed mode may be used for any live tool operation, except
on machines built before 1998. (G99 set default on power-up).
IPM-feed mode may be used for any live tool operation.
Preferably, the IPR (G99) feed mode should be used, if
possible. For machines built before 1998, the IPM-feed mode
must be applied for Live-Tooling operations.
12
M290
M291
Description
Sets the C-axis clamp M-Code as M89 (normal)
The A-axis clamp M-code is M189
M289 Calls program O9001
Sets the C-axis clamp M-Code as M189
The A-axis clamp M-code is M89
(used when the C-axis is switched from the main spindle to the
sub spindle)
M389 Calls program O9002
Sets the normal rotary axis assignments:
The C-axis is located at the main spindle.
The A-axis is located at the sub spindle.
M290 Calls program O9003
Inverts the rotary axis assignments:
The C-axis is located at the main spindle.
The A-axis is located at the sub spindle.
M291Calls program O9004
13
Main Spindle:
Sub Spindle:
#4077 S1
#4077 S3
Data range for parameter setting: zero ~ 4096, positive or negative value.
One full rotation (360 degrees)=4096 units. One unit equals 0.088 degrees.
(360/4096=0.088 degrees) One degree equals 11.3636 units.
(4096=1000 Hexadecimal value, or 4096=Bit 12 =1 Binary value
(1000000000000)
Caution: Parameter 4077 S2 must not be changed. This parameter sets the
live tool spindle orientation position that is critical about alignment of the drive
coupling.
Angular spindle positioning
On machines where the spindle positioning option is available, positioning at a
spindle rotation angle is possible in angular increments of 0.1 degrees. This
function cannot do interpolation with another axis.
Angular positioning of the main spindle
The command for main spindle positioning is as follows:
Zero-degree angle: G97 S0 M19
180-degree angle: G97 S1800 M19 (multiply positioning angle by 10)
Any angle:
G97 S3599 M19 (not to exceed 3600 units)
Once commanded, the spindle is held in position under power by the spindle
motor. The M3, M4 or M5-command cancels spindle positioning.
14
System parameter 4077 S-1 sets the reference angle for the main spindle.
Angular positioning of the Sub spindle
The command for sub spindle positioning is as follows:
Zero-degree angle: G97 S0 M119
180-degree angle: G97 S1800 M119 (multiply positioning angle by 10)
Any angle:
G97 S3599 M119 (not to exceed 3600 units)
The M103, M104 or M105-command cancels spindle positioning.
System parameter 4077 S-3 sets the reference angle for the sub spindle.
Angular Spindle positioning and spindle locking
When the spindle locking option is provided, angular positioning and locking of
the spindle is possible. Spindle locking is available on the sub spindle for all
PUMA MS-type turning centers. Angular positioning of the sub spindle is done
the same way as described, above. However, locking of the spindle is available
at 5 intervals, only. Hence, the angular positioning command is to be done in 5degree increments from zero (S-command in 50-unit increments).
Once the spindle has been positioned at the desired angle, it can be firmly
locked by the M-code M189. The teeth of a gear attached to the spindle will
be in alignment with the hydraulically powered locking pin every 5 degrees.
System parameter 4077 S3 is used for adjustment and setting the alignment
between the gear teeth and the locking pin.
15
G84 C___Z___F___
16
Simplified canned cycles for hole machining with the C and X-axis
X-axis peck drilling, C-axis positioning
G88 C___X___F___
17
18
The canned cycles shown below can be applied for drilling and tapping
operations on the sub spindle on PUMA-MS type machines. Angular spindle
positioning is applied.
X-axis peck drilling on the sub spindle
G87 X___Q___ P___F___
X-axis tapping on the sub spindle
G88 X___F___
Example: Drilling and Tapping on the OD of
a part using Sub Spindle positioning.
Drill (4) Holes, diameter 0.201, located at Z 0.5. Holes equally spaced around a
2 OD. Drill through into the 1.5 diameter bore. Peck depth is 0.125. Clamp the
C-axis during drilling. Tap the (4) holes -20-UN, 0.35 deep from the OD.
Peck Drilling Program
G0G40G80G98
M35
T0707
G97S2500M33
M206
G0Z-.1
X2.15 M8
Z.5
S0M119
M98P1234
S900M119
M98P1234
S1800M119
M98P1234
S2700M119
G0G80 Z-.5
X8.Z4.M35
M1
DRILLING SUB PROGRAM
O1234
M189G98
G87x1.3Q1250F12.5
G80Z-.1
M99
19
Programming Notes
G12.1 activates the polar coordinate interpolation function. In this mode, the
rotary axis C is programmed the same way as if it were a linear axis. Input
of degree-units is no longer valid for the C-axis at this time.
G13.1 cancels the polar coordinate interpolation function, restoring the rotary
axis function back to degree-input.
In G12.1-mode, a coordinate along the horizontal axis X is expressed as a
diameter (twice the actual distance from origin). A coordinate along the
vertical axis C is expressed as the actual, linear distance from origin.
The origin (zero point) of the X-C coordinate system is fixed at the center
point of the rotary axis. The origin cannot be changed.
20
The sketch, above shows two flat surfaces to be milled onto a 1.232 outside
diameter. The flat surfaces start at the front-face (Z0), ending at Z-0.625.
A -diameter end mill is to be used for cutting the flats. Points 1 through 6
describe the tool path. The coordinates X1.950, C0.5339 represent the start point
of the tool path.
Geometry Layout
When preparing a layout for the tool path geometry, it is advisable to start the
tool path on the positive side of the X-axis. The negative side of X as a start
point should be avoided. This is due to the limited travel of the X-axis on the
negative side.
A NC program for polar coordinate interpolation may include negative Xcoordinates. The X-axis will not actually travel to the negative side of X0.
Instead, the part is rotated around.
In the example shown, no cutting is done on the 1.025-arc between points 3
and 4. The arc has been added, so that both flats can be machined in a
continuous path. Since the arc is not actually machined, a high feed rate is
applied going around the arc.
Cutter Compensation / Tool Offset
The sketch, above shows the dimensions for the tool-center path. In theory,
cutter compensation might not be needed, in this case. However, it is
advantageous to apply the cutter compensation function, regardless. Cutter
compensation allows the operator to control the size of the entities machined by
changing the R-value of the tool offset.
21
22
CYLINDRICAL INTERPOLATION
Principle of Operation
The cylindrical interpolation function G7.1 allows circular interpolation between
the Z-axis and a rotary axis. Programming is done using Cartesian coordinates
for the Z-axis and degrees of rotation for the rotary axis. Arc specifications are
given in units of linear measurement. Typical applications for this function include
engraving operation for lettering or for milling of cam shapes on the
circumference of a cylinder.
Layout of the Z-C Coordinate system
The sketch below shows the Z-C coordinate system.
Programming Notes
Plane Select Command: G18
G7.1H < 0 or G7.1 C < 0 activates the cylindrical interpolation function. An Hvalue or a C-value greater than zero specifies the radius of the cylinder to be
machined.
For example: Cylindrical interpolation mode is set by this command:
G1 G18 W0 H0 followed by G7.1 H0.75 in separate block.
23
Arc radius specification. The letter R must be used for arc specifications.
Letters I J or K cannot specify an arc radius in cylindrical interpolation.
C = L / R x 57.29578
C = L / D x 114.59156
24
25
For the sample part at hand the factor for converting linear units into degrees is
calculated as follows: 1 / 2.9 x 114.59156 = 39.514331 per 1 of linear distance
C = L x 39.5143
The table below shows the start-points and end-points for the lettering
Start point of letter J
End point of letter J
Start point of letter R
End point of letter R
X
2.9
2.9
2.9
2.9
Z
- 0.7
-.45
-0.3
-.3
C
0.4 * 39.5143 = 15.806
15.806
-0.1 * 39.5143 = -3.951
-0.4 * 39.5143 = -15.806
26
27
Note:
Travel on the negative side of the X-axis is restricted due to limitation of the Xaxis stroke. The X-axis will let the cutter center travel approximately 2 inches
maximum, radially past the spindle center. However, the interference between
the turret body and the sub spindle body varies, depending on the position of the
Z and B-axis. The safe maximum travel past center is only 0.1 inch, radially.
28
Y- Z Plane Layout
Note:
Part Layout for programming purpose is done, looking at the part from the back
of the cutter, not from the front of the machine. Positioning of the cutter in axial
direction is done by the X-axis. Dimensions specified on diamter.
Notes for Y-axis operation
During manual Zero-return mode the Y-axis first then the X-axis must be
homed, independently in this order.
Reference Return Command for Y-axis: G28 V0, (or G30 V0)
The zero point for the Y axis can be shifted by work offsets G54 through
G59 or by coordinate system setting command G50.
Helical interpolation between Y and Z-axis with the X-axis used for the
axial dimension of the helix is possible when the 3-D Helical
Interpolation Option is available on the system.
30
31
M131
M169
G97 S0 M203
32
M131
Sub Spindle Chuck interlock bypass command
M169
opens the sub spindle chuck
G97 S1000 M203 (M204) Synchronizes spindles at 1000 RPM with
simultaneous acceleration or deceleration.
Synchronized spindle stop command
When both spindles are running in synchronized mode, it is possible to do a
synchronized stop. Both spindles come to a stop, synchronously. The
synchronized spindle stop command is used only when both spindles are
engaged with the work piece.
M205
33
34
Description
Live-Center Support with B-axis ON
G300 Calls program O9010
Program Example:
Attach a suitable work support device to the sub spindle, such as a livecenter. Then insert the following commands into the program:
1. G0 B___ ---Position the B-axis within 0.1 to 0.2, clear of the end of
the work-piece that is to be supported. Synchronize the spindle RPM
for main and sub spindle, if desired.
2. G300 B-200. G300 calls the sub program. The B-command sets
the torque for the B-axis. B-200. Means 20% of the available torque
applied on the B-axis in minus direction. The B-axis now
commences to move in negative direction, pushing the live center
onto the work, applying the specified torque.
3. X__Z__ Start the machining operation with live center in place.
4. G301 --G301 Calls the sub program O901, canceling the torque
control mode. This command is required before positioning the Baxis.
G301
35
Cutoff Confirmation
G-Code
G350
Description
Cutoff confirmation
G350 Calls program O9011
Use the cutoff confirmation command for cutoff operation in combination
with work piece transfer from main to sub spindle only.
Program Example:
Upon separation of the work-piece from the bar stock, retract the cutoff
tool with the X-axis, so that the tool clears the OD of the bar stock. Now,
insert the following commands into the program:
1. G350----Calls the sub program O9012. The B-axis will now attempt
to close the gap that exists between the bar stock and the work
piece, automatically. When the movement of the B-axis is less than
0.04, an alarm occurs, signaling that the work piece has not been
separated from the bar stock. When the movement is greater than
0.04, no alarm will occur.
2. G4 U0.5---A dwell time of 0.5 seconds is required.
3. G0 B___ Positioning command, clearing the sub spindle out of the
way.
36
M5
G0B-3.5
G0X3.M9
G30U0W0
M105
M1
37
#525=#524+17.811
#525=ABS[#525]
IF[#525GT0.005]GOTO205
M168
M8
G1G99X-.01F.002
X2.1F.01
G0X4.
Interlock bypass
Move Z at cutoff position
Clean sub spindle chuck
Start main spindle, move X to part
Move B close to part
CSS & coolant on
Pre-cutoff
Tool release
Fixed spindle rpm
Synchronize spindles
B within 0.1 clear of shoulder
Torque skip on
B to to skip position
Torque skip off
Wait until B quits moving
Set alarm flag at zero
Store the current machine Coordinates
of the B-axis.
Calculate the difference between actual
and theoretical pickup position.
Make it a positive number
Check the tolerance. Skip to N205 if
not in tolerance. If within tolerance, do
next line.
Close the sub chuck
Cutoff all the way
Feed the tool back out (B-axis may
exert pressure onto the tool)
Clear the tool away from stock
38
N206G350(CUTOFF
CONFIRMATION)
G4U.5
GOTO206
N205#100=1
N206G53B0M105
G30U0M9
G30W0M5
IF[#100NE1]GOTO208
#3000=1(PICKUP N0 GOOD)
N208M1
39
End of bar-signal
The bar feeder sends a signal to the NC at the time when there is not enough
material left for the next bar-advance. The bar-end signal operates the BlockSkip Switch / 2 on the NC. This feature allows the NC to distinguish between
normal bar feed out and bar reload operation. When M50 is commanded at the
time the bar-end signal is ON the bar feeder ejects the remnant material first,
then automatically loads a new bar. The bar stopper must not block the front of
the spindle at this time.
Timer Setting (M50/M51 time-out)
Timer T32 in the PMC-Parameters sets the time-out for the M50 & M51 function.
Standard setting is 20 seconds. When the bar feed out or bar reload, time
exceeds the set time an alarm occurs.
Inserting the bar feed command into the machining program
In a bar-machining program, the bar feeding operation is done typically after all
machining operations have been completed. The bar feed command is normally
inserted into the machining program near the bottom.
Bar Feed Sub Program Call
N7000 M98 P7000 (Bar feed sub program call.) Insert this command near the
bottom the machining program.
Bar Reload Sub Program Call
/2M98 P7001 (Bar reload sub program call.) This command is needed only for
applications where a bar-stopper is used or when top cutting is done. Insert this
command into the bar feed sub program O7000.
Program Examples for use with bar feeder
Example 1: Bar Feed Sub Program, for use without bar stopper or without top
cutting.
40
Example 2: Bar Feed Sub Programs, for use with bar stopper, without top cutting.
*Note* Please modify the Z-coordinates and feed rate shown above to suit the
application.
Example 2: Bar Feed Sub Programs, for use with bar stopper, with top cutting.
41
Feature Code:
** M-Codes with same number but different function, or for different machine type
M-Code
M00
M1
M2
M3
M4
M5
M7
M8
M9
M10
M11
M13
M14
M15
M17
M18
**M19
**M19
Description
Program Stop
Optional Stop
Program Reset or Rewind and Reset
Main Spindle Forward
Main Spindle Reverse
Main Spindle Stop
High Pressure Coolant
Flood Coolant On
Coolant Off
Parts Catcher Advance
Parts Catcher Retract
Turret Air Blow
Main Spindle Air Blow ON
Main Spindle Air Blow OFF
Machine Lock ON
Machine Lock OFF
Main Spindle Orientation
360 Spindle Positioning, Spindle Indexing using Scommand, 0.1 increment. G97S1800M119=180
Feature
S
S
S
S
S
S
Option
S
S
Option
Option
Option
B
B
S
S
S
Option
42
M-Code
M20
M21
M22
M24
M25
M26
M27
M28
**M29
**M29
**M29
M30
M31
M33
M34
M35
M36
M37
M38
M39
M40
M41
M42
M43
M44
M46
M47
M48
M49
M50
M51
M52
M53
M54
M55
M56
M57
M58
Description
Feature
43
M-Code
M59
M60
M61
M62
M63
M64
M65
**M66
**M66
M67
M68
M69
M70
M72
M73
M74
M75
M76
M77
M78
M79
M80
M81
M82
M83
M84
M85
M86
M87
M88
**M89
**M89
M90
M91
M92
M93
M94
M98
Description
Feature
Option
S
Y
Y
S
S
S
Option
Option
Option
S
S
Option
S
S
S
S
S
S
S
S
Option
Option
Y
Y
S
S
B
B
C
C
Option
Option
Option
Option
Option
Option
S
44
M-Code
Description
Feature
M99
M103
M104
M105
M108
M109
M110
M111
M114
M116
M117
M118
**M119
**M119
S
B
B
B
B
B
Option
Option
B
B
Option
Option
B
B&C
M120
M125
M131
M135
M163
M164
M165
M166
M167
M168
M169
M188
**M189
**M189
**M190
**M190
**M191
M200
M201
M203
M204
Option
B
B
Y&B
B
B
B
Option
Option
B
B
Y&B
B&C
Y&B
Y&B
B
Y&B
Option
Option
B
B
45
M-Code
M205
M206
M250
Description
Spindle Synchronous Stop
Spindle Rotation Release, Two Spindle Control
Main, Sub or Live Tool Spindle independent speed
command during simultaneous spindle operation.
Service Mode
Allows restricted machine operation for service or
setup purposes while the safety door is open.
Feature
B
B or C
Option
(2004
models
only)
M290
M291
Description
Sets the C-axis clamp M-Code as M89 (normal)
The A-axis clamp M-code is M189
M289 Calls program O9001
Sets the C-axis clamp M-Code as M189
The A-axis clamp M-code is M89
(used when the C-axis is switched from the main spindle to the
sub spindle)
M389 Calls program O9002
Sets the normal rotary axis assignments:
The C-axis is located at the main spindle.
The A-axis is located at the sub spindle.
M290 Calls program O9003
Inverts the rotary axis assignments:
The C-axis is located at the main spindle.
The A-axis is located at the sub spindle.
M291Calls program O9004
46
FIRST COMMAND LINE: G76 P021060 Q05 R10 (see details, below)
P 02 10 60
02
10
60
Q05
R10
SECOND COMMAND LINE: G76 X__ Z__ P__ Q__ R__ F__ (see details,
below)
X =Diameter of the thread. For an external Thread specify the minor diameter.
For an internal Thread - specify the major diameter. In case of taper threads,
specify the diameter at the opposite end from the start point.
Z =End position of the thread.
P =Height of the thread. Calculation: Major diameter minus minor diameter,
divided by 2 (Radius value, without decimal point) See note 2 below.
Q =Depth of the first cut. If P and Q are the same, the thread is cut in a single
pass. (Radius value without decimal point) See note 2, below
R =Taper: Radial height difference of taper slope. Calculate the height
difference for the taper as follows: I =TAN [taper angle per side] times thread
47
F =Lead. Distance between two threads. (1 divided by the pitch), six digits
allowed after the decimal point.
NOTES:
1.)
Upon execution of the G76-cycle all data contained on the first G76-command
line is automatically stored in the parameter tables.
2.)
Specify values for P and Q without a decimal point. For example: 0.0001=1,
0.001=10
0.01=100
0.1=1000
1.0=10000
3.)
Specifying a chamfer (pullout distance) reduces possible damage to the last
thread lead near the Z-end position.
4.)
Both, the direction of spindle rotation (M3 or M4) and the cutting direction (Zminus or Z-plus) distinguish between right-hand and left-hand thread cutting. On
a lathe where the spindle is located to the left of the turret, thread cutting is
normally done from right to left (Z-minus direction). With the spindle rotating in
counter clockwise direction (M3) as viewed when looking at the front of the
chuck, cutting from right to left produces a right-hand thread.
Program
G0 G18G40 G97 G99
T0101
G97 S100 M3 (M4)
M8
G0Z0.125
X1.075
48
Program
G0 G18G40 G97 G99
T0101
G97 S100 M3 (M4)
M8
G0Z0.125
X0.800
Notes: Source for thread dimensions used in the thread cutting cycles shown
above: Machinerys Handbook (Twentieth edition).
49
Fanuc Controls, system 0, 16, 18 and 21 T-series can use this format when the
tape format setting option is available. I this case, please display the SETTING
PAGE, then check the TAPE-F -setting. When TAPE-F is set = 0, the twoline format is valid (see previous page). When it is set = 1, the single-line format
is valid. This setting will affect all G70-series canned cycles, not just the
threading.
Cycle Format: G76 X__ Z__ I__ K__ D__ F__ A__ P__ Q__
=Depth of the first cut (Radius value). When K and D are the same, the
tread is `cut in a single pass.
=Lead: distance between two threads. (1 divided by the pitch), six digits
allowed after the decimal point.
=Tool nose angle or angle between thread flanks. This decides the in-feed
angle for the tool, feeding in at of the input angle. Normally, 60 is used
for standard threads. (Range: 0 to 120 degrees, in 1-degree increments).
When A is omitted it is regarded as 0, straight in-feed is applied.
=Cutting method:
P1=constant chip load, single edge cutting
P2=constant chip load, zigzag in-feed, alternating cutting edges
P3=constant cut depth, single edge cutting
P4=constant cut depth, zigzag in-feed
50
=Spindle rotation shift angle. Data range is from 0 to plus or minus 360000
(360 degrees = 360000, without decimal point) This function is used for
cutting of multiple-Lead threads. For example: in case of a 3-start thread
the shift angle is 120 degrees between each thread. Hence, the first
thread lead is cut, using Q=0, the second at Q=120000 and the third at
Q=240000, where the Z-axis start position remains the same for each
thread.
Example:
Program for cutting a 1-10 UNS -external thread:
G0 G18G40 G97 G99
T0101
G97 S100 M3 (M4)
M8
G0Z0.125
X0.800
G76 X0.875 Z-1.0 K0.0625 D0.025 F0.1 A60 P1 Q0
G0 X___
G0 Z___
M1
D = P/ N
51