Subroutine GUI

More
30 Mar 2011 21:07 #8300 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
is ngcgui just a simulator? i guess pyvcp. i want to actually controll the machine.
and Thanks

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

More
30 Mar 2011 21:12 #8302 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
No, ngcgui is a way to put together subroutines to make a program. For example on my lathe I have subroutines for facing, OD turning, drilling, tapping, parting off. So using ngcgui I can put the parameters in for each one and set the order that they are created then run the complete program. It is a very powerful tool and for me almost eliminates any hand coding or CAM needs for my lathe.

I have pyvcp buttons programmed to do things like rapid to home position on my plasma...

What are you trying to do/control?

John

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

More
31 Mar 2011 14:21 #8330 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i understand better what they do now(thanks)
pyvpc is what i am looking for. but with ngcgui i would like rapid home/home all,
and such. i seen you have spindle speed on yours', don't need that as i can't control
my spindle. but custom buttons/tabs sounds great. just don't know which file to start
with. i could figure a lot of it if only i could "see" the file format. i usually look on the net
to see examples, then i copy.paste. helped with my ini and video :) then as i see "what" does "what",
i can write my own. Thanks

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

More
31 Mar 2011 16:26 #8333 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
If you have home switches and have defined the homing sequence in your ini file you will have the home all button.

To get the Rapid to Home button you need to add a line in your ini file in the [HALUI] section:

MDI_COMMAND = G0 X0 Y0 Z0


and in your pyvcp xml file add this

<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
</labelframe>

and in your postgui.hal file add this

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

John

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

More
31 Mar 2011 17:59 - 31 Mar 2011 18:05 #8334 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i did all that and got error. i didn't have a [HALUI] section, so i added it. after the [HAL] section
and before the [TRAJ]. don't know if it matters. i couldn't copy/paste the error, even with Ctrl+C.
but i took out what i put in the ini file and got the same error. so i put that back in the ini and took out what
i put in the postgui.hal file. i didn't have a postgui.hal, but i had a custom_postgui.hal so i put it in there. now that
i took it out, emc2 works. i have emc2 2.4.6. and i don't have any home/limit switches
Last edit: 31 Mar 2011 18:05 by piasdom.

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

More
31 Mar 2011 18:28 #8336 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
So did the Rapid to Home button work?

Without homing switches you have to manually home each axis.

John

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

More
31 Mar 2011 18:37 #8337 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
no, no added button. which file works that?
in my MyPVC.xml, i had
<button>
<halpin>"my-button"</halpin>
<text>"ON"</text>
</button>

already in the file, i took it out and still no button.

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

More
31 Mar 2011 19:30 #8340 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
If you didn't have a pyvcp panel before in your xml file you will need the following in your MyPVC.xml file.

<pyvcp>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
</labelframe>
</pyvcp>

Also in your ini file in the [DISPLAY] section you will need

PYVCP = MyPVC.xml

the above line is what loads the pyvcp panel.

Get the button to show up first then the rest will come together.

John

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

More
04 Apr 2011 10:36 - 04 Apr 2011 10:51 #8453 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
ok, i have that in my MyPVC.xml file and PYVCP = MyPVC.xml in the [DISPLAY] of axis.ini.
still no button. will the button be all the way to the right or with the regular buttons on the left ?
could the axis display be over it ? i mean the button is there just covered.
and should the MyPVC.xml file be in the EMC folder or the axis folder?
i tried both :)
Last edit: 04 Apr 2011 10:51 by piasdom.

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

More
04 Apr 2011 11:45 - 04 Apr 2011 11:46 #8467 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
All the files need to be in your emc2/configs/MyPVC directory or what ever the directory is called when you created it.

The button will be in the upper right corner.



John
Attachments:
Last edit: 04 Apr 2011 11:46 by BigJohnT.

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

Time to create page: 0.123 seconds
Powered by Kunena Forum