Hello Guest it is April 19, 2024, 06:29:24 AM

Author Topic: Help with SystemWaitFor() script  (Read 1730 times)

0 Members and 1 Guest are viewing this topic.

Help with SystemWaitFor() script
« on: March 05, 2014, 11:28:26 AM »
Hello everyone. I am new to Mach3 and the forum.  Below is a Script I have written but it does not work. What I want to have happen is when the homing sequence is started I want the Z,Y and X to home (in that order) and then zero out all of the positions.

VB Script for REF ALL HOME Button:

NOTIFYPLUGINS(3000)

SystemWaitFor(INPUT4)    ' Input 4 is the homing prox for the last axis to be homed

DoOEMButton(1009)
DoOEMButton(1008)
DoOEMButton(1010)


The sequence starts just fine but as soon at it starts it zero's all of the axis's. It is not waiting for Input 4 to continue. Is there something wrong with my code. I am using Mach 3, a Galil DMC 4060 controller with Copley Stepnet stepper controllers. Thanks.