111
Mach4 General Discussion / Re: Add a laser to my CNC
« on: December 19, 2015, 10:06:55 PM »
They have a newer version http://3dsupplysource.com/L-CheapoV3
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ok updated to set z axis on probe touchCode: [Select]local ToolSetter = 15.7 -- change to your toolsetter height
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-15 F40") -- change feedrate and depth to suit
mc.mcCntlGcodeExecuteWait(0,"G91 Z2 F40") -- change feedrate and retract to suit
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-3 F10") -- change feedrate to suit
mc.mcAxisSetPos(0, mc.Z_AXIS, ToolSetter) -- set dro to height of toolsetter
mc.mcCntlGcodeExecuteWait(0,"G91 Z5 F40") -- change feedrate and retract to suit, use this Z rectract value for line 7
wx.wxMessageBox("Remove ToolSetter") -- remove if needed
mc.mcCntlGcodeExecuteWait(0,"G90 Z0 F50") -- move tool to zero, change feedrate to suit
Daz