- Configuring LinuxCNC
- Advanced Configuration
- Step/Dir servos + Encoders = follow errors... and so much pain.....
Step/Dir servos + Encoders = follow errors... and so much pain.....
(just like the encoder firmware can capture the encoder position
at index), but the hostmot2 driver needs to have the support for this
capability added. I intend to work on this in the next week or so.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Basically, your servo drive needs to move X distance when it is commanded to do so with the STEP signal.
In a real stepper motor the driver will output modified phase currents to make this happen. There can be some lag but that's what we live with when we chose to use stepper motors.
For your servo drives to do the same thing there has to be a control loop that is checking that the servo motor is really moving X distance when asked to. The servo driver has a control loop by itself to make this happen. That's where you need to look, in the driver PID setting. That is what determines what happens at a a STEP pulse. The use of the motor encoder is not visible.
An alternative is to set this up as a real stepper motor control (step/dir right) without position feedback. In this case it is absolutely clear that deviations are caused by the driver/motor.
God luck man it is frustrating.
Please Log in or Create an account to join the conversation.
by the hostmot2 driver for open loop step/dir systems but can be added.
Please Log in or Create an account to join the conversation.
And thank you PCW for offering to make the enhancement to hostmon2!
Please Log in or Create an account to join the conversation.
Start looking at it, having a bit of a time groking what all is going on.. makes since from a performance perspective but its not as straight forward as a neon sign saying "this is where homing counters are managed" in the encoder.c file or "this is the start of the homing sequence" in hostmot2.c lol...
If I am reading this right, I want to do something like this from encoder.c
hm2_encoder_instance_update_rawcounts_and_handle_index
in
stepgen.c (looks like in that first hm2_stepgen_process_tram_read method...
Step one though, will be setting up a linuxcnc dev environment and getting everything building...... but I think, maybe, I can track down the changes... If I get something that doesn't break my machine and I beat you to it, I'll send a pull request to linuxCNC..
I am assuming I should make the change in the 2.8 branch? (or does this go in the 2.8 pocket-fix?)
Please Log in or Create an account to join the conversation.
modifications as well as firmware discovery changes to avoid breaking existing
installations. I would suggest that you wait. This belongs in master (2.9)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I think jhandel wants to home to index. This is not currently supported
by the hostmot2 driver for open loop step/dir systems but can be added.
That would be awesome!
Please Log in or Create an account to join the conversation.
that an index event clears the stepgen position)
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Step/Dir servos + Encoders = follow errors... and so much pain.....