Z axis stalling when jogging from pendant
01 Nov 2017 19:39 #101147
by vmihalca
Z axis stalling when jogging from pendant was created by vmihalca
Hi guys,
I'm having an issue with my bench lathe that I've converted to cnc.
On the Z axis, when I jog from the keyboard, it does fine in the whole range of speeds, the max speed is 1500mm/min.
When I jog it from the pendant, with the highest x100 set on the pendant, the motor stalls.
I thought is a driver issue, a setting issue or smth...but I've switched the cables with the X axis, and the X motor goes fine, and the Z stalls again. The half nut is not engaged, so its just the screw itself.
If anyone can give me some hints I would be grateful!![:) :)](/media/kunena/emoticons/smile.png)
Thanks,
Vasi
I'm having an issue with my bench lathe that I've converted to cnc.
On the Z axis, when I jog from the keyboard, it does fine in the whole range of speeds, the max speed is 1500mm/min.
When I jog it from the pendant, with the highest x100 set on the pendant, the motor stalls.
I thought is a driver issue, a setting issue or smth...but I've switched the cables with the X axis, and the X motor goes fine, and the Z stalls again. The half nut is not engaged, so its just the screw itself.
If anyone can give me some hints I would be grateful!
![:) :)](/media/kunena/emoticons/smile.png)
Thanks,
Vasi
Please Log in or Create an account to join the conversation.
03 Nov 2017 16:29 #101266
by andypugh
Replied by andypugh on topic Z axis stalling when jogging from pendant
It might be that the commands from the pendant are too "jerky".
This HAL component might help:
linuxcnc.org/docs/2.7/html/man/man9/ilowpass.9.html
This HAL component might help:
linuxcnc.org/docs/2.7/html/man/man9/ilowpass.9.html
Please Log in or Create an account to join the conversation.
09 Nov 2017 07:57 #101538
by vmihalca
Replied by vmihalca on topic Z axis stalling when jogging from pendant
Hi Andy,
I had ilowpass filter but I had wrong values for gain and scale. I've played a bit with the values and now it does exactly what I expect, it also has acceleration/deceleration. Thanks!![:) :)](/media/kunena/emoticons/smile.png)
Also I would have another question!![:) :)](/media/kunena/emoticons/smile.png)
My pendant is for 4 axis and since I'm using a lathe I only use 2 axis. Can I wire one of the other axis inputs so that I can increase/decrease feed override using the MPG wheel?
If so, can you give me some instructions or redirect me to some resources? I'm using Mesa 7i76e.
Thanks!
I had ilowpass filter but I had wrong values for gain and scale. I've played a bit with the values and now it does exactly what I expect, it also has acceleration/deceleration. Thanks!
![:) :)](/media/kunena/emoticons/smile.png)
Also I would have another question!
![:) :)](/media/kunena/emoticons/smile.png)
My pendant is for 4 axis and since I'm using a lathe I only use 2 axis. Can I wire one of the other axis inputs so that I can increase/decrease feed override using the MPG wheel?
If so, can you give me some instructions or redirect me to some resources? I'm using Mesa 7i76e.
Thanks!
![:) :)](/media/kunena/emoticons/smile.png)
Please Log in or Create an account to join the conversation.
09 Nov 2017 09:55 #101541
by andypugh
Replied by andypugh on topic Z axis stalling when jogging from pendant
Yes, you can easily use the jog wheel for feed override and spindle override.
You probably already have the wheel counts connected to axis.0.jog-counts and axis.2.jog-counts. You also need to connect it to halui.spindle-override.counts and halui.feed-override.counts. Then just as the selector pins are connected to axis.0.jog-enable and axis.2.jog-enable you need to connect other pins to halui.spindle-override.count-enable and halui.feed-override.count-enable.
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
You probably already have the wheel counts connected to axis.0.jog-counts and axis.2.jog-counts. You also need to connect it to halui.spindle-override.counts and halui.feed-override.counts. Then just as the selector pins are connected to axis.0.jog-enable and axis.2.jog-enable you need to connect other pins to halui.spindle-override.count-enable and halui.feed-override.count-enable.
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:00 #101666
by vmihalca
Replied by vmihalca on topic Z axis stalling when jogging from pendant
Hi Andy,
I did managed to make the feed override slider move when I jog the weel. Unfortunately due to ilowpass.scale, on one mpg pulse it goes from 0 to 200.
I would like to increase by 1% on each pulse. What setting do I need for this?
I'm attaching the .hal file so that you can understand better the settings I have.
Thanks
I did managed to make the feed override slider move when I jog the weel. Unfortunately due to ilowpass.scale, on one mpg pulse it goes from 0 to 200.
I would like to increase by 1% on each pulse. What setting do I need for this?
I'm attaching the .hal file so that you can understand better the settings I have.
Thanks
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:11 #101667
by andypugh
Replied by andypugh on topic Z axis stalling when jogging from pendant
You need much smaller increments for the jogs. (you need to divide them by the ilowpass scale).
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:38 #101669
by vmihalca
Replied by vmihalca on topic Z axis stalling when jogging from pendant
For the x and z axis, the increments are fine, they move as they should. I don't know where to specify the increments for the feed rate. If you can have a look over the file, perhaps you can figure it out.
Thanks man!
Thanks man!
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:42 #101670
by andypugh
Replied by andypugh on topic Z axis stalling when jogging from pendant
Just don't use the ilowpass-ed counts for override
Change
net encoder-counts <= ilowpass.0.out
net encoder-counts => axis.0.jog-counts
net encoder-counts => axis.2.jog-counts
net encoder-counts => halui.feed-override.counts
To
net encoder-counts <= ilowpass.0.out
net encoder-counts => axis.0.jog-counts
net encoder-counts => axis.2.jog-counts
net mpg-out => halui.feed-override.counts
Change
net encoder-counts <= ilowpass.0.out
net encoder-counts => axis.0.jog-counts
net encoder-counts => axis.2.jog-counts
net encoder-counts => halui.feed-override.counts
To
net encoder-counts <= ilowpass.0.out
net encoder-counts => axis.0.jog-counts
net encoder-counts => axis.2.jog-counts
net mpg-out => halui.feed-override.counts
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:50 #101672
by vmihalca
Replied by vmihalca on topic Z axis stalling when jogging from pendant
It works! ![:D :D](/media/kunena/emoticons/laughing.png)
Thanks for being so responsive.
Right now at each pulse it increments by 10%, is there a simple way to increase it just by 1%?
This way the jog wheel would not be so sensitive![:) :)](/media/kunena/emoticons/smile.png)
Thanks again!
![:D :D](/media/kunena/emoticons/laughing.png)
Thanks for being so responsive.
Right now at each pulse it increments by 10%, is there a simple way to increase it just by 1%?
This way the jog wheel would not be so sensitive
![:) :)](/media/kunena/emoticons/smile.png)
Thanks again!
![:) :)](/media/kunena/emoticons/smile.png)
Please Log in or Create an account to join the conversation.
11 Nov 2017 21:56 #101673
by andypugh
Replied by andypugh on topic Z axis stalling when jogging from pendant
I see halui.feed-override.scale and halui.spindle-override.scale in the manual page
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
Try adding
setp halui.feed-override.scale 0.1
and see what happens.
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
Try adding
setp halui.feed-override.scale 0.1
and see what happens.
Please Log in or Create an account to join the conversation.
Time to create page: 0.102 seconds