Subroutine GUI
- piasdom
-
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 9
04 Apr 2011 14:46 #8486
by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i was thinking about this and remembered i need to "link" the pins:huh: ?
i forgot the file i added the link into. was it axis.hal ?
[HAL]
HALFILE = Axis.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0
i forgot the file i added the link into. was it axis.hal ?
[HAL]
HALFILE = Axis.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0
Please Log in or Create an account to join the conversation.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 3990
- Thank you received: 994
04 Apr 2011 14:57 #8488
by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Yes in your custom.hal file add the following
# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home
The net command links them.
John
# MDI commands
# rapid to home button
net remote-rapid-home halui.mdi-command-00 <= pyvcp.rapid-to-home
The net command links them.
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 9
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
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.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 3990
- Thank you received: 994
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
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 9
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'
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.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 3990
- Thank you received: 994
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
In your ini file in the [HAL] section add
HALUI = halui
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 9
04 Apr 2011 15:36 - 04 Apr 2011 15:42 #8494
by piasdom






:


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 ?
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.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 3990
- Thank you received: 994
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
John
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 9
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.
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.
- BigJohnT
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 3990
- Thank you received: 994
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
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.
Time to create page: 0.263 seconds