587,328 active members*
3,526 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2010
    Posts
    19

    Sample G-Code program

    Does anyone have a sample G-Code program for a T-2 controller? I am not great with programming Mazatrol, but I am pretty good with G-Code programming. I would like to start sending programs to the lathe to make my programming time decrease.

  2. #2
    Join Date
    Jul 2010
    Posts
    369
    I can post you some code for a mazatrol t-32

  3. #3
    Join Date
    Jul 2010
    Posts
    369
    Here is a rough and finish turning cycle on the OD

    %
    O00001 ( PROGRAM NUMBER )
    ( PROGRAM START - TURNING CYCLES )
    ( PROGRAM NAME: CNCZONE.NC)
    ( POST: MAZATROL T32 )
    ( DATE: THU. 12/02/2010)
    ( TIME: 09:11AM)
    N01 G98 G90 G80 G40 G20
    N02 G00 G28 U0. W0.
    (JOB 1 ROUGH CYCLE )
    (TOOL #1 80 DEG. 1/64 ROUGH TURNING )
    N03 G54 G97 S477 T0101 M04
    N04 G50 S400
    N05 G96 S400
    N06 G00 X1.6 Z.3 M08
    N07 X1.3
    N08 G01 Z-3. F.01
    N09 X1.4 F.01
    N10 G00 Z.3
    N11 X1.1
    N12 G01 Z-3. F.01
    N13 X1.2 F.01
    N14 G00 Z.3
    N15 X1.02
    N16 G01 Z-3. F.01
    N17 X1.12 F.01
    N18 G00 X5.
    N19 Z5.
    N20 G40
    N21M09
    N22 G97
    N23 T0100
    N24 M01
    N25M09
    N26 G00 G28 U0. W0.
    (JOB 1 ROUGH CYCLE )
    (TOOL #2 80 DEG. 1/64 FINISH TURNING )
    N27 G54 G97 S746 T0202 M04
    N28 G50 S400
    N29 G96 S400
    N30 G00 X1.6 Z.3 M08
    N31 X1.
    N32 G01 Z0. F.006
    N33 Z-3. F.006
    N34 X1.1 F.006
    N35 G00 X5.
    N36 Z5.
    N37 G40
    N38M09
    N39 G97
    N40 T0200
    N41 M01
    N42 M05
    N43 G28 U0. W0.
    N44 M30
    %

    I can do more operations if you need ...also canned cycles
    Hope this helps, IF not let me know.

  4. #4
    Join Date
    Mar 2010
    Posts
    19

    perfect circle

    i know they are going to ask me for the canned cycles as well. i am trying to get a post processor from Bobcad. So if it isn't a huge undertaking, could you please send me a program with drilling cycle and tapping cycle if you have it. Thanks so much for the help!!

  5. #5
    Join Date
    Jul 2010
    Posts
    369
    Here is the same sample part with canned cycles for a Mazatrol T32

    %
    O00001 ( PROGRAM NUMBER )
    ( PROGRAM START - TURNING CYCLES )
    ( PROGRAM NAME: CNCZONE.NC)
    ( POST: MAZATROL T32 )
    ( DATE: THU. 12/02/2010)
    ( TIME: 01:45PM)
    N01 G98 G90 G80 G40 G20
    N02 G00 G28 U0. W0.
    (JOB 1 ROUGH CYCLE )
    (TOOL #1 80 DEG. 1/64 ROUGH TURNING )
    N03 G54 G97 S509 T0101 M04
    N04 G50 S400
    N05 G96 S400
    N06 G00 X1.5 Z.3 M08
    N07 G71 U.2 R.1
    N08 G71 P09 Q11 U.02 W.01 F.01
    N09 G00 X1.
    N10 G01 Z-3. F.01
    N11 X1.1 F.01
    N12 G40
    N13M09
    N14 G97
    N15 T0100
    N16 M01
    N17 G00 X5. Z.3
    N18 Z5.
    N19M09
    N20 G00 G28 U0. W0.
    (JOB 1 ROUGH CYCLE )
    (TOOL #2 80 DEG. 1/64 FINISH TURNING )
    N21 G54 G97 S509 T0202 M04
    N22 G50 S400
    N23 G96 S400
    N24 G00 X1.5 Z.3 M08
    N25 G28 U0. W0.
    (TOOL #2 80 DEG. 1/64 FINISH TURNING )
    N26 G54 G97 S795 T0202 M04
    N27 G50 S400
    N28 X1. Z.3 M08
    N29 G96 S625
    N30 G70 P09 Q11 F.006
    N31 G40
    N32M09
    N33 G97
    N34 T0200
    N35 M01
    N36 G00 X5.
    N37 Z5.
    N38 M05
    N39 G28 U0. W0.
    N40 M30
    %

    Ill work on getting the others asap...ehh and good luck with BobCad ....

  6. #6
    Join Date
    Jul 2010
    Posts
    369
    Here is a 1.00 hole and a threaded OD of 2"-12 tpi..
    Good luck with building your post. If I can help you any more just let me know.

    %
    O00001 ( PROGRAM NUMBER )
    ( PROGRAM START - TURNING CYCLES )
    ( PROGRAM NAME: CNCZONE.NC)
    ( POST: MAZATROL T32 )
    ( DATE: THU. 12/02/2010)
    ( TIME: 01:53PM)
    N01 G98 G90 G80 G40 G20
    N02 G00 G28 U0. W0.
    (JOB 1 DRILLING CYCLE )
    (TOOL #7 1.000 dia )
    N03 G54 G97 T0707 M04
    N04 G50 S400
    N05 G97 S400
    N06 G00 X0. Z.1 M08
    N07 G74 R.1
    N08 G74 X0. Z-3. I0. K.2 R0. F.01
    N09M09
    N10 G97
    N11 T0700
    N12 M01
    N13 G00 Z5.
    N14 X5.
    N15M09
    N16 G00 G28 U0. W0.
    (JOB 2 THREAD CYCLE )
    (TOOL #4 60 DEG. 1/8 0.003 RADTHREADING )
    N17 G54 G97 T0404 M04
    N18 G50 S400
    N19 G97 S400
    N20 G00 X1.05 Z0. M08
    N21 G01 X1. F.0833
    N22 G76 Q030060 U.03 R.001
    N23 G76 X.9278 Z-3. K0721 D0500 F.083333
    N24 G00 X5.
    N25 Z5.
    N26 G40
    N27M09
    N28 G97
    N29 T0400
    N30 M01
    N31 M05
    N32 G28 U0. W0.
    N33 M30
    %

  7. #7
    Join Date
    Mar 2010
    Posts
    19
    Thank you Perfect circle for the programs. I am going to try and send these to the Mazak and see if it works and then see if BobCAD can get me a post processor.

Similar Threads

  1. Bridgeport EZVision G-code - need sample program
    By lamebridge in forum EdgeCam
    Replies: 3
    Last Post: 09-26-2018, 06:24 PM
  2. Sample Nisshinbo g-code program
    By ehab in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 3
    Last Post: 05-17-2017, 10:59 AM
  3. sample g code program for hitachit 48v fanuc 6mb
    By beekeeper in forum G-Code Programing
    Replies: 5
    Last Post: 08-12-2010, 04:58 PM
  4. G-code sample program wanted
    By blades in forum Mini Lathe
    Replies: 2
    Last Post: 06-22-2010, 01:20 AM
  5. I need sample G code program
    By bunalmis in forum G-Code Programing
    Replies: 1
    Last Post: 08-24-2004, 09:50 AM

Posting Permissions

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