- LinuxCNC
- General LinuxCNC Questions
- How to create simple tool changing script without homing machine?
How to create simple tool changing script without homing machine?
- Jur4S
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
19 Feb 2024 21:10 #293790
by Jur4S
How to create simple tool changing script without homing machine? was created 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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19454
- Thank you received: 6520
19 Feb 2024 21:22 #293793
by tommylight
Replied by tommylight on topic How to create simple tool changing script without homing machine?
Should be possible, have a look here
linuxcnc.org/docs/html/gcode/g-code.html#gcode:g38
linuxcnc.org/docs/html/gcode/g-code.html#gcode:g38
Please Log in or Create an account to join the conversation.
- Jur4S
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
19 Feb 2024 22:38 #293800
by Jur4S
Replied by Jur4S on topic How to create simple tool changing script without homing machine?
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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19454
- Thank you received: 6520
19 Feb 2024 22:47 #293801
by tommylight
Replied by tommylight on topic How to create simple tool changing script without homing machine?
linuxcnc.org/docs/html/gui/pyvcp.html
It should be somewhere there how to make a button that should do it.
It should be somewhere there how to make a button that should do it.
Please Log in or Create an account to join the conversation.
- Jur4S
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
20 Feb 2024 15:34 #293847
by Jur4S
Replied by Jur4S on topic How to create simple tool changing script without homing machine?
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
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 or Create an account to join the conversation.
- Adanoley
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
21 Feb 2024 01:48 - 22 Feb 2024 02:57 #293882
by Adanoley
Replied by Adanoley on topic How to create simple tool changing script without homing machine?
Have you fixed it yet?
Last edit: 22 Feb 2024 02:57 by Adanoley.
Please Log in or Create an account to join the conversation.
- Jur4S
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
21 Feb 2024 03:23 #293886
by Jur4S
Replied by Jur4S on topic How to create simple tool changing script without homing machine?
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 or Create an account to join the conversation.
- Jur4S
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
22 Feb 2024 21:24 #294020
by Jur4S
Replied by Jur4S on topic How to create simple tool changing script without homing machine?
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 or Create an account to join the conversation.
- polobear189
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
23 Feb 2024 00:08 #294035
by polobear189
Replied by polobear189 on topic How to create simple tool changing script without homing machine?
Lot of useful info in this video
Andy
Andy
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19454
- Thank you received: 6520
01 Mar 2024 10:00 #294830
by tommylight
Replied by tommylight on topic How to create simple tool changing script without homing machine?
Spammer booted.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- How to create simple tool changing script without homing machine?
Time to create page: 0.096 seconds