How to create simple tool changing script without homing machine?

  • Jur4S
  • Topic Author
  • New Member
  • New Member
More
2 years 8 months ago #293790 by Jur4S
Hi. I was looking for some tool-changing process on the internet but found out everyone using tool sensors in fixed places with machine homing. My router doesn't have a homing sequence and I'm doing it manually just simply go to my workpiece 0 0 0 with the keyboard and it works perfectly. I have a simple touch plate and want to use it like this. Placing it anywhere on the table going there with the keyboard. The tool touches the plate let's say Z-5.5 I'm going up taking the new tool touching the plate again and my machine changes Z to -5.5 with a new tool in moment of touch. Is it even possible in a simple way? Before i was doing it like this. Tool 1 -5 on plate tool 2 -11 on plate so i go Z6 and then zero Z. Has anyone done this sort of thing before? Or is there an easy way to do it and I'm just doing overthinking

Please Log in to join the conversation.

More
2 years 8 months ago #293793 by tommylight

Please Log in to join the conversation.

  • Jur4S
  • Topic Author
  • New Member
  • New Member
More
2 years 8 months ago #293800 by Jur4S
Okay so i understand procedure now but how to add a button to axis gui with this procedure? I create button with pyvcp but how to connect gcdoe to it? Just paste it to .ngc and then what?

Please Log in to join the conversation.

More
2 years 8 months ago #293801 by tommylight
linuxcnc.org/docs/html/gui/pyvcp.html
It should be somewhere there how to make a button that should do it.

Please Log in to join the conversation.

  • Jur4S
  • Topic Author
  • New Member
  • New Member
More
2 years 8 months ago #293847 by Jur4S
Okay I have already managed to make the button now I will try with the tool change procedure. Should anyone need it in the future because I have the impression that it is very hard to find such information.  First I had to add PYCVP and custompanel.xml in .ini and SOUBROUTINE_PATH =./path and in [HALUI] MDI_COMMAND = o<exchange> call
then connect button halpin from .xml in postgui.hal 
net remote-exchange halui.mdi-command-00 <= pyvcp.toolchange
Finally, in the exchange.ngc file I had to add o<exchange>sub and o<exchange> endsub at the end of the
 

Please Log in to join the conversation.

More
2 years 8 months ago #293882 by Adanoley

Please Log in to join the conversation.

  • Jur4S
  • Topic Author
  • New Member
  • New Member
More
2 years 8 months ago #293886 by Jur4S
Today was struggling with M100 but by tomorow i should have working procedure to click to mesure> popup to chagne tool> mesure again> back to work. Just give me some time and i will post it here.

Please Log in to join the conversation.

  • Jur4S
  • Topic Author
  • New Member
  • New Member
More
2 years 8 months ago #294020 by Jur4S
Okay, I knew it. I was totally overthinking. I simply do G38.3 to the sensor. set it as Z home do touch up on my stock zero and after changing the bit again G38.3 and Z home. Can I somehow home G53 from MDI to use it in macro or clicking on axis gui is the only way?

Please Log in to join the conversation.

More
2 years 8 months ago #294035 by polobear189
Lot of useful info in this video


Andy

Please Log in to join the conversation.

More
2 years 7 months ago #294830 by tommylight

Please Log in to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum