- Posts: 48
- Thank you received: 0
Axis DRO Velocity when using adaptive feed
3 years 6 months ago #270289
by dberndt
Axis DRO Velocity when using adaptive feed was created by dberndt
Not really sure where to drop this note, but maybe here is as good as anywhere else.
It might be nice if the velocity displayed in DRO "Vel:" would in some way represent the status of adaptive_feed, so maybe it should gain a negative sign when m52 is enabled and motion.adaptive-feed < 0 causing reverse motion?
I'm not sure what data you'd pull out of linuxcnc.stat() or wherever else to make that happen, so maybe it's more of a core linuxcnc than axis thing.
Does anyone have any suggestions? Am I missing some other place where I might see data about adaptive feeds status displayed? I realize I can fairly easily deal with this in a pyvcp panel...
-Dave
It might be nice if the velocity displayed in DRO "Vel:" would in some way represent the status of adaptive_feed, so maybe it should gain a negative sign when m52 is enabled and motion.adaptive-feed < 0 causing reverse motion?
I'm not sure what data you'd pull out of linuxcnc.stat() or wherever else to make that happen, so maybe it's more of a core linuxcnc than axis thing.
Does anyone have any suggestions? Am I missing some other place where I might see data about adaptive feeds status displayed? I realize I can fairly easily deal with this in a pyvcp panel...
-Dave
Please Log in to join the conversation.
3 years 6 months ago #270309
by D.L.
Replied by D.L. on topic Axis DRO Velocity when using adaptive feed
To do this, you need to edit the file glcanon.py.
After this line:
Add this line:
After this line:
Code:
spd = self.to_internal_linear_unit(s.current_vel)
Code:
spd = math.copysign(spd, hal.get_value("motion.adaptive-feed"))
Attachment not found
Please Log in to join the conversation.
3 years 5 months ago #270356
by dberndt
Replied by dberndt on topic Axis DRO Velocity when using adaptive feed
Awesome. Thanks D.L. Haven't tested with real g-code yet but seems ok in basic testing.
Please Log in to join the conversation.
Time to create page: 0.093 seconds
