Well I tried to get this routine to work, but it keeps giving me a syntax error,so obviously I haven't entered it in correctly, if possible could you guys have a look at it and let me know where I'm going wrong? Thanks
‘This is the code from one of my buttons
Sub Main()
If (GetUserLED (1100)= true) Then ‘Can I use the light for the Referenced Y axis (808)
CODE "G90 G54"
CODE "G00 Y1.0"
CODE "M03"
CODE "G01 Y20.0 F70"
CODE "G90 G00 Y5.0"
CODE "M05"
CODE "M30"
Exit Sub
End If
Main
‘This is the code in my Macropump.m1s
If GetLed (808)=1 Then 'Std Y axis home LED
DoOEMButton (251) 'Stop Jog Y
CODE "(HOME MACHINE BEFORE USE)"
Else
DoOEMButton (291) 'Allow Jog Y
CODE "(Ready to go)"
End If
End Sub