G12.1 Converts C axis degrees and X axis movement to work like a milling machine

  1. Home
  2. Knowledge Base
  3. Programming
  4. G Codes
  5. G12.1 Converts C axis degrees and X axis movement to work like a milling machine
  1. Home
  2. Knowledge Base
  3. Programming
  4. G12.1 Converts C axis degrees and X axis movement to work like a milling machine
  1. Home
  2. Knowledge Base
  3. TCM S Machine
  4. G12.1 Converts C axis degrees and X axis movement to work like a milling machine

G12.1- (option)Converts C axis degrees and X axis movement to work like
a milling machine. Program X-C axis and the control converts all the
commands to degrees automatically. Program X in diameter and C in radius
values. zero is at the center of the part, like a milling machine.
Tool nose rad comp is also needed to use G12.1 correctly. Thinking
about the direction for G2/G3 and G41/G42 is backwards! You have to
imagine you are back behind the guide bushing looking to the cutter.
If you can’t do this, then just do everything opposite!

Notes:
1. X values must be doubled because X is in Diameter. C values in Radius.
2. G40 must be in effect before G12.1 and G13.1. (engage Cutter comp
after G12.1 and disengage before G13.1)
3. Only G codes allowed are G1,G2,G3,G4,G40,G41,G42,G65,G66,G67,G98,G99
4. The Virtual axis(C) is at Zero(C0.0) when G12.1 is read.
5. If the cutter centerline is close to X0 or is commanded to pass near
zero, the C axis tries to accelerate as it passess near X zero.
This may cause a c axis alarm as the C travels faster than the
value in Param 1422 for the C (36000). Slow feedrate during this
move to avoid the alarm.
6. CHECK PARAMETER 1022=6 (NOT 5)

(MILL A .1 SQUARE on the Main)

M231 M231
T2222M50(Live .0625 EM .0312″ in Main Radius offset, 0 in TIP)
G28H0M103S5000
G98G0X.5Z[.5118+.14]C0(Z depth)
M83
M502 M502
G0Z1.
G98G1Z0F20.(Z2 to zero)
M503 M503
G12.1(Sets C axis to C0.0)
G1G41x.3F1.(Climb cut, C axis CCW)
X.1
C.05F.5(Climb cut, C-.1 conventional cut)
X-.1
C-.05(Climb cut, C.1 conventional cut)
X.1
C0
G40X.5F1.(C axis reverses direction while cancel comp. must be off part)
G13.1
M230 M230
G0Z9.0551
Note:
1. In above Program C axis turns CCW for Climb cut on EM.

NOTE, IN THE FOLLOWING PROGRAM
1. C-AXIS ROTATES CCW CAUSING TOOLS TO CLIMB CUT
2. T22 AND T23 OFFSETS ARE INPUTED IN THE SUB SIDE
3. NO PLANE SELECT REQUIRED

T2222
M231 M231
T2222M50(.125 DRAFTED EM)
G28H0M104S4000
G98X.6Z[.669+.15]C0M83(Z.669=Z2 MACHINE 0)
M502 M502
M503 G98Z1.
G12.1 G1Z0F50.
G1G42X.326F4.(OD CUT .326 X .156) M503
C.015
G3X.2C.078R.063
G1X-.2
G3X-.326C.015R.063
G1C-.015
G3X-.2C-.078R.063
G1X.2
G3X.326C-.015R.063
G1C.05
G40X.6F10.
G13.1
G0Z.2T0

T2121(1/32 CR EM
G28H0M103S4000
M83
G98X.75
Z[.669+.066]C0
M505 M505
M506
G12.1 T2121
G1G42X.326F4. G1Z0F50.
C.015 M506
G3X.2C.078R.063
G1X-.2
G3X-.326C.015R.063
G1C-.015
G3X-.2C-.078R.063
G1X.2
G3X.326C-.015R.063
G1C.05
G40X.75F10.
G13.1
M230 M230
G0Z9.0551T0

This program mills a .400 square with a .01 Radius and .1 Radius)

T3434M50(.25 Endimill .125R in Offset 34)
G28H0M124S4000
G0G98X-1.25Z-.02C0M71
G12.1
G1G41X-.4C0F4.(CLIMB CUT)
C.18
G2C.2X-.39R.01
G1X.4
C-.15
G2C-.2X.3R.1
G1X-.4
C0
G1G40X-1.3F10.
G13.1
M125
M51
G0Z.1
G28W0

Was this article helpful?

Related Articles