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

Mode switch timed out. #234

Open
Vidicon opened this issue Nov 28, 2023 · 0 comments
Open

Mode switch timed out. #234

Vidicon opened this issue Nov 28, 2023 · 0 comments
Labels
question Further information is requested

Comments

@Vidicon
Copy link

Vidicon commented Nov 28, 2023

Describe the bug

We were trying to get a ENGEL HBI3760 working with the 402 driver, but we kept hanging on the
[canopen_402_driver]: Mode switch timed out.

After looking through the logs, we found that the halt bit is set when it tries to change modes of operation, this does not work as that's not allowed in this motor:

In the datasheet on page 49:

Notice:
Changing the mode of operation is not allowed, when the HALT-bit (Bit 8 of Controlword 6040h, chapter 5.3.1) is set!

as a quick test, when we change:


to
if (okay || true)

the driver starts working,

is there a way to do fix this without changing the code, or what would be a better solution for this.

Setup:

  • Device: Dell Laptop with peak can-interface.
  • OS: Ubuntu 22.04
  • ROS-Distro: Humble
  • Branch/Commit: Humble
@Vidicon Vidicon added the question Further information is requested label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant