I have been fighting VB for hours.
How can I tell it to turn off the softlimits if they are on?
I am working on a tool change macro that has to move the Z axis out of it's soft limits.
DoOEMButton(119) will toggle it, but that does me no good if the macro executes while the softlimits happen to be off. If that happens then it just turns the soft limits back on and gives you a reset during the macro because you are out of soft limit area.
I need it to check if soft limits are on and then toggle them to off, but if they are already off do nothing
I have tried this:
SoftLimit = GetOEMLED(23)
If SoftLimit = 1 Then DoOEMButton(119)
It doesn't work
I have tried this:
If GetOEMLED(23) = 1 Then DoOEMButton(119)
That doesn't work either.
P.S. why in the heck does the window to type in a message always bounce up so you can't see what your typing on this stupid thing!