Z axis stalling when jogging from pendant

More
01 Nov 2017 19:39 #101147 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! :)

Thanks,
Vasi

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

More
03 Nov 2017 16:29 #101266 by andypugh
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

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

More
09 Nov 2017 07:57 #101538 by vmihalca
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! :)

Also I would have another question! :)
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! :)

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

More
09 Nov 2017 09:55 #101541 by andypugh
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

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

More
11 Nov 2017 21:00 #101666 by vmihalca
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

File Attachment:

File Name: custom_201...11-2.hal
File Size:2 KB
Attachments:

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

More
11 Nov 2017 21:11 #101667 by andypugh
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.

More
11 Nov 2017 21:38 #101669 by vmihalca
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!

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

More
11 Nov 2017 21:42 #101670 by andypugh
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

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

More
11 Nov 2017 21:50 #101672 by vmihalca
It works! :D
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 :)
Thanks again! :)

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

More
11 Nov 2017 21:56 #101673 by andypugh
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.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum