Hello Guest it is December 05, 2024, 12:12:26 PM

Author Topic: Change speed while jogging  (Read 11856 times)

0 Members and 1 Guest are viewing this topic.

Change speed while jogging
« on: March 04, 2011, 12:40:22 PM »
Hi,

I developed a USB pendant, which allows to change the jogging speed by changing the MaxVelocity setting, while jogging. This works fine with the printer port driver but the SS only starts jogging with the initial speed and then continues at that speed, ignoring the changes.

Does anybody know, how to fix this?

Code:
Start jogging:
      Engine->Axis[ joyAxis].Dec = false;
      Engine->Axis[ joyAxis].Jogging = true;
      Code("DOJOG");

Change speed:
   Engine->Axis[ joyAxis].MaxVelocity =  newSpeedVal;

The code is called from within myHighspeedUpdate .

Frank.
Re: Change speed while jogging
« Reply #1 on: March 04, 2011, 04:18:35 PM »
Hi,

I'll answer myself in case somebody else has the same problem. A google search for code("ENDJOG") brought up that yahoo thread

http://groups.yahoo.com/group/mach1mach2cnc/message/80261

where Art explains how to do this.

Frank.