Menu

#226 wrong BASE_PERIOD in "test axis" dialog

closed-fixed
nobody
Stepconf (15)
5
2010-03-09
2009-12-31
Anonymous
No

If step lenght > 5.000, I found a wrong timing of the base_thread.
e.g. step len = 20.000, jitter = 20000 results in min base_period = 40.000, max freq = 12.500 Hz displayed on the first page of Stepconf.
This is correct.
But when I do the "test axis" dialog and measure the pulses with a scope, the base_period is approx. 53.000.
The base_period performes well, when steplen <= 5000 is used.
When export ini+hal and use EMC (2.3.4), the base_period is also fine.

Discussion

  • Nobody/Anonymous

    Stepconf file

     
  • Nobody/Anonymous

    shall be in Category Stepconf

     
  • Michael

    Michael - 2009-12-31
    • labels: --> Stepconf
     
  • Anonymous

    Anonymous - 2010-01-01

    I think I found the complete solution for this and the previous item:

    1980,1983c1980
    < if data.doublestep():
    < period = int(1e9 / maxvel / scale)
    < else:
    < period = int(0.5e9 / maxvel / scale)
    ---
    > period = int(1e9 / maxvel / scale)
    1992,1995c1989
    < if data.doublestep():
    < maxvel = 1e9 / minperiod / abs(scale)
    < else:
    < maxvel = 0.5e9 / minperiod / abs(scale)
    ---
    > maxvel = 1e9 / minperiod / abs(scale)

    regards, Gerd

     
  • Jeff Epler

    Jeff Epler - 2010-03-09

    Thank you for the patch. The version you posted on the mailing list has been applied to the v2.4_branch and will be in emc 2.4.0 when it is released.

     
  • Jeff Epler

    Jeff Epler - 2010-03-09
    • status: open --> closed-fixed