On 02/07/2017 01:55 PM, Curtis Dutton wrote: > That is where I'm at right now. My base thread is limited because the > feedback from hostmot2 only changes at servo rate, and it only updates the > pwmgen at servo rate as well. > > So computing the output value of the pwmgen at the base thread speed is a > waster of effort.. > > If I could read and write hostmot2 faster it would work, but it appears it > is not designed to do so. > > The hostmot2 read and write time's are short enough to work with a base > thread of 50 us, but there must be something in there that is assuming the > servo period is 1000 us.
Are you running the hm2 read and write functions in the base thread at 10 kHz, and the motion functions in the servo thread at 1 kHz? If so I wonder if it gets confused when the hm2 feedback signals change during the execution of the motion functions. What happens if you leave everything in the servo thread and turn up its frequency as high as it'll go, with no base thread at all? -- Sebastian Kuzminsky ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
