G96 not responding/clipping to max rpm speed assigned
- ldmarsaglia
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 2
30 Apr 2020 14:12 #166219
by ldmarsaglia
G96 not responding/clipping to max rpm speed assigned was created by ldmarsaglia
Hello to all,
I'm more used to the mailing list so it's no common for me to post here, but since here I see a lot of movement may be this happened to someone else.
I'm running Debian Wheezy with LinuxCNC 2.8.0 version. The machine is a Mazak QT20 lathe that was recently converted. The spindle motor is driven by a Yaskawa V1000 VFD and I'm using as speed command reference a pulse train that I'm generating with a mesa 7i52s. The feedback is a 1024 PPR encoder mounted on the spindle with a 1 to 1 ratio. The spindle is working fine, if I issue an mdi command I can vary the spindle speed without any problems. The readings on the encoder (although noisy) correspond to the ones in the commanded speed I see on the motion component.
The problem is, any time I issue a G96 code, in this case G96 D600 S40 M4, the spindle accelerates to the maximum speed programmed (600 RPM) and makes all the cut in that speed. The G96 command seems to work, because If I set different max speeds I get different feed rates, and also I can see the feed rate indicator being a little noisy because of the encoder velocity feedback. The problem is I'm not getting the RPMs of the spindle to vary acording to the diameter of the X axis. I'm using G54 coordinate system and the tool diameter is 0 at the line of the spindle axis. I have negative values almost on all the X axis in machine coordinates but I don't think that's a problem.
Please let me know if there is something I'm missing here and thank you in advance for your help!
Leonardo
I'm more used to the mailing list so it's no common for me to post here, but since here I see a lot of movement may be this happened to someone else.
I'm running Debian Wheezy with LinuxCNC 2.8.0 version. The machine is a Mazak QT20 lathe that was recently converted. The spindle motor is driven by a Yaskawa V1000 VFD and I'm using as speed command reference a pulse train that I'm generating with a mesa 7i52s. The feedback is a 1024 PPR encoder mounted on the spindle with a 1 to 1 ratio. The spindle is working fine, if I issue an mdi command I can vary the spindle speed without any problems. The readings on the encoder (although noisy) correspond to the ones in the commanded speed I see on the motion component.
The problem is, any time I issue a G96 code, in this case G96 D600 S40 M4, the spindle accelerates to the maximum speed programmed (600 RPM) and makes all the cut in that speed. The G96 command seems to work, because If I set different max speeds I get different feed rates, and also I can see the feed rate indicator being a little noisy because of the encoder velocity feedback. The problem is I'm not getting the RPMs of the spindle to vary acording to the diameter of the X axis. I'm using G54 coordinate system and the tool diameter is 0 at the line of the spindle axis. I have negative values almost on all the X axis in machine coordinates but I don't think that's a problem.
Please let me know if there is something I'm missing here and thank you in advance for your help!
Leonardo
Please Log in or Create an account to join the conversation.
- ldmarsaglia
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 2
30 Apr 2020 14:17 - 30 Apr 2020 14:17 #166220
by ldmarsaglia
Replied by ldmarsaglia on topic G96 not responding/clipping to max rpm speed assigned
By the way, the spindle override slider on AXIS GUI doesn't work either. It only acts as a ON/OFF switch turning the spindle off at 0%.
I don't know if this is some kind of bug and I need to re install on another distro.
I don't know if this is some kind of bug and I need to re install on another distro.
Last edit: 30 Apr 2020 14:17 by ldmarsaglia. Reason: wrong word
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19200
- Thank you received: 6436
30 Apr 2020 14:24 #166222
by tommylight
Replied by tommylight on topic G96 not responding/clipping to max rpm speed assigned
First you should fix the encoder issue, then have a read here, maybe there is something that will help while you wait for a response. I never used it.
www.google.com/search?client=firefox-b-e...+site%3Alinuxcnc.org
www.google.com/search?client=firefox-b-e...+site%3Alinuxcnc.org
Please Log in or Create an account to join the conversation.
- ldmarsaglia
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 2
30 Apr 2020 17:09 #166229
by ldmarsaglia
Replied by ldmarsaglia on topic G96 not responding/clipping to max rpm speed assigned
Solved!
I was using spindle.M.speed−cmd−rps to drive my stepgen and VFD and this pin sets to the maximum speed when in G96. I'm now using spindle.M.speed−out−rps and it works perfectly. But that makes me question the naming on these pins. Aren't all the CMD tagged pins supposed to be used to feed PWM, Stepgens, etc?
I was using spindle.M.speed−cmd−rps to drive my stepgen and VFD and this pin sets to the maximum speed when in G96. I'm now using spindle.M.speed−out−rps and it works perfectly. But that makes me question the naming on these pins. Aren't all the CMD tagged pins supposed to be used to feed PWM, Stepgens, etc?
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19200
- Thank you received: 6436
30 Apr 2020 17:24 #166230
by tommylight
Replied by tommylight on topic G96 not responding/clipping to max rpm speed assigned
Thank for reporting back.
And analogout's are used for Mesa 7i77 for servo drives, but i am not sure how that is related to the cmd pin in PID, might be cmd is used for inside calculations and out is used for actual output.
And analogout's are used for Mesa 7i77 for servo drives, but i am not sure how that is related to the cmd pin in PID, might be cmd is used for inside calculations and out is used for actual output.
The following user(s) said Thank You: ldmarsaglia
Please Log in or Create an account to join the conversation.
- ldmarsaglia
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 2
03 May 2020 03:39 #166465
by ldmarsaglia
Replied by ldmarsaglia on topic G96 not responding/clipping to max rpm speed assigned
Well, talking in the mailing list Andy showed me the source code and this is commented but not documented in the manuals.
Heres the link: github.com/LinuxCNC/linuxcnc/commit/a1c6...5afe590ebfcf1f25c309
Apparently the difference in the pins is for spindles that work with gearboxes.
Heres the link: github.com/LinuxCNC/linuxcnc/commit/a1c6...5afe590ebfcf1f25c309
Apparently the difference in the pins is for spindles that work with gearboxes.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds