Advanced Search

Search Results (Searched for: )

  • piasdom
  • piasdom's Avatar
04 Apr 2011 17:43
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

in the ini you typed MDI_COMMAND = G0 x0 y0 z0.
so i would write HOME_ALL = g0 X? Y? X? in my ini?
in the linking, it's mdi-command-00. i know it can't be capitalized, but it goes from -(minus sign) to _(underscore)
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 17:14
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

halui.mdi-command- has to be one of the MDI commands in the ini file.

But not halui pins.

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 17:11
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

does halui._____ have to be a command from the list of MDI commands?
as in G0 X0 Y0 Z0
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 17:10 - 04 Apr 2011 17:11
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Almost,

correct
.xml creates the button
custom_postgui.hal links the button

and .ini defines the button = not exactly, the ini defines the MDI command only so it has to be something that you can type in the MDI window to work as a halui.mdi-command-nn

net is a command = correct
remote-Home-All is the name of the button.(can be whatever name i want? ) = correct almost it is the signal name not the button name

halui.Home-All is the pin(don't know if halui needs to be there) yes, halui must be there and I don't think you can change the spelling to caps but not sure so best to just have halui.home-all

<= is the linking = incorrect the <= does nothing it is there to help/confuse humans only

pyvcp.Home-All is from xml file = correct that is the name of the button pin

The error is probably the caps in the halui pin name...

Take a moment and read this couple of pages it might make more sense now that you have done a bit of hal.

www.linuxcnc.org/docview/html/hal_basic_hal.html

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 17:00
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

if i got this right;

.xml creates the button
custom_postgui.hal links the button
and .ini defines the button

net remote-Home-All halui.Home-All <= pyvcp.Home-All

net is a command
remote-Home-All is the name of the button.(can be whatever name i want? )
halui.Home-All is the pin(don't know if halui needs to be there)
<= is the linking
pyvcp.Home-All is from xml file

so far i have this;
=================================================================================
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel) starts

# 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.Home-All <= pyvcp.Home-All
================================================================================
but it errors with halui.Home-All does not exist.

i know net starts it
net _______ halui._______ <= pyvcp._______
do these(net,halui,pyvcp) "HAVE" to be in the linking ?
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 16:21
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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
  • piasdom
  • piasdom's Avatar
04 Apr 2011 16:15
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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:)
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 16:03 - 04 Apr 2011 16:04
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:58
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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.
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:38
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:36 - 04 Apr 2011 15:42
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

:):):):):):):)::):):)

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 ?
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:31
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Ah, your missing the last bit to the puzzle.
In your ini file in the [HAL] section add

HALUI = halui

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:14 - 04 Apr 2011 15:31
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

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' :)
  • BigJohnT
  • BigJohnT's Avatar
04 Apr 2011 15:11
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Sorry, that needs to go in your custom_postgui.hal

John
  • piasdom
  • piasdom's Avatar
04 Apr 2011 15:02
Replied by piasdom on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

got error



Debug file information:
custom.hal:6: Pin 'halui.mdi-command-00' does not exist
16078
Displaying 285346 - 285360 out of 286480 results.
Time to create page: 9.681 seconds
Powered by Kunena Forum