gcode not being generated properly

142 views
Skip to first unread message

joe M

unread,
Aug 23, 2012, 1:08:15 PM8/23/12
to heeksca...@googlegroups.com, Dan Heeks, d...@heeks.net, Brad Collette
Hello,

This is the python script for my pocketing operation:

# coding=UTF8
# No troubled Microsoft Windows detected
import sys
sys.path.insert(0,'/usr/lib/heekscnc/')
import math
import area
area.set_units(25.4)
import area_funcs
import nc.drag_knife

from nc.nc import *
import nc.emc2b

output('snsr_usb_receptacle_inner_edge.tap')
program_begin(123, 'Test program')
absolute()
imperial()
set_plane(0)

comment('Feeds and Speeds set for machining Please select a material
to machine')
#(0.117323 inch Carbide Slot Cutter)
tool_defn( id=1, name='0.117323 inch Carbide Slot Cutter',
radius=0.05866141732, length=0.5905511811, gradient=-0.1)
#(0.235433 inch Carbide Slot Cutter)
tool_defn( id=2, name='0.235433 inch Carbide Slot Cutter',
radius=0.1177165354, length=2.5, gradient=-0.1)
#(0.15748 inch Carbide Drill Bit)
tool_defn( id=3, name='0.15748 inch Carbide Drill Bit',
radius=0.07874015748, length=2.5, gradient=0)
#(0.786614 inch Carbide Slot Cutter)
tool_defn( id=4, name='0.786614 inch Carbide Slot Cutter',
radius=0.3933070866, length=2.5, gradient=-0.1)
#(0.629134 inch Carbide Slot Cutter)
tool_defn( id=5, name='0.629134 inch Carbide Slot Cutter',
radius=0.3145669291, length=2.5, gradient=-0.1)
#(1/8 in Carbide Square End Mill)
tool_defn( id=6, name='1/8 in Carbide Square End Mill', radius=0.0625,
length=None, gradient=-0.1)
#(5/64 in Carbide Square End Mill)
tool_defn( id=7, name='5/64 in Carbide Square End Mill',
radius=0.03906299213, length=0.3906299213, gradient=-0.1)
#(1/32 in Carbide Square End Mill)
tool_defn( id=8, name='1/32 in Carbide Square End Mill',
radius=0.01562598425, length=0.1562598425, gradient=-0.1)
#(#9 Carbide Drill Bit)
tool_defn( id=9, name='#9 Carbide Drill Bit', radius=0.09799212598,
length=2.5, gradient=0)
#(Dremel 461 1/8 in Cutter)
tool_defn( id=10, name='Dremel 461 1/8 in Cutter', radius=0.0625,
length=None, gradient=-0.1)
#(0.23622 inch Carbide Ball End Mill)
tool_defn( id=11, name='0.23622 inch Carbide Ball End Mill',
radius=0.1181102362, length=2.5, gradient=-0.1)
#(21 degreee Engraving Bit)
tool_defn( id=12, name='21 degreee Engraving Bit',
radius=0.05905511811, length=2.5, gradient=0)
#(1 Drag Knife)
tool_defn( id=13, name='1 Drag Knife', radius=None, length=None, gradient=0)
#(0.11811 inch Carbide Slot Cutter)
tool_defn( id=14, name='0.11811 inch Carbide Slot Cutter',
radius=0.05905511811, length=0.5905511811, gradient=-0.1)
#(0.23622 inch Carbide Slot Cutter)
tool_defn( id=15, name='0.23622 inch Carbide Slot Cutter',
radius=0.1181102362, length=2.5, gradient=-0.1)
comment('tool change to 1/32 inch Carbide End Mill')
tool_change( id=8)
spindle(10000)
feedrate_hv(6, 3)
flush_nc()
clearance = float(0.3)
rapid_safety_space = float(0.1)
start_depth = float(0)
step_down = float(0.01)
final_depth = float(-0.03)
tool_diameter = float(0.0312519685)
cutting_edge_angle = float(0)
#absolute() mode
program_end()


The gcode generated:

(Created with emc2b post processor 2012/08/23 13:05)
(Feeds and Speeds set for machining Please select a material to machine)
(tool change to 1/32 inch Carbide End Mill)
T8 M06 G43
G17 G90 G20
T0 M06 M02

I seem to be missing something here. There should be more gcode here.
Correct? is this a bug?

Thanks
Joe
Reply all
Reply to author
Forward
0 new messages