Subroutine GUI

More
15 years 6 months ago #8553 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
I have verified that the halui.home-all pin only is available if you have home switches and a home sequence set up. Since you don't have home switches there is no home all solution for you. Your only option is to create one button for each axis in your xml file to home it and link the button by using a line similar to this in hal...

net home-x halui.joint.0.home <= pyvcp.my-x-home-button-name

halui.joint.0.home the numbers for the axis are as follows

0 = X
1 = Y
2 = Z

John

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

More
15 years 6 months ago #8557 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
BigJohnT wrote:

I have verified that the halui.home-all pin only is available if you have home switches and a home sequence set up.

Aha!

Your only option is to create one button for each axis in your xml file to home it and link the button by using a line similar to this in hal.

Actually, I think that:

net home-all pyvcp.home-all => halui.joint.0.home halui.joint.1.home halui.joint.2.home

should work to home all axes from 1 button.
(I am not sure that doing so makes much sense in this case though)

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

  • piasdom
  • New Member
  • New Member
More
15 years 6 months ago #8559 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i can't get the terminal to get the whole output. i have scroll line at 2000.
can't see where to change the buffer.
attached.

Attachment HalReadout.txt not found

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

More
15 years 6 months ago #8560 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
I assume that the rapid-to-home button is working? it seems to be correctly configured.

JT has already spotted the home-all problem. It seems that you don't get that pin without a home sequence.

Anyway, keep that listing, (well, the bottom third, you seem to have three copies there) as a guide to what pins you have available to put together in interesting ways.

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

  • piasdom
  • New Member
  • New Member
More
15 years 6 months ago - 15 years 6 months ago #8561 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
Thanks BigJohnT and andypugh,

working on that now and yes the rapid-to-home works


and i now see the pyxcp and halui reference
Last edit: 15 years 6 months ago by piasdom. Reason: reference

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

  • piasdom
  • New Member
  • New Member
More
15 years 6 months ago #8563 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
well,

xml
<pyvcp>
<button>
<halpin>"halui.joint.0.home"</halpin>
<text>"Home X"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>

custom_postgui.hal
net home-x halui.joint.0.home pyvcp.home-x

and ini
[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0
HOME_X = 0

and i get
pin pyvcp.home-x does not exist

but i think it's my ini. didn't know what to equal HOME_X to.
don't think i should use g0 x0. i'm thinking it will move the table, but i tried it and got error.
from what ya'll showed me, i got it ALL right, but i'm not sure about the ini = to thingy :)

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

Time to create page: 0.307 seconds
Powered by Kunena Forum