http://linuxcnc.org/docs/html/gcode/overview.html#sub:numbered-parameters

It's a good idea to read and study this document.

John Dammeyer


> -----Original Message-----
> From: R C [mailto:cjv...@gmail.com]
> Sent: July-12-21 3:10 PM
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] 'automatically' go halfway between 2 points
> 
> 
> On 7/12/21 9:20 AM, Les Newell wrote:
> > It's pretty easy to do this in g-code. There is no need to get
> > involved with HAL programming.
> > Here is one way I do it on my mill. I have buttons for the following:
> > Zero X (runs code G92X0)
> > Zero Y (runs code G92Y0)
> > Zero Z (runs code G92Z0)
> > X/2 (runs code G92X[#5420 / 2])
> > Y/2 (runs code G92X[#5421 / 2])
> 
> 
> 
> what does the "#5420" do/mean?
> 
> 
> Ron
> 
> >
> > Say I want to find the centre of X. I find one X edge using a probe or
> > eyeball as required then zero X. Move to the other side and hit X/2.
> > X0 is now in the centre.
> > If you have an electronic probe this plugin works quite well
> > <https://github.com/linuxcnc-probe-screen/probe-screen-ng>.
> >
> > Les
> >
> > On 12/07/2021 05:29, R C wrote:
> >> Hello,
> >>
> >>
> >> in linuxcnc,� is there an easy/automated way to get halfway between
> >> two points?�� (Fort example, you'd touch off somewhere, move to some
> >> coordinate (x, y)� (or even (x, y, z)) and go inbetween right to the
> >> the middle of where you touched off and where the spindle is now?
> >>
> >>
> >> thanks,
> >>
> >>
> >> Ron
> >
> >
> >
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to