Hello Guest it is October 31, 2024, 07:47:20 PM

Author Topic: Jog button in a script?  (Read 5880 times)

0 Members and 1 Guest are viewing this topic.

Offline DaOne

*
  •  236 236
Jog button in a script?
« 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.

Offline DaOne

*
  •  236 236
Re: Jog button in a script?
« Reply #1 on: December 16, 2010, 02:17:51 AM »
anyone???

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • www.razordance.co.uk
Re: Jog button in a script?
« Reply #2 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

Offline DaOne

*
  •  236 236
Re: Jog button in a script?
« Reply #3 on: December 17, 2010, 05:30:14 AM »
Jogs till I take my finger off the button on the touch screen.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • www.razordance.co.uk
Re: Jog button in a script?
« Reply #4 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?

Offline DaOne

*
  •  236 236
Re: Jog button in a script?
« Reply #5 on: December 17, 2010, 05:43:47 AM »
It may but just adding the doOEMButton call by itself is enough to lock jog.