As part of my laser engraver implementation that I have been working on, I
have a raster component that needs to vary the pwmgen output at higher rate
than the servo period.

The math I'm using to determine the speed is the scan speed. So for
instance a 6000mm/min scan speed, with an update rate of 1Khz gives me a
resolution of about 0.1mm.  Thus 10Khz will give me 0.01mm resolution at
that speed, and allows me to bump up the speed without losing resolution.

6000 / 60 / 1000 = 0.1mm



For me a base-thread at about 100000 ns will work. So the idea I had was to
put my raster components and the hostmot2 stepgens and pwmgen update
functions to run on the base thread, while normal motion work still occurs
on the servo thread.

I was able to set up the hal properly and assign the write and read methods
to the base thread.

Now though the steppers now aren't operating properly. When operating they
are jerky and louder. They seem to want to run in one direction but seize
up when running in the other direction.

I'm not sure where to start to debug this. Any tips are welcome.


Thanks!
------------------------------------------------------------------------------
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

Reply via email to