C Axis Programming
Originally Posted by
pinguS
Hello
Does anyone have a sample bit of code with I can check a C axis on my machine. This is Fanuc 18T controlled and when I purchased it, I was informed it had C axis control. It also came with some live tooling.
So the kind of thing I want to test is turning the axis to certain degree points and also being able to turn the spindle while lets say using an end mill on the live tooling.
Any sort of code will do, I'm just having trouble actually turning the spindle with B/C coding, which I have seen done on the machine before I bought it.
pinguS
Fanuc has a few ways of programming for a "C" axis. More than likely there is a specific "M" code to Lock an Unlock the spindle before and after Indexing. M70 Sets Indexing Mode M71 Resets spindle for regular use, M100000 range in .0001 of a degree indexing (ex. M10900=90 degrees), and M113 Live Tool CW Rotation, M114 CCW Rotation, M115 Stop. These may not be for your machine, but are used on a Tsugami Swiss.
One question is your "C" Axis in the Main Spindle or a Sub-Spindle?
Here is an example of the Tsugami Program that has 90 degree Slots
%
O4130
(SEAT BALL SOCKET REV.5)
M8
S1000 M3
G0 G40 G99 Y1.5 T0 M11
G110 T0
G100 C6.6>>> C Axis here is the Sub-Spindle like a Z Axis Stroke(Home Position)
G300 Z1.5
M10
G50 Z-.01
G0 X1.5 Z-.03 T0 M18
M1
N1(FACE)
T505 S6500 M13
G0 X.4 Z0
G1 X-.008 F.001
G0 X.4 Z-.01
X1.5 T0
N2(SPOT DRILL 3/8 DIA.HSS)
T1111 S1500 M13
G0 Z-.02
Y0
G1 W.15 F.0008
G4 U1.0
G0 Z-.05
Y1.5 T0
N3(DRILL 1/8 DIA. 135SPT COB STUB)
T1212 S1500 M13
G0 Z-.02
Y0
G1 Z.336 F.0015
G4 U.05
G0 Z-.05
Y1.5 T0
N4(BORE .11 DIA. TRUE MADE COATED)
(.004 TNR HONED FOR FINISH SF)
T1313 S2000 M13
G0 Y.6 Z-.05
G1 Y.339 Z-.015 F.005
Y.127 Z.091 F.00025
Z.285 F.0005
Y.125
G0 Z-.05
Y1.5 T0
N5(FACE/TURN)
T051505 S6500 M13
G0 X.4 Z0
G1 X.275 F.0008
X.3285 F.0015
X.3385 Z.005 F.0003
U-.0004 Z.425 F.0005
X.35 Z.4462 F.0003
G0 X1.5 T0
N6(R-GROOVE .058W THINBIT)
T140614 S2000 M13
G0 Y.4 Z.3142
G1 Y.24 F.0005
Y.349 F.01
G0 Z.308
G1 Y.24 F.0005
Y.349 F.01
G0 Z.32
G1 Y.24 F.0005
Y.35 F.01
G0 Y1.5 T0
N7(F-GROOVE .069W ROBINSON)
T150615 S6000 M14
G0 Y.349 Z.304
G4 U.05
G1Y.329 Z.314 F.0003
Y.219
Z.325
Y.329
Y.349 Z.335 F.0003
G0 Y1.5 T0 M5
/N8(SLOT SAW 1.25 DIA. .02 WIDE 36T)
/(OFFSET LIVE TOOL POST .25 W/PLATE)
/T011501 M8
/G50 A0
/A.9
/M70>>>SETS MAIN SPINDLE TO LOCK AFTER AND UNLOCK BEFORE INDEXING
/M117 (750 RPM)
/M114 (CCW)
/M10000 (0 DEGREES)
/G0 X.75 Z-.05
/X0
/G98 G1 Z.26 F15.0
/G4 U.05
/G1 A-.4 F3.5
/Z-.05 F25.0
/M10900 (90 DEGREES)
/G0 A.8
/G1 Z.26 F15.0
/G4 U.05
/G1 A-.4 F3.5
/Z-.05 F25.0
/G99 X.75 M115
G0 X1.5 T0 M71>>>>>>RESETS FOR REGULAR SPINDLE USE
N12(CUT-OFF .06 WIDE)
T061506 S3500 M13
G0 Z.4
X.4
G1 X.2 F.0005
X.349 F.003
Z.39
X.329 Z.4 F.0003
X-.035 M17
M18
M95
/M98 P9800
M96
M97
M30
%
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
www.refractotech.com