587,603 active members*
4,047 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    2

    c-axis indexing in g-code

    Running a MAZAK SQT15A w/Mazatrol T32-3 controller

    We have a milling program that will work but ignores C commands so we can’t make the spindle index 45 deg. and repeat the mill.

    It’s got to be something real easy that we are missing.


    M200
    M203 S200
    G00 C0.0
    G12.1
    G00 X1.3 Z0.02
    G01 X1.2 F1
    G00 X1.3
    G01 C45 F2
    Etc…

    An example program or input would be helpful.

    Thanks,

  2. #2
    Join Date
    Aug 2008
    Posts
    17
    it looks like your just plunging and indexing then plunging again? You could use a G87 cycle (i believe) and index your C axis that way (unless ur holes are changing depths and positions). Ive always used M210 to clamp the axis before i drill the hole and M211 to unclamp afterwards before i index (dont hold me to those M-codes its been a long time since ive done any milling on my qt-450). What is G12.1 ive seen it but never used it, you could try leaving it out because ive done the type of operation your wanting to do several times and never used it. I could be totally wrong but if memory serves me right G12.1 is either polar or cylindrical interpolation and those are not needed to just index for hole popping.

    try

    M200
    M203 S200
    G00 C0.0
    X1.3 Z0.02
    M210 (c axis clamp)
    G01 X1.2 F1
    M211 (c axis unclamp be sure to check the book it could be M212)
    G00 X1.3
    C45 (index C at full rapid)

    Like i said be sure to check the book on all of that its been a long time since ive done any live tooling work on my lathe. Let me know if that doesnt work and i will check it all out tomorrow when i get to work and get you the correct code.

  3. #3
    Join Date
    Aug 2008
    Posts
    2
    Thanks straggleweed,
    Your last line was a key, the c-axis has to be a G00.

    The index and milling will work if kept separate. These are the notes I made for myself, others may find them useful.

    C-AXIS INDEX

    M200/201 (STARTS INDEX)
    G28 C0.0 (ORIENT C O.O)
    M210 (CLAMPS C SPINDLE)
    G00 C--.- (MOVE)
    M212 (UNCLAMP SPINDLE)
    M202 (CANCEL INDEX)

    MILLING

    G12.1 (STARTS MILLING)
    M203 S--- (MILL FORWARD, SPEED)
    G00 X- Z-
    G01 X- Z- F-
    G00 X- Z-
    G13.1 (CANCEL MILLING)


    Now I need to combine them and make a cam lobe on the other side of the part. Any suggestions?

  4. #4
    Join Date
    Feb 2006
    Posts
    992
    Missing a decimal....... that's y it's not index.
    The best way to learn is trial error.

Similar Threads

  1. G Code REQUEST -- 4, 5, 6 Axis
    By High Seas in forum G-Code Programing
    Replies: 7
    Last Post: 09-02-2020, 06:10 PM
  2. G code help C-X axis
    By slkret in forum G-Code Programing
    Replies: 1
    Last Post: 05-10-2008, 02:53 PM
  3. zero axis key code?
    By drafterman in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 03-06-2008, 03:18 PM
  4. 4 axis indexing
    By camtd in forum PTC Pro/Manufacture
    Replies: 1
    Last Post: 05-12-2006, 01:20 PM
  5. Z-Axis Arc G-Code?
    By GTmike400 in forum G-Code Programing
    Replies: 16
    Last Post: 01-27-2006, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •