Hello Guest it is March 28, 2024, 07:52:23 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - chrishunt79

Pages: 1
1
General Mach Discussion / 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.


Pages: 1