Touch Off default value for offset

More
5 years 1 month ago #221279 by wdcnc
Hi,
I have recently installed a laser pointer with an 'X' pattern on my Z axis.  This pointer is offset from the router bit on the X axis by about 3" and from the Y axis by about 2".  When I touch off on an axis, I have to manually enter these values to 4 decimal places (something like -2.9693).  This works fine but I'd rather not enter these values each time I touch off on the X and Y axis.

Has anyone modified the axis.py script to allow for a default value to be specified in the .ini file so the offsets don't have to be typed in when touching off to the workpiece?

Thanks in advance.
 

Please Log in to join the conversation.

More
5 years 1 month ago #221284 by tommylight
What machine?
You can add a VCP button to do all that with just a click:
  linuxcnc.org/docs/html/gui/gladevcp.html

Please Log in to join the conversation.

More
5 years 1 month ago #221285 by wdcnc
The machine is a homebuilt 3 axis gantry type.

Linuxcnc is 2.9 pre (and some long number) on Mint 19.3.

I'd really prefer not to have to give up screen real estate for a button.

Please Log in to join the conversation.

More
5 years 1 month ago #221287 by wdcnc
Silly me, I didn't realize GladeVPC could run as a tab in axis. Looks like some piddling is in order. I need to get something working for a touchplate also so maybe I can integrate that.

Please Log in to join the conversation.

More
5 years 1 month ago #221517 by rodw
. doubled up.

Please Log in to join the conversation.

More
5 years 1 month ago #221518 by rodw
This is how I moved to the XY laser position using a gmocappy macro. Should work for you.
Code:
; Testfile go Laser position offset ; will jog the machine to a position to give O<laser_off> sub G21 G91 G0 X -40.685 Y -26.595 g10 l20 p0 x0 y0 O<laser_off> endsub M2

Jog to where you want to set 0,0 by the laser and press a button. Easy

Please Log in to join the conversation.

More
5 years 1 month ago #221664 by wdcnc
I think that will work for what I need rodw. Thanks.
I was not having any luck with glade.

Please Log in to join the conversation.

More
5 years 1 week ago #223827 by wdcnc
Just to follow up, with slight modification this works great for me from the MDI.
Thanks again.

Please Log in to join the conversation.

Time to create page: 0.270 seconds
Powered by Kunena Forum