I need help on vb script for lathe.
Here is my problem.
I want to enable my pendant when :
not in pause
not in single step
not in cycle start
Jog not on yet.
So, I write as follow:
If Not GetOEMLED(805)Then 'Not in Pause
If Not GetOEMLED(82)Then 'Not in Single Step
If Not GetOEMLED(804)Then 'Not in Run
If Not GetOEMLED(83) Then 'Not in Jogging Mode
DoOEMButton(103) 'Jogging Enable
End If
End If
End If
End If
I try this,
when in pause mode, result is nothing
when in single step, result is nothing.
but when in cycle start, DoOEMButton(103) is active.
Any suggestion??