Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: shobley on November 15, 2012, 02:31:59 PM

Title: Script to pulse a pin when the Z axis hits 0.00
Post by: shobley on November 15, 2012, 02:31:59 PM
Does anyone know of an example script that could pulse a pin when the Z axis reaches 0?
Either through motion travel, or when the "zero axis" is clicked?

Is this something within the capability of the scripting engine or does this reside within the pulsing engine?

Thanks,
Steve
Title: Re: Script to pulse a pin when the Z axis hits 0.00
Post by: BR549 on November 15, 2012, 03:40:47 PM
NO guaranties that it can see it during motion.

IF  GetOemDro(802) = 0 then
ActivateSignal(output1)
Sleep(10)
DeactvateSignal(output1)
end


Title: Re: Script to pulse a pin when the Z axis hits 0.00
Post by: shobley on November 15, 2012, 03:48:37 PM
Thanks, I will give that a try and see what happens