This is copied from RayL's VB ref guide
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)
So my code is
RefX=1
RefZ=4
RefCombination (5)
Only one axis moves (X) this on a lathe, current stable release i have individual home switches on different pins using a SS
So what the hell is wrong.
