Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: TTalma on February 08, 2019, 01:42:48 PM

Title: Is there any way to home a single axis?
Post by: TTalma on February 08, 2019, 01:42:48 PM
As the title states is there any way to home a single axis? I have a setup I use rarely, and I only care about homing the Z axis. If I forget to home the machine I have to go through setting up my X and Y again.
Title: Re: Is there any way to home a single axis?
Post by: joeaverage on February 08, 2019, 02:35:18 PM
Hi,
yes you can use a script which uses the API:

LUA Syntax:
rc = mc.mcAxisHome(
   number mInst,
   number axisId)

Description:
Used to start an axis homing.


Or you can use the Ref Z axis (or Ref X, Ref Y) on the machine diagnostics page.

Craig
Title: Re: Is there any way to home a single axis?
Post by: TTalma on February 10, 2019, 10:59:43 AM
The ref z on the diag page is perfect!