RogerN wrote: > An approach that may work good for something like this might be to limit the > following error for handwheel moves, and it could be a parameter that could > be set by the user. Just a thought.
Following error is the difference between EMC's commands to the motors and the actual motor position - that will be small even if you have cranked the jogwheel far ahead of the machine position, because EMC limits the commands to the motor. But I understand what you are saying. The pseudo-code would be: "If the actual machine position is lagging behind the the jogwheel commanded position by more than X units, ignore additional movement of the wheel." Another possible approach would be time based: "If it has been more than X seconds since the last click, and the machine is still moving, abort the jog" In either case, X would be an ini file parameter, and if X was zero (or not specified) the code would be ignored. I've looked at the code (I was working in that area last night) and either approach looks doable. The first approach would have a side effect of limiting the maximum speed of wheel jogging. The code that does the actual moves assumes that it needs to come to a stop when it reaches the commanded position. Lets assume that X is 0.1 inches. If we keep the commanded position from getting more than 0.1 inches ahead of the actual position, the machine can't get going very fast, because it has to be able to stop in 0.1 inches. The second approach lets the commanded position get far ahead of the actual position (if you spin the knob fast enough), so the machine can ramp up and get moving at a good clip. But if it doesn't reach the final position in the specified time, (perhaps a half second), then it stops. I think I like the second approach better. Regards, John Kasunich ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users