Machsupport Forum

Third party software and hardware support forums. => SmoothStepper USB => Topic started by: Userli on March 04, 2011, 12:40:22 PM

Title: Change speed while jogging
Post by: Userli 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.
Title: Re: Change speed while jogging
Post by: Userli 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.