Hello Guest it is November 14, 2019, 11:18:13 AM

Author Topic: Use probing for tool zeroing  (Read 10456 times)

0 Members and 1 Guest are viewing this topic.

Re: Use probing for tool zeroing
« Reply #30 on: December 04, 2015, 07:56:40 PM »
ok thankyou for your time in replying.

dtg


No problem.

Offline Tweakie.CNC

*
  • *
  •  7,989 7,989
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Use probing for tool zeroing
« Reply #31 on: December 05, 2015, 01:42:57 AM »
 :)

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Use probing for tool zeroing
« Reply #32 on: December 05, 2015, 01:45:33 AM »
to funny

Offline Pedio

*
  •  200 200
    • View Profile
Re: Use probing for tool zeroing
« Reply #33 on: December 13, 2015, 03:31:33 PM »
ok updated to set z axis on probe touch

Code: [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

Daz - Works Great for me. THANKS - this makes my life better!!!

Offline Bronk

*
  •  10 10
    • View Profile
Re: Use probing for tool zeroing
« Reply #34 on: January 09, 2016, 07:27:22 PM »
Thank you. This works great.
This was my first time screen editing and adding scripting. On button added to the tool panel, convert the measurement values from mm to inches and I was off and running.
Huge time saver. 

Offline HoY

*
  •  17 17
    • View Profile
Re: Use probing for tool zeroing
« Reply #35 on: March 07, 2017, 06:21:45 PM »
After spending quite a bit of time wondering what I was doing wrong, and changing values over and over again, I noticed that G90 would have my Z axis go down while G91 only let it go up, even when the called for Z command was up. I don't know what the difference is between G90 and G91, but when I changed the two downward probing commands to G90, and everything that is supposed to be Z up left at G91 the script started working properly for me. I imagine it's completely my fault I had to do this. Probably something to do with my Z axis motor mounted upside down and being pulley driven, and axis reversed when mapped.. Anyway, got it working, finally!