RefCombination command will do that.
Right now I can not get the Mach3 Wiki page to load for some reason. That has info on using this command.
Greg
PS: The following is from the Mach3 Macro Reference Manual PDF
RefCombination
Sub RefCombination(Axes As Integer)
This function allows any combination of axes to be simultaneously referenced (homed).
Which axes will be referenced is determined by the Axes argument, which is a bit-
mapped variable, with the bits mapped as defined below.
Arguments:
Axes is a bit-mapped value the defines which axes are to be referenced. The
value of Axes can be calculated by adding the values corresponding to the
individual axes to be referenced. The axis values are:
X = 1
Y = 2
Z = 4
A = 8
B = 16
C = 32
So, for example, to reference the X, Z and B axes, Axes = 1 + 4 + 16 = 21.
Return Value:
None
Example:
‘ Define some constants
RefX = 1
RefY = 2
RefZ = 4
RefZ = 8
RefB = 16
RefC = 32
‘ Reference Y, Z and C axes
RefCombination(RefY + RefZ + RefC)