How do I add a 2nd Jog Speed Slider and Home All?

More
05 Dec 2011 02:03 - 05 Dec 2011 02:04 #15386 by Harry_Y
I have been trying to customize my display and have added Jog and Home buttons.

I would like to have a second Jog Slider for The A (rotary) Axis
That I can set from 1-1500 that would control only the A axis
(Similar to the Second Jog speed Slider on the main screen.)

Is this possible?

-

I also have added individual Home buttons but would like to have
a Home All button that would home all of the axis with a single button.

Can this be done?

-

I am not using any home switches and as it is now when I push the home button
it sets the axis to 0.0 is there a way to instead tell it to go home (ex g00 x0.0)?

-

Thank you



my "custom_postgui.hal"

# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel) starts

# connect the X pyVCP buttons
net my-jogxminus halui.jog.0.minus <= pyvcp.x-minus
net my-jogxplus halui.jog.0.plus <= pyvcp.x-plus

# connect the Y pyVCP buttons
net my-jogyminus halui.jog.1.minus <= pyvcp.y-minus
net my-jogyplus halui.jog.1.plus <= pyvcp.y-plus

# connect the Z pyVCP buttons
net my-jogzminus halui.jog.2.minus <= pyvcp.z-minus
net my-jogzplus halui.jog.2.plus <= pyvcp.z-plus

# connect the A pyVCP buttons
net my-jogaminus halui.jog.3.minus <= pyvcp.a-minus
net my-jogaplus halui.jog.3.plus <= pyvcp.a-plus

# connect the pyVCP jog speed slider
net my-jogspeed halui.jog-speed <= pyvcp.jog-speed-f

# connect the home pins
net my-homex halui.joint.0.home <= pyvcp.x-home
net my-homey halui.joint.1.home <= pyvcp.y-home
net my-homez halui.joint.2.home <= pyvcp.z-home
net my-homea halui.joint.3.home <= pyvcp.a-home



My "custompanel.xml"

<?xml version='1.0' encoding='UTF-8'?>
<pyvcp>

<labelframe text="Jog Axis">
<font>("Helvetica",16)</font>

<!-- the X jog buttons -->
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"x-plus"</halpin>
<text>"X+"</text>
</button>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"x-minus"</halpin>
<text>"X-"</text>
</button>
</hbox>

<!-- the Y jog buttons -->
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"y-plus"</halpin>
<text>"Y+"</text>
</button>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"y-minus"</halpin>
<text>"Y-"</text>
</button>
</hbox>

<!-- the Z jog buttons -->
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"z-plus"</halpin>
<text>"Z+"</text>
</button>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"z-minus"</halpin>
<text>"Z-"</text>
</button>
</hbox>

<!-- the A jog buttons -->
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"a-plus"</halpin>
<text>"A+"</text>
</button>
<button>
<font>("Helvetica",20)</font>
<width>3</width>
<halpin>"a-minus"</halpin>
<text>"A-"</text>
</button>
</hbox>

<!-- the jog speed slider -->
<vbox>
<relief>RAISED</relief>
<bd>3</bd>
<label>
<text>"Jog Speed"</text>
<font>("Helvetica",16)</font>
</label>
<scale>
<font>("Helvetica",14)</font>
<halpin>"jog-speed"</halpin>
<resolution>1</resolution>
<orient>HORIZONTAL</orient>
<min_>1</min_>
<max_>24</max_>
</scale>
</vbox>
</labelframe>

<!-- the home x,y,z buttons -->
<labelframe text="Home Axis">
<font>("Helvetica",16)</font>

<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",14)</font>
<width>12</width>
<halpin>"x-home"</halpin>
<text>"X-Axis"</text>
</button>
</hbox>

<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",14)</font>
<width>12</width>
<halpin>"y-home"</halpin>
<text>"Y-Axis"</text>
</button>
</hbox>

<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",14)</font>
<width>12</width>
<halpin>"z-home"</halpin>
<text>"Z-Axis"</text>
</button>
</hbox>

<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<font>("Helvetica",14)</font>
<width>12</width>
<halpin>"a-home"</halpin>
<text>"A-Axis"</text>
</button>
</hbox>

</labelframe>

</pyvcp>

---
Attachments:
Last edit: 05 Dec 2011 02:04 by Harry_Y.

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

More
05 Dec 2011 08:58 #15393 by Rick G
Have you looked here...

www.linuxcnc.org/wiki/emcinfo.pl?Adding_Custom_MDI_Buttons

You could also connect the button to a o file..

linuxcnc.org/docs/html/gcode_main.html#r3_7
To retract the z first

say program the file with
...
G0 Z0
G0 X0Y0
...

Rick G

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

More
05 Dec 2011 13:18 #15403 by BigJohnT
Harry_Y wrote:

I also have added individual Home buttons but would like to have
a Home All button that would home all of the axis with a single button.

Can this be done?


You can only have a home all button when you have home switches and home sequence set up for all the axis.

www.linuxcnc.org/docview/html/config_ini_config.html#sub:[AXIS]-section

John

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

More
05 Dec 2011 14:23 - 05 Dec 2011 14:24 #15405 by Harry_Y
Thank you

Looks like I have more reading to do.


Any thoughts on the second speed slider?
Last edit: 05 Dec 2011 14:24 by Harry_Y.

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

More
05 Dec 2011 14:39 #15407 by andypugh
Harry_Y wrote:

I am not using any home switches and as it is now when I push the home button
it sets the axis to 0.0 is there a way to instead tell it to go home (ex g00 x0.0)?-


Not really, as without home switches, how is EMC2 meant to know where home is?

Or do you mean "go to (0,0,0) in the current (possibly offset) coordinate system" ? In that case you can do it with an MDI_COMMAND
www.linuxcnc.org/docview/html/gui_halui.html#sub:MDI

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

More
05 Dec 2011 14:46 #15408 by Harry_Y
andypugh wrote:

Harry_Y wrote:

I am not using any home switches and as it is now when I push the home button
it sets the axis to 0.0 is there a way to instead tell it to go home (ex g00 x0.0)?-


Not really, as without home switches, how is EMC2 meant to know where home is?

Or do you mean "go to (0,0,0) in the current (possibly offset) coordinate system" ? In that case you can do it with an MDI_COMMAND
www.linuxcnc.org/docview/html/gui_halui.html#sub:MDI



Yes, since Home pretty much changes for what I'm doing
(probably not the best but for me it is the easiest).

At the start of the job I tell the machine where "Home" 0,0,0 is
then all cuts are referenced from that point.

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

Time to create page: 0.130 seconds
Powered by Kunena Forum