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

Encoder Save/Restore Crashes for Absolute Encoders #166

Open
ZLLentz opened this issue Jun 22, 2023 · 0 comments
Open

Encoder Save/Restore Crashes for Absolute Encoders #166

ZLLentz opened this issue Jun 22, 2023 · 0 comments

Comments

@ZLLentz
Copy link
Member

ZLLentz commented Jun 22, 2023

Current Behavior

When calling MC_SetPosition during FB_EncSaveRestore, the program will crash if the target Axis has an absolute encoder (EL5042).
This was observed on the TMO motion plc which has a runtime of 4022.29.

Expected Behavior

PLC should not crash

Context / environment

plc-tmo-motion
4022.29
Tong was switching unencoded motors to absolutely encoded.

Steps to Reproduce (for bugs)

  1. Configure an axis to have an absolute encoder
  2. Call MC_SetPosition

Suggested Solution

If possible, it would be nice to be able to tell which kind of encoder is being used and avoid this block, instead showing a warning to the effect "WARNING: cannot save/restore positions for absolute encoders".
If the bug is still present in the latest runtimes we should report this to Beckhoff.

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