Actual position variable

More
08 Oct 2009 09:20 #931 by eai
Actual position variable was created by eai
Hello guys,

I try to create pyVCP panel, which show X,Y and Z positions
So I created xml file with lines
<number>
<halpin>"Xdisplay"</halpin>
<format>"+004.4f"</format>
</number>
....

create hal file, add PYVCP and POSTGUI_HALFILE in ini file

start Emc with Axis ... I can see my panel with 0.000

So I have to write in hal file something like
net Xpos pyvcp.Xdisplay <= ???????

What is variable to get machine and relative position value?

Please Log in or Create an account to join the conversation.

More
10 Oct 2009 06:50 #935 by cmorley
Replied by cmorley on topic Re:Actual position variable
You can display machine position using the HALUI component. See the Manual.
Unfortunately it does not keep track of AXIS displayed value which includes metric conversion, diameter / radius conversion etc.
What is needed is a way to access AXIS's value. There currently is no way to do this (without programming).
It was asked about previously and not well received.
You should ask the authors of AXIS about adding a hal pin that displays AXIS's current value, if you really want to do this.
I understand, I wanted to be able to do this too. That is actually why AXIS has a very large DRO readout now. Which was a nice improvement.

Please Log in or Create an account to join the conversation.

More
12 Oct 2009 14:36 #961 by eai
Replied by eai on topic Re:Actual position variable
I asked about in emc-users mailing.
Guys recommended to use halui.axis.n.pos-commanded for machine coords and halui.axis.n.pos-relative for relative coords.
Look like it does work.
Unfortunately it is not possible to change values of coords variables.

Please Log in or Create an account to join the conversation.

Time to create page: 0.574 seconds
Powered by Kunena Forum