Zero the DRO

More
1 year 2 weeks ago #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?

Please Log in to join the conversation.

More
1 year 2 weeks ago #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 to join the conversation.

More
1 year 2 weeks ago #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.

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum