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

Reply via email to