Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: FelixPQ on May 27, 2016, 06:18:52 PM

Title: To slave or not to slave
Post by: FelixPQ on May 27, 2016, 06:18:52 PM
After quite a bit of search, I found contradicting info on controlling the state of a slaved axis from VB code. In "OEM List Alpha 6.1.xls" one can find the that using DoOEMButton(357) => Slave ABC OFF and DoOEMButton(358) is supposed to do a Slave A ON. But in the brain editor Button code 358 is for Slave ABC ON which doesn't work if B or C is your slaved axis as set in the configuration. I noticed after the call to Button(357) the dialog still showed that A was slaved to X but the A DRO shows otherwise.

Anyway, this is just for info. DoOEMButton(357) work at least for A and the B axis as expected but DoOEMButton(358) seems to work only for axis A

I still have the problem of setting my B axis back on as the slave for my X axis.

Yves