Subroutine GUI

More
04 Apr 2011 15:02 #8489 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
got error



Debug file information:
custom.hal:6: Pin 'halui.mdi-command-00' does not exist
16078

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

More
04 Apr 2011 15:11 #8490 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Sorry, that needs to go in your custom_postgui.hal

John

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

More
04 Apr 2011 15:14 - 04 Apr 2011 15:31 #8492 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
NP, REALLY appreciate the time and help !

Debug file information:
custom_postgui.hal:6: Pin 'halui.mdi-command-00' does not exist

can i add pin(s) by

....... ....halui-mdi-command-01 .......
....... ....halui-mdi-command-02 .......
....... ....halui-mdi-command-03 .......
an so forth ?
as long as i have 'pins' :)
Last edit: 04 Apr 2011 15:31 by piasdom.

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

More
04 Apr 2011 15:31 #8493 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Ah, your missing the last bit to the puzzle.
In your ini file in the [HAL] section add

HALUI = halui

John

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

More
04 Apr 2011 15:36 - 04 Apr 2011 15:42 #8494 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
:):):):):):):)::):):)

THANKS

so they're three files i need to work with to get buttons ?
this gives me a great start.....THANKS

and can i add buttons(s) by

....... ....halui-mdi-command-01 .......
....... ....halui-mdi-command-02 .......
....... ....halui-mdi-command-03 .......
an so forth ?
as long as i have 'pins'

i'm trying to get it to home(i think of homing as zeroing XYZ)
without moving the table. is this possible with pyvcp ?
Last edit: 04 Apr 2011 15:42 by piasdom.

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

More
04 Apr 2011 15:38 #8495 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Yes, as far as I know that is the way. Just remember to add the MDI command into the [HALUI] section of the ini. Let me know how it works.

John

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

More
04 Apr 2011 15:58 #8496 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
cool i will.

can i get an example somewhere of more then on button ?

i have this in custom_postgui.hal;

# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home

# home all button
net remote-home-all halui.mdi-command-01 <= pyvcp.home-all

but it tells me pyvcp.home-all doesn't exist.
i'm guessing i'm naming something in the second button wrong.

i have this in xml;

<pyvcp>
<button>
<halpin>"home-all"</halpin>
<text>"Home All"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>

if i could see the pin naming format better, it would help.

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

More
04 Apr 2011 16:03 - 04 Apr 2011 16:04 #8497 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
the <pyvcp> </pyvcp> tags need to only be in the .xml file once and wrap around all the rest.

As far as I know there is no G Code that will cause a "home all" to happen. What did you have in mind there?

John
Last edit: 04 Apr 2011 16:04 by BigJohnT.

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

More
04 Apr 2011 16:15 #8498 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
when i start emc, i have to home(zero) each axis.
i have to click on each one - x then "home axis", y "home axis", z "home axis"
i'm trying to be able to home all at once.
i did something before(in ini i think) that gave me a "home all" button on the left, instead of home.
but then i couldn't home each axis individually. so when i zero X, y and z had to be at zero. which is
not possible with me.(don't think it's possible for ANYONE:)

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

More
04 Apr 2011 16:21 #8499 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
If you don't have home switches you can't get the "Home All" button on the left.

However now that you have halui loaded some other options show up.

www.linuxcnc.org/component/option,com_ku...o,8498/lang,english/

I assume the halui.home-all pin requires you to have home switches but who knows give it a try.

change your

# home all button
net remote-home-all halui.mdi-command-01 <= pyvcp.home-all

to

# home all button
net remote-home-all halui.home-all <= pyvcp.home-all

and see what happens when you press it.

John

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

Time to create page: 0.102 seconds
Powered by Kunena Forum