Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: DaOne on December 14, 2010, 04:20:21 PM

Title: Jog button in a script?
Post by: DaOne on December 14, 2010, 04:20:21 PM
Anyone know if a jog button can be used in a script?

"DoOEMButton(312)" etc don't work. It moves the axis but it locks moving until a estop. It works on a flash screen just fine but not on a normal one. Any ideas? I need the button to do a few more things before it jogs is why I need a script.
Title: Re: Jog button in a script?
Post by: DaOne on December 16, 2010, 02:17:51 AM
anyone???
Title: Re: Jog button in a script?
Post by: stirling on December 17, 2010, 05:26:50 AM
The only way I can see this working after a fashion is to set step mode and step distance. I can't see how continuous mode could work because how would it know how far you wanted to jog? - that's the bit I don't get when you say it works in flash - how far does it jog and why?

Sorry - not much help probably.

Cheers

Ian
Title: Re: Jog button in a script?
Post by: DaOne on December 17, 2010, 05:30:14 AM
Jogs till I take my finger off the button on the touch screen.
Title: Re: Jog button in a script?
Post by: stirling on December 17, 2010, 05:41:44 AM
OK - fair enough - but doesn't it also continually execute whatever code you preceed the doOEMButton call with?
Title: Re: Jog button in a script?
Post by: DaOne on December 17, 2010, 05:43:47 AM
It may but just adding the doOEMButton call by itself is enough to lock jog.