Ok, I though it was that easy at first, I tried that (added that line to the end of the script) and though it didn't work but here is what is happening: when I first power it up and hit home I see the soft limit button flash right as it starts homing but it doesn't come on...the machine homes itself as usual. If I click it again it re-homes and the soft limits come on, if I click it again does the same and soft limits go off.
So now the script looks like this:
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)
DoOEMButton(119)
- what else do I have to add to not only wait for the wait for the homing to be complete, but to check if the soft limits were on and leave them that way and not turn them off. I want the soft limits to be on every time the machine is homed.