Phil
Can we start from scratch? When I look at the "Home All" button in lathe as it is out of the box, there is no VB in the button. Instead it uses OEM code 211. If you look up that in the OEM codes.xls file it says - Home X Home Z (turn). That seems to translate (after testing) to Home X THEN Home Z.
So - at some point I'm thinking you must have used a screen editor to change from using an OEM code to using VB - correct? (just trying to establish the full train of events)
Moving on. If I change from using an OEM code to using vbcode with:
doButton(24)
doButton(22)
Then it homes Z and then X
However, if I then change it to:
RefCombination(5)
It homes Z and X at the same time - i.e. what you want.
Two thoughts:
1) Can you try it using the parallel port driver and see what happens?
2) It's back to my thoughts that this may be an SS issue.
Meanwhile....
I have a question, since I only pretend to be a programmer.

Wouldn't RefX be a variable, and 1 be the constant? And since the RefX is not needed, then the integers are constants?

Maybe that's what he means
What it says is:
‘ Define some constants
RefX = 1
RefY = 2
...etc...
So 1 indeed is a constant but that is not what's being defined - RefX is.

We can do literal constants and symbolic constants if you like
