Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESP300 for non-ESP motors without encoders #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pkienzle
Copy link

We had an ESP-300 controller with one ESP-compatible motor and two non-ESP compatible motors.

The limit switches on our non-ESP stages were not connected. We used the ZH command to determine if the axes have active limit switches.

To get the number of axes we could not use the ZU command as given in the existing code. Instead we query each axis until we get an invalid axis error.

The scaling factor between movement distance and motor pulse did not work for non-ESP compatible motors without encoders. We added a condition for open loop with no encoder feedback to set the scale from full step resolution without a microstep correction.

Better error handling:

  • Check for errors before retrieving position in set_status.
  • Remove axis specification from TB and TE commands since there is a single error queue for all axes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant