Hello Guest it is April 23, 2024, 03:04:51 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.


Messages - azjim1234

Pages: 1
1
General Mach Discussion / Re: Need script help
« on: April 30, 2009, 09:35:10 PM »
Hi Jim.
Yes all the code is under one button.
The thing is that when you press stop alone it loses pulses and therefore position. The pause seems to decelerate it before stopping the movement allowing the buffer to empty normally not losing any ticks.
I like the reset button to put the machine in a particular state, (no offsets, g54,g90,g21,etc,etc) and for the sake of the above mentioned machine position want to stop any movement appropriately before resetting all those states should the button get arbitrarily pressed during cycle execution. (kind of muddy explanation).
Currently a pause button push then a reset button push works just fine. Just wanted to be under one button so I dont have to tell every operator to push pause before reset else machine will need rehoming.
Thanks
Jim

2
General Mach Discussion / Need script help
« on: April 26, 2009, 09:06:44 PM »
HI I am having trouble with the logic of this little button code.

dooembutton(1001) 'do a pause
While getoemdro(813)>0 'wait for blended velocity to stop
Wend
dooembutton(1003)  'stop
dooembutton(1002)  'rewind

The while/Wend loop was an effort to get the pause function to complete before passing on to the stop function.

I would like one button to do a "pause" then a "stop". This snippet worked in the simulator, but on a machine what ever line is executing when the button is pressed continues till its done and THEN it "stops".

Tried IsMoving() same results.

Any ideas on how to properly get the "pause" to completely execute before moving on to the "stop"?

Thank you.
Jim

Pages: 1