Zero the DRO
- richcolvin
-
Topic Author
- Away
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
12 Oct 2025 21:37 - 12 Oct 2025 21:38 #336352
by richcolvin
Zero the DRO was created by richcolvin
I want to put a button on the Glade panel which will zero out the DRO. I don't want to HOME the axis as I want it to be good where it is.
On the panel, I am currently displaying the DRO value from position-fb:
HAL file:
net x-pos-fb => pid.x.feedback
net x-pos-fb <= hm2_7i92.0.stepgen.02.position.fb
net x-pos-fb => joint.0.motor-pos-fb
PostGUI HAL file:
net x-pos-fb => gladevcp.X_DRO This is what gets displayed
I am assuming that I need to add a HAL button to GladeVCP and then call a function in the handler python program.
Within that function, how do I write a 0 to this?
On the panel, I am currently displaying the DRO value from position-fb:
HAL file:
net x-pos-fb => pid.x.feedback
net x-pos-fb <= hm2_7i92.0.stepgen.02.position.fb
net x-pos-fb => joint.0.motor-pos-fb
PostGUI HAL file:
net x-pos-fb => gladevcp.X_DRO This is what gets displayed
I am assuming that I need to add a HAL button to GladeVCP and then call a function in the handler python program.
Within that function, how do I write a 0 to this?
Last edit: 12 Oct 2025 21:38 by richcolvin.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Away
- Platinum Member
-
Less
More
- Posts: 4686
- Thank you received: 1433
15 Oct 2025 09:55 #336490
by Todd Zuercher
Replied by Todd Zuercher on topic Zero the DRO
Use an mdi command to issue the appropriate G10 command.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7229
- Thank you received: 2105
15 Oct 2025 11:19 #336494
by cmorley
Replied by cmorley on topic Zero the DRO
Have you set this in the TRAJ section of the INI?
NO_FORCE_HOMING = 1
linuxcnc.org/docs/devel/html/config/ini-...tml#sub:ini:sec:traj
Then you should be able to use the normal way to zero the axis.
But you lose the safety pf soft limits with no fixed homing spot.
NO_FORCE_HOMING = 1
linuxcnc.org/docs/devel/html/config/ini-...tml#sub:ini:sec:traj
Then you should be able to use the normal way to zero the axis.
But you lose the safety pf soft limits with no fixed homing spot.
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.059 seconds