I'm sure I'm not the only one, almost every time I look at others VB code the same problem comes up, those dam DRO numbers, DoButton, DoOEMButton and all other internal variables and or parameters should have been written in plain English in a VB include file as CONST or whatever even if the current version of the scripting language doesn't allow for it (include files). It's like all this is on the dark side of the force, it's a shame and a complete waste of time to search way to often for these numbers and there meaning.
I want to do my own homing and especially squaring routine because I use Hall sensor and the distance to move off the sensor is to large. I've found C code from Dynomotion that does exactly what I want. One of the first thing it does is to disable the slave mechanism to the master axis. I found after a minimum of 4 hours of search, a post that said to use DoOEMButton(357) and DoOEMButton(358) and a few hours more to find the meaning of these numbers. The 357 is for Slave ABC off and the 358 is for Slave A on. Your a lucky man if you slaved with the A axis but unfortunate if you used the B or C axis. I found no trace of neither Slave B on or Slave C on numbers and every one knows the functionality is there on the set slave dialog, so where are the numbers for these???
Incredible!
Yves