- Posts: 926
- Thank you received: 280
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The DMA stepgen branch is still Beta and under development and bug fixes. So as GeremyL says, test, test and test. The DMA stepgen uses a Toggle register to drive the outputs. So please share scenarios where things don't work as expected as we need to get the outputs into known conditions before kicking the DMA back into action.@GeramyL The issue of steppers randomly changing direction exists for me also. I'm getting close to a working wiring and LCNC configuration so the quantity of info to be processed is a bit overwhelming for me and thought it might be something about my config.
In my case I have tandem Y axis. What I observed is that, in between restarts of LCNC when homing , the Y motors will sometimes spin in the same direction then randomly, restarting LCNC will spin in opposite direction. This is whibought power cycling the board. Using the latest binary DMA firmware.
I also have some perplexities about the I/O pin numbering. But for that I'll get back with a video. For me it seems that one can make no assumption about order of pins or number between what is physically written on the case of the board and how hal pins are ordered or named as displayed on the pc. Using hal_meter and a bit of trial and error one can get around that. Perhaps I need a correct EC500_DMA_config.txt ?
And lastly, what i found really odd was this behaviour:
I used the first 4 stepper slots on the EC500 to wire the 4 motor drivers. Joint0 => slot 1| Joint1 => slot2 | Joint2 => slot3 | Joint3 => slot4
The output pins for the various joints are setted in the EC500_DMA_config.txt so if I want to output, for example, Joint3 to slot6 that should never change.
Instead if I change the configuration of the machine in the .ini file from XYZ to XYYZ output slots WILL change. Output of a Joint will jump to another slot on the board. That should not be possible. Or am I missing something?
P.S. I can't thank you enough guys for the work on this board![]()
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
you need to find the stepper manual and figure out your stepper drivers khz frequency maximum for the pulses and the setup time required for dir changes. Mine are 200khz, I have my board at 500khz, I think to me atleast I needed about 2 to have no skipped steps but i put it at 4 to give me a little extra inbetween the pauses just incase the timer is a little faster or slower. most drivers are 100 to 200khz for steppers which means you will use probably 3 or 4 to 7 or 8. Dir setup probably can be less but for me my dir setup time is about 6um and my pulse hold and space is 2um so to me a dir setup of about 10 to 12 would be the correct number. But as I was having directional change issues i added some extra pause. each number is essentially a timing slot on the buffer that it skips. so if its dma is operating at 500khz each buffer item takes 2um to read and cause a change. but i believe scott actually has it at 1mhz and so really its 1mhz not 500khz, only the planner is at 500khz. anyways 1mhz in microseconds is 1um and thus why i have 4.About theese entries in the config.txt . Where can I learn how to tune them? Is there a process to it?
"Step Length": 4,
"Step Space": 4,
"Dir Setup": 15
My motors are still not attached to the mill but they seemed allot smoother when attached to a mesa card. Now they make a totally different sound when they move. Perhaps I only need to tune those parameters right. Again, it's easier for me to be wrong than right so some advice is welcomed.
Please Log in or Create an account to join the conversation.