Hello Guest it is April 25, 2024, 03:11:14 AM

Author Topic: help on vb script for lathe  (Read 2385 times)

0 Members and 1 Guest are viewing this topic.

help on vb script for lathe
« on: February 08, 2011, 09:30:01 AM »
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??