21
General Mach Discussion / mach ignoring macropump code
« on: April 19, 2015, 03:07:27 PM »
In a previous thread I started (Problems with For Next loop in script), BR549 kindly gave me this script to run in macropump:-
IF Isactive(input1) Then
DoOemButton(1001)
While Ismoving()
Wend
DoOemButton(1003)
Else
End IF
END
According to my logbook, it worked. Next day, the PC died, and has now been replaced. But now macropump code of any sort doesn't work. I then tested the above code in the vb script window; as predicted, it locked up the processor. I tested this code instead (by pressing input 1 switch to make it active; checked in diagnostics screen):-
IF Isactive(input1) Then
Code "G00 X200"
End IF
END
No joy in macropump, but works from VB code window. All this despite 'run macropump' being enabled in general config.
macropump file is called 'macropump.m1s', my xml is attached in case that helps anyone.
Anyone know why macropump code is not being run?
Thanks, R
IF Isactive(input1) Then
DoOemButton(1001)
While Ismoving()
Wend
DoOemButton(1003)
Else
End IF
END
According to my logbook, it worked. Next day, the PC died, and has now been replaced. But now macropump code of any sort doesn't work. I then tested the above code in the vb script window; as predicted, it locked up the processor. I tested this code instead (by pressing input 1 switch to make it active; checked in diagnostics screen):-
IF Isactive(input1) Then
Code "G00 X200"
End IF
END
No joy in macropump, but works from VB code window. All this despite 'run macropump' being enabled in general config.
macropump file is called 'macropump.m1s', my xml is attached in case that helps anyone.
Anyone know why macropump code is not being run?
Thanks, R