Touch Off default value for offset

More
21 Sep 2021 16:54 - 21 Sep 2021 16:56 #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.
 
Last edit: 21 Sep 2021 16:56 by wdcnc. Reason: Added content.

Please Log in or Create an account to join the conversation.

More
21 Sep 2021 18:12 #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 or Create an account to join the conversation.

More
21 Sep 2021 18:18 #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 or Create an account to join the conversation.

More
21 Sep 2021 18:35 #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 or Create an account to join the conversation.

More
24 Sep 2021 19:47 - 24 Sep 2021 19:49 #221517 by rodw
. doubled up.
Last edit: 24 Sep 2021 19:49 by rodw.

Please Log in or Create an account to join the conversation.

More
24 Sep 2021 19:48 #221518 by rodw
This is how I moved to the XY laser position using a gmocappy macro. Should work for you.
; 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 or Create an account to join the conversation.

More
26 Sep 2021 21:48 #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 or Create an account to join the conversation.

More
21 Oct 2021 17:09 #223827 by wdcnc
Just to follow up, with slight modification this works great for me from the MDI.
Thanks again.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum