2 Independent Jog Speed Controls (One for A-Axis)
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
18 Jan 2015 02:26 - 01 Feb 2015 00:33 #55130
by Askjerry
2 Independent Jog Speed Controls (One for A-Axis) was created by Askjerry
I have my "MONSTER" mill set up and running, you can search the threads for much more detail... but this was an issue I wanted to resolve in a separate thread as others may also be looking for an answer to this question.
I set up a milling machine with X-Y-Z-A axis... it is working just fine.
I added a pyVCP panel to the setup which is also working fairly well.
I noticed that when running the A-Axis it was going very slowly... but then I figured out why... the AXIS panel has TWO JOG SPEED controls... one for the X-Y-Z axis... and the second for the A-Axis only. The X-Y-Z has a top speed of 60 inches per minute, and the A-Axis has a top speed of 3600 deg per minute.
Ok... I get that... I need to create a second JOG SPEED slider in my panel and set up a proper NET to make it function.
Well... it's been 8 hours... and I'm just not getting it right... here are some code snippets...
THE pyVCP XML Code
And I'm pretty sure this line : <halpin>"rotary-jog-speed"</halpin> needs to be changed... or that the reference in the post gui file needs to be changed... but I'm going to admit that I only partially understand this functionality... so your help is really appreciated.
Custom Post GUI File Snippet
And I can identify that my issue in this section is this: halui.rotary-jog-speed
I can comment out this line... # net panel-rotary-jogspeed halui.rotary-jog-speed <= pyvcp.rotary-jog-speed-f so it looks like this...
And the machine AXIS will start up.
So I need to know what halui signal I'm looking for... it appears halui.jog-speed is only for the XYZ... but I can't seem to find a reference to an a-jog-speed or 3-jog-speed so what am I looking for? Or what are the code replacements to try??
Thanks,
Jerry
I set up a milling machine with X-Y-Z-A axis... it is working just fine.
I added a pyVCP panel to the setup which is also working fairly well.
I noticed that when running the A-Axis it was going very slowly... but then I figured out why... the AXIS panel has TWO JOG SPEED controls... one for the X-Y-Z axis... and the second for the A-Axis only. The X-Y-Z has a top speed of 60 inches per minute, and the A-Axis has a top speed of 3600 deg per minute.
Ok... I get that... I need to create a second JOG SPEED slider in my panel and set up a proper NET to make it function.
Well... it's been 8 hours... and I'm just not getting it right... here are some code snippets...
THE pyVCP XML Code
<!-- the X-Y-Z jog speed slider -->
<vbox>
<relief>RAISED</relief>
<bd>2</bd>
<label>
<text>"X/Y/Z Jog Speed"</text>
<font>("Helvetica",10)</font>
</label>
<scale>
<font>("Helvetica",10)</font>
<halpin>"jog-speed"</halpin>
<orient>HORIZONTAL</orient>
<resolution>1</resolution>
<min_>1</min_>
<max_>60</max_>
</scale>
</vbox>
<!-- END JOG SLIDER -->
<!-- the -A- jog speed slider -->
<vbox>
<relief>RAISED</relief>
<bd>2</bd>
<label>
<text>"Rotary Jog Speed"</text>
<font>("Helvetica",10)</font>
</label>
<scale>
<font>("Helvetica",10)</font>
<halpin>"rotary-jog-speed"</halpin>
<orient>HORIZONTAL</orient>
<resolution>1</resolution>
<min_>1</min_>
<max_>3600</max_>
</scale>
</vbox>
<!-- END JOG SLIDER -->
And I'm pretty sure this line : <halpin>"rotary-jog-speed"</halpin> needs to be changed... or that the reference in the post gui file needs to be changed... but I'm going to admit that I only partially understand this functionality... so your help is really appreciated.
Custom Post GUI File Snippet
# connect the PyVCP jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
net panel-rotary-jogspeed halui.rotary-jog-speed <= pyvcp.rotary-jog-speed-f
And I can identify that my issue in this section is this: halui.rotary-jog-speed
I can comment out this line... # net panel-rotary-jogspeed halui.rotary-jog-speed <= pyvcp.rotary-jog-speed-f so it looks like this...
# connect the PyVCP jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
# net panel-rotary-jogspeed halui.rotary-jog-speed <= pyvcp.rotary-jog-speed-f
And the machine AXIS will start up.
So I need to know what halui signal I'm looking for... it appears halui.jog-speed is only for the XYZ... but I can't seem to find a reference to an a-jog-speed or 3-jog-speed so what am I looking for? Or what are the code replacements to try??
Thanks,
Jerry
Last edit: 01 Feb 2015 00:33 by Askjerry. Reason: Clarity
Please Log in or Create an account to join the conversation.
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
01 Feb 2015 00:34 - 29 Mar 2015 15:00 #55510
by Askjerry
Replied by Askjerry on topic 2 Independent Jog Speed Controls (One for A-Axis)
I'm really having a hard time believing that with all the programmers in this forum... nobody here has ever figured out the signal that I need to point to.
The XYZ axis slider is pointed at halui.jog-speed I know this... I have it working in my pyVCP panel.
It effects the LINEAR jog speed... but I need to know the variable / signal for the ROTATIONAL jog speed.
Anyone??? I'm just not seeing it...
I know whoever wrote AXIS must know... they have it working here!
Thanks,
Jerry
The XYZ axis slider is pointed at halui.jog-speed I know this... I have it working in my pyVCP panel.
It effects the LINEAR jog speed... but I need to know the variable / signal for the ROTATIONAL jog speed.
Anyone??? I'm just not seeing it...
I know whoever wrote AXIS must know... they have it working here!
Thanks,
Jerry
Last edit: 29 Mar 2015 15:00 by Askjerry.
Please Log in or Create an account to join the conversation.
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
22 Aug 2015 10:29 - 22 Aug 2015 10:31 #61640
by Askjerry
Replied by Askjerry on topic 2 Independent Jog Speed Controls (One for A-Axis)
Still no reply... wow.
Of all the people who modify and write software for AXIS... nobody knows the appropriate signal for the second FEED SPEED slider?
The first one was easy...
# connect the PyVCP jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
I still cannot seem to find it... any recommended reading? Any suggestions??
I really want to get this implemented as the A-Axis can easily be 3x or 4x the jog speed for the X / Y / Z axis.
Thanks,
Jerry
Of all the people who modify and write software for AXIS... nobody knows the appropriate signal for the second FEED SPEED slider?
The first one was easy...
# connect the PyVCP jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
I still cannot seem to find it... any recommended reading? Any suggestions??
I really want to get this implemented as the A-Axis can easily be 3x or 4x the jog speed for the X / Y / Z axis.
Thanks,
Jerry
Last edit: 22 Aug 2015 10:31 by Askjerry.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
22 Aug 2015 22:14 - 22 Aug 2015 22:28 #61651
by PCW
Replied by PCW on topic 2 Independent Jog Speed Controls (One for A-Axis)
man halui
( since there _is_ only one jog speed setting available its up to you to change this
to an appropriate axis dependent value either with a mux in hal or elsewhere )
( since there _is_ only one jog speed setting available its up to you to change this
to an appropriate axis dependent value either with a mux in hal or elsewhere )
Last edit: 22 Aug 2015 22:28 by PCW.
Please Log in or Create an account to join the conversation.
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
22 Aug 2015 23:24 - 22 Aug 2015 23:26 #61652
by Askjerry
Replied by Askjerry on topic 2 Independent Jog Speed Controls (One for A-Axis)
I'm afraid i don't understand you... so far, everything I know about AXIS and HAL has been self-taught.
I can make the PYVCP panel and include a second slider... but in the HAL file is where I have the issue...
# connect the PyVCP XYZ jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
# connect the PyVCP A jog speed slider
net panel-jog-a-speed ???????? <= pyvcp.jog-a-speed-f
Presuming I make the PYVCP slider control thus...
<vbox>
<relief>RAISED</relief>
<bd>2</bd>
<label>
<text>" A Jog Speed"</text>
<font>("Helvetica",10)</font>
</label>
<scale>
<font>("Helvetica",10)</font>
<halpin>"jog-a-speed"</halpin>
<orient>HORIZONTAL</orient>
<resolution>1</resolution>
<min_>1</min_>
<max_>3600</max_>
</scale>
</vbox>
I need the HAL code, or instructions... that's what i am missing. I need to emulate what happens when you manually slide the second slider in AXIS. It sounds like what you are suggesting is some kind of a PY program that gets called or something similar... not something I have done as of yet. Can you please post more details?
thanks,
Jerry
I can make the PYVCP panel and include a second slider... but in the HAL file is where I have the issue...
# connect the PyVCP XYZ jog speed slider
net panel-jogspeed halui.jog-speed <= pyvcp.jog-speed-f
# connect the PyVCP A jog speed slider
net panel-jog-a-speed ???????? <= pyvcp.jog-a-speed-f
Presuming I make the PYVCP slider control thus...
<vbox>
<relief>RAISED</relief>
<bd>2</bd>
<label>
<text>" A Jog Speed"</text>
<font>("Helvetica",10)</font>
</label>
<scale>
<font>("Helvetica",10)</font>
<halpin>"jog-a-speed"</halpin>
<orient>HORIZONTAL</orient>
<resolution>1</resolution>
<min_>1</min_>
<max_>3600</max_>
</scale>
</vbox>
I need the HAL code, or instructions... that's what i am missing. I need to emulate what happens when you manually slide the second slider in AXIS. It sounds like what you are suggesting is some kind of a PY program that gets called or something similar... not something I have done as of yet. Can you please post more details?
thanks,
Jerry
Last edit: 22 Aug 2015 23:26 by Askjerry.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
22 Aug 2015 23:27 #61653
by PCW
Replied by PCW on topic 2 Independent Jog Speed Controls (One for A-Axis)
Did you read the halui manual page to find out what pins are available and what they do?
Please Log in or Create an account to join the conversation.
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
22 Aug 2015 23:38 - 22 Aug 2015 23:42 #61654
by Askjerry
Replied by Askjerry on topic 2 Independent Jog Speed Controls (One for A-Axis)
I have looked at this document:
HALI MANUAL
Specifically:
halui.jog-speed float in --- pin for setting jog speed for plus/minus jogging.
I was playing around with halui.jog.N.______ but not successfully.
I have also read the Integrator Manual : Integrator Manual
That was very helpful in getting the first panel to function properly... but no reference (that i could find) to the second jog speed.
Specifically:
halui.jog-speed float in --- pin for setting jog speed for plus/minus jogging.
I was playing around with halui.jog.N.______ but not successfully.
I have also read the Integrator Manual : Integrator Manual
That was very helpful in getting the first panel to function properly... but no reference (that i could find) to the second jog speed.
Last edit: 22 Aug 2015 23:42 by Askjerry.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
22 Aug 2015 23:41 #61655
by PCW
Replied by PCW on topic 2 Independent Jog Speed Controls (One for A-Axis)
Right, so notice there is only one jog speed setting: halui.jog-speed
this means that you need to change the value of this pin depending on which
axis you are jogging if you want A to jog at a different rate than X,Y,Z
this means that you need to change the value of this pin depending on which
axis you are jogging if you want A to jog at a different rate than X,Y,Z
Please Log in or Create an account to join the conversation.
- Askjerry
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 313
- Thank you received: 35
22 Aug 2015 23:50 - 23 Aug 2015 00:53 #61656
by Askjerry
Replied by Askjerry on topic 2 Independent Jog Speed Controls (One for A-Axis)
I get that...
I could create the second slider... and it would hold a valid number... the issue is... when I click the A-MINUS or the A-PLUS button... they look like this in the PYVCP...
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<padx>25</padx>
<font>("Helvetica",14)</font>
<width>3</width>
<halpin>"a-minus"</halpin>
<text>"A-"</text>
</button>
<button>
<padx>25</padx>
<font>("Helvetica",14)</font>
<width>3</width>
<halpin>"a-plus"</halpin>
<text>"A+"</text>
</button>
</hbox>
They would need TWO halpins assigned...
and the second one would need to link panel-jog-a-speed to halui.jog-speed
Hummm... I have not tried putting two halpin references in a single button... I'll give that a try... but honestly, I'll be surprised if it doesn't fail.
Going to try that now...
UPDATE - No, you cannot have two <halpin>__</halpin> in a PYVCP object... or more correctly... you can... but only the last gets accepted, the others are ignored.
I could create the second slider... and it would hold a valid number... the issue is... when I click the A-MINUS or the A-PLUS button... they look like this in the PYVCP...
<hbox>
<relief>RAISED</relief>
<bd>3</bd>
<button>
<padx>25</padx>
<font>("Helvetica",14)</font>
<width>3</width>
<halpin>"a-minus"</halpin>
<text>"A-"</text>
</button>
<button>
<padx>25</padx>
<font>("Helvetica",14)</font>
<width>3</width>
<halpin>"a-plus"</halpin>
<text>"A+"</text>
</button>
</hbox>
They would need TWO halpins assigned...
and the second one would need to link panel-jog-a-speed to halui.jog-speed
Hummm... I have not tried putting two halpin references in a single button... I'll give that a try... but honestly, I'll be surprised if it doesn't fail.
Going to try that now...
UPDATE - No, you cannot have two <halpin>__</halpin> in a PYVCP object... or more correctly... you can... but only the last gets accepted, the others are ignored.
Last edit: 23 Aug 2015 00:53 by Askjerry.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7330
- Thank you received: 1177
22 Aug 2015 23:54 - 22 Aug 2015 23:58 #61657
by BigJohnT
Replied by BigJohnT on topic 2 Independent Jog Speed Controls (One for A-Axis)
Might I suggest that the button that jogs the A axis also set the jog speed from the slider when it is pressed and also the same with other axes.
Edit: a mux2 should do the trick.
JT
Edit: a mux2 should do the trick.
JT
Last edit: 22 Aug 2015 23:58 by BigJohnT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.115 seconds