Let me for finishing this issue to the review it once again:
macropump :
C = GetOEMled (813)
D = GetOEMled (11)
If C And D Then
SetVar(604,GetDro(16))
SetUserDro(1200,Getvar(604))
End If
If IsActive(INPUT1) Then
Code"M650"
End If
M650 :
DoButton(1) 'Feedhold
While IsMoving 'Wait for movement to stop
Sleep(100)
Wend
DoButton(3) 'Set Stop
Sleep(100)
SetDro(16,Getvar(604))
Sleep(100)
DoOEMButton(156)
Sleep(100)
DoButton(0)
Code"(You are now back to beginning contour )"
END
and setup input#1 Active low.
Only works in situations that are immobile axes.
Is this code on your PC to work properly?
Amir