Welcome! Log In Create A New Profile

Advanced

pcb-gcode produced drill file on EMC/Linuxcnc

Posted by de 
de
pcb-gcode produced drill file on EMC/Linuxcnc
June 25, 2012 10:00AM
I am having issues with the drill sizes and tool loads that pcb-gcode produces. The tools in my ULP drill file do not match the tools in my cnc drill file. I posted on the EMC/Linuxcnc forum:
Hi. I changed to the new linuxcnc2.5 from EMC2 just this weekend. I never had an issue with the old EMC setup.
My problem is this:
I use pcb-gcode to get my etch and drill g-code. I have setup the tool table in that ULP to match my drill bits. The output is acceptable.
I have formatted the tool table in linuxcnc to look exactly like my tool table in my ULP (which spits out the g-code i need)
problem is that when axis prompts me to change to tool 1(or any tool), tool 1 (or any tool) in axis is not tool 1 from the gcode. Is there some way I am not configuring it correctly?
I have seen where someone maybe cleared out the axis tool.tbl and just used the gcode. Is the output gcode from pcb-gcode ULP accepted by axis or am i thinking about this all wrong?
I would just like to be able to have axis tell me change to tool 1, then change to tool 4, then change to tool 8 (or whatever tools is required).
Any suggestions?
Can I provide any more info to make my explanation more clear?

I asked in the EMC/Linuxcnc forum but evidently it is an issue with the way pcb-gcode calls the tools and tool change.
Example ULP drill file:
(This file generated 2/8/09 5:08 PM)
( Tool|       Size       |  Min Sub |  Max Sub |   Count )
( T01  0.600mm 0.0236in 0.0000in 0.0000in )
( T02  0.813mm 0.0320in 0.0000in 0.0000in )
( T03  1.118mm 0.0440in 0.0000in 0.0000in )
( T04  1.194mm 0.0470in 0.0000in 0.0000in )
( T05  2.800mm 0.1102in 0.0000in 0.0000in )
G20
(Absolute Coordinates)
G90
M05
G00 Z0.0000 
G00 X0.0000 Y0.0000 
M06 T01  ; 0.0236 
G00 Z0.1000 
M03
G04 P3.000000
G00 X-1.6400 Y1.2700 
G01 Z-0.0320 F10.00
snip ... to next tool:
M05
G00 Z0.0000 
G00 X0.0000 Y0.0000 
M06 T02  ; 0.0320 
G00 Z0.1000 
M03
G04 P3.000000
G00 X-0.5600 Y0.9100 
G01 Z-0.0320 F10.00 
G00 Z0.1000
The response I got:
Your not loading the tool offset with G43. My typical tool load line is:

T1 M6 G43

linuxcnc.org/docs/html/gcode/gcode.html#...a_id_sec_g43_g43_1_a

Sorry for the long ass post but but this is killing me. I didnt have the issue with EMC2.3 or whatever so I know that there is a way to make it work. Do I need to manually chagne the g-code in my drill files? If it's a formating issue (g-code instructions) is there a way to manipulate the source or a prepend somewhere where I can tell the ULP to output code for linuxcnc to understand and use?



Edited 1 time(s). Last edit at 06/25/2012 11:01AM by de.
Sorry, only registered users may post in this forum.

Click here to login