Hello

I am studying the stepgen.c code.

I see that the 4 parameters

  steplen stepspace dirhold and dirsetup

are rounded up ( ulceil() )

to the next larger interger value of the BASE period.


That means for my Gecko 540, the 1uS Steplen 2uSstepspace 200nSdirhold and 200uS dirsetup

all become 25uS for the typical 25uS Base thread period.


But the DirSetup and DirHold must co-exist in a single StepSpace when the direction reverses between 2 step pulses.


I think that makes the stepspace become 50uS ( to accomodate the dirhold plus dirsetup )

and the steplen and stepspace now total 75uS.


Thats a max step/sec of 13333 for that particular sequence of 2 steps.

That sequence can happen at anytime in a cnc path.

Som I must allow for these 'random' ocurrances,

and this lowers the max steprate to 13333 ( 1 sec / .000075 )..


The commonly mentioned 20000 steps per second rate appears to be only for unchanging direction

and 13333 steps per second for useful paths.

( 20000 for drag racing  vs 13333 for gymkhana )


Coreections invited, I am still studying.


Thx TomP



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to