Author Topic: PLease help - gcode newbie  (Read 2291 times)

0 Members and 1 Guest are viewing this topic.

Offline ikonos

  • Active Member
  • Posts: 8
    • View Profile
PLease help - gcode newbie
« on: March 06, 2010, 09:45:53 AM »
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

Offline Graham Waterworth

  • Administrator
  • *
  • Posts: 1,845
  • West Yorkshire, England
    • View Profile
    • Autovalues Engineering
Re: PLease help - gcode newbie
« Reply #1 on: March 06, 2010, 05:00:36 PM »
but when the tool starts up it goes right through and does not start at bar

Not sure what this means, explain and we may be able to help.

Graham
G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England

Offline ikonos

  • Active Member
  • Posts: 8
    • View Profile
Re: PLease help - gcode newbie
« Reply #2 on: March 06, 2010, 06:17:08 PM »
HI Graham, what I am saying is that, tool 1 (master) does the cut no bother, moves along z axis while jogging and turning the stock and completes, once tool one is finished it returns  back to the home position, asks for a tool change, we then change to tool 2, and hit cycle start expecting the tools offsets to be loaded automatically to compensate for the larger tool; but it does not seem to be doing this, however we have been selecting t0202, we are new to mach3, and cnc, we were wondering if we have selected the wear offsets in our tool table which are currently zero. Should it be T0201. 

Offline Graham Waterworth

  • Administrator
  • *
  • Posts: 1,845
  • West Yorkshire, England
    • View Profile
    • Autovalues Engineering
Re: PLease help - gcode newbie
« Reply #3 on: March 07, 2010, 08:17:35 AM »
Hi Scotty,

T0202 is correct for tool 2, try taking the M6 out of the program as lathe dose not need them also remove the second G18 G40 G49 .... line as G49 cancels tool offsets.

Graham


G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England