585,902 active members*
5,130 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009
    Posts
    4

    PLease help - gcode newbie

    I have joined 2 gcode programs together, both run seperately okay, I have the pause and tool change in the middle of the gcode T0202 see below

    The 1st programs runs and takes 2 mill off diameter, it then pauses I change the tool to start click cycle start to continue. but when the tool starts up it goes right through and does not start at bar

    can someone please look at the gcode for me and see if I have missed something, i am using a connect 121 lathe with mach3 turn

    S600
    G18 G40 G49 G90 G94 G80
    M3
    G04 P6
    G0 X2.005 Z0.3
    F20
    G0 X1.385
    G1 Z-2.99
    G0 X1.985 Z-2.7
    G0 Z0.3
    G0 X1.365
    G1 Z-2.99
    G0 X1.965 Z-2.7
    G0 Z0.3
    G0 X1.345
    G1 Z-2.99
    G0 X1.945 Z-2.7
    G0 Z0.3
    G0 X1.325
    G1 Z-2.99
    G0 X1.925 Z-2.7
    G0 Z0.3
    G0 X1.32
    G0 Z0.3
    G1 Z-2.99
    G1 X2.005
    G0 Z0.3
    F5
    G0 X1.3
    G1 Z-3
    G1 X2.005
    G0 Z0.3
    G30
    M6
    T0202
    S600
    G18 G40 G49 G90 G94 G80
    M3
    G04 P3
    G00 X1.707
    G00 Z-0.69
    F5
    G00 Z-0.69
    G00 X1.707
    G01 X1.287
    G00 X1.707
    G00 Z-0.51
    G00 X1.707
    G01 X1.287
    G00 X1.707
    G00 Z-0.69
    G00 X1.687
    G01 X1.267
    G00 X1.687
    G00 Z-0.51
    G00 X1.687
    G01 X1.267
    G00 X1.707
    G00 Z-0.69
    G00 X1.667
    G01 X1.247
    G00 X1.667
    G00 Z-0.51
    G00 X1.667
    G01 X1.247
    G00 X1.707
    G00 Z-0.69
    G00 X1.647
    G01 X1.227
    G00 X1.647
    G00 Z-0.51
    G00 X1.647
    G01 X1.227
    G00 X1.707
    G00 Z-0.69
    G00 X1.627
    G01 X1.207
    G00 X1.627
    G00 Z-0.51
    G00 X1.627
    G01 X1.207
    G00 X1.707
    G00 Z-0.69
    G00 X1.607
    G01 X1.187
    G00 X1.607
    G00 Z-0.51
    G00 X1.607
    G01 X1.187
    G00 X1.707
    G00 Z-0.69
    G00 X1.587
    G01 X1.167
    G00 X1.587
    G00 Z-0.51
    G00 X1.587
    G01 X1.167
    G00 X1.707
    G00 Z-0.69
    G00 X1.567
    G01 X1.147
    G00 X1.567
    G00 Z-0.51
    G00 X1.567
    G01 X1.147
    G00 X1.707
    G00 Z-0.69
    G00 X1.547
    G01 X1.127
    G00 X1.547
    G00 Z-0.51
    G00 X1.547
    G01 X1.127
    G00 X1.707
    G00 Z-0.69
    G00 X1.527
    G01 X1.107
    G00 X1.527
    G00 Z-0.51
    G00 X1.527
    G01 X1.107
    G00 X1.707
    G00 Z-0.69
    G00 X1.507
    G01 X1.087
    G00 X1.507
    G00 Z-0.51
    G00 X1.507
    G01 X1.087
    G00 X1.707
    G00 Z-0.69
    G00 X1.487
    G01 X1.077
    G00 X1.487
    G00 Z-0.51
    G00 X1.487
    G01 X1.077
    G00 X1.707
    F5
    G00 Z-0.5
    G01 X1.057
    G01 Z-0.7
    G01 X1.707
    G30
    M5

    thanks in advance
    scotty

  2. #2
    Join Date
    Aug 2009
    Posts
    684
    Hi,

    Not experienced on lathes. Are you saying that tool 2 is moving to the wrong position? "...right through and does not start at the bar..."

    If so, I notice that you have G40 and G49 after the T0202 - don't those codes cancel cutter compensation (as they do on a mill)? This would put your tool in the wrong position.

    (Tool 1 may be working correctly, if you have left its offsets as zero and set your origin using Tool 1 as a reference tool.)

    DP

Similar Threads

  1. Newbie Q: (Mach/Gcode/Tormach?) display vars?
    By rc33 in forum Tormach Personal CNC Mill
    Replies: 10
    Last Post: 11-18-2008, 10:16 PM
  2. Help with gcode
    By sunlight in forum Mach Mill
    Replies: 5
    Last Post: 11-13-2007, 01:49 AM
  3. Replies: 0
    Last Post: 03-10-2005, 07:46 PM
  4. GCode
    By rogerbureau in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 02-07-2005, 02:36 PM
  5. gcode to gcode converter
    By july_favre in forum Uncategorised CAM Discussion
    Replies: 4
    Last Post: 05-25-2004, 12:51 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
  •