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

Unexpected Behavior with swapping nEnableMode mid-execution #188

Open
ZLLentz opened this issue Aug 8, 2023 · 0 comments
Open

Unexpected Behavior with swapping nEnableMode mid-execution #188

ZLLentz opened this issue Aug 8, 2023 · 0 comments

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Aug 8, 2023

Current Behavior

  • Swapping to nEnableMode := ALWAYS works, the motor gets enabled if it is otherwise safe✔️
  • Swapping to nEnableMode := DURING_MOTION causes issues ❌
  • Using nEnableMode := NEVER doesn't work as expected if bPowerSelf = TRUE

DURING_MOTION:

  • Starting and staying in this mode works fine
  • Swapping to this mode while disabled works fine
  • Swapping to this mode while enabled leaves the motor stuck in an enabled state: bEnable only resets to FALSE at the end of a move, not in some steady state.

NEVER

Expected Behavior

  • Swapping to DURING_MOTION should disable the motor if we are not doing a move.
  • NEVER should work as advertised in the README: the PLC code should stop adjusting the enable state.
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

No branches or pull requests

1 participant