- Posts: 155
- Thank you received: 0
Outputting a pulse width for velocity servo control possible?
I am planning to use mesa hardware. Is there a method for creating a signal such as this in hal? I would like to close the loop as well as be able to tune it within LinuxCNC. I am hoping I can use these cards as it will make the retrotit much cheaper and faster to finish.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
This firmware for the 5i25: github.com/LinuxCNC/hostmot2-firmware/bl...rc/PIN_7I78x2_34.vhd [strike]and this breakout store.mesanet.com/index.php?route=produc...83_87&product_id=121 would give you 4 channels of step-dir and a PWM (plus a spindle encoder).
For extra GPIO you could add a smart-serial card. (there are connections on the board for that)[/strike]
[Edit] Sorry, I was wrong. That board converts spindle PWM to analogue voltage, which you appear not to want.
Maybe: PIN_DMMBOB1x2_34 firmware and www.mesanet.com/pdf/parallel/7i75man.pdf
Please Log in to join the conversation.
Attachment not found
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
But then I remembered the "reset" function in the parport driver, which actually waits for a length of time after setting the pins, and resets them. It is possible that you might actually be able to use that, but not simultaneously for step generation (as all pins that are in the reset list get the same reset time).
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
andypugh wrote: I was about to say that there is no way to do this with a parport because whilst 16kHz is possible, getting any resolution within that won't be.
But then I remembered the "reset" function in the parport driver, which actually waits for a length of time after setting the pins, and resets them. It is possible that you might actually be able to use that, but not simultaneously for step generation (as all pins that are in the reset list get the same reset time).
I don't think that would work Andy. Reset-time is a parameter not a hal pin. So you won't be able to change it's value in hal.
Please Log in to join the conversation.
Please Log in to join the conversation.
