John,
>> Something does not compute here. If scale is 1280 (that means 1280 counts per inch), then at one step per millisecond, you should get 1000/1280 = about 0.8 inches per second, not 2.5. << Yes, I realized it as soon as I posted it, but the error wasn't big enough to matter so I did not post a correction. >> I think that m5i20 outputs by default are updated in the servo thread at 1KHz. If you will be using them for steps, you need to move the digital output update function to the base thread. You will need to consult the m5i20 driver docs for this - I'm not even sure at the moment if the digital I/O portion of the driver can be separated from the rest of the code (which you'll want to leave in the servo thread). << Oh of course. It seems obvious now. I am not sure if it will matter, but on my home system I was able to crank up the servo period to 66000 with base period of 22000. I won't be able to test it with real hardware until Monday. >> I suspect that this could be the cause of your problem - if EMC is generating short step pulses in the base thread, but you are only driving the hardware in the much slower servo thread, the hardware probably never sees many of the step pulses. << Do you know anything about hostmot2? I see it has step and pwm, but did not see a sample configuration on how to use it. Is it completed or still a work in progress? Regards, Eric ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
