VMC related HAL questions.
I'm not looking at any pins, the fact that I can stop the spindle with a light touch tells me that there probably is no speed output.When you say there is no speed command, where are you looking?
The screenshot shows a pid.0.output of 325.1263.
Now that I think of it, the pid might might work correctly. If the speed command the pid.0 gets is wrong. The x6 speed problem I still have.
Is it line 11 I should edit?
net spindle-vel-cmd motion.spindle-speed-out pid.0.command
net spindle-vel-cmd motion.spindle-speed-out-rps pid.0.command
Can I write the tolerance like this?
setp orient.0.tolerance [SPINDLE]ORIENT_TOLERANCE
ORIENT_TOLERANCE = (number)
Please Log in or Create an account to join the conversation.
Are you talking about position mode or velocity mode here?
I'm not looking at any pins, the fact that I can stop the spindle with a light touch tells me that there probably is no speed output.When you say there is no speed command, where are you looking?
But orient mode should be using pid.1. You need to see what that one is doing to get orient to work.The screenshot shows a pid.0.output of 325.1263.
Is it line 11 I should edit?
To this?net spindle-vel-cmd motion.spindle-speed-out pid.0.commandnet spindle-vel-cmd motion.spindle-speed-out-rps pid.0.command
Can I write the tolerance like this?And then add this line to the ini.setp orient.0.tolerance [SPINDLE]ORIENT_TOLERANCEORIENT_TOLERANCE = (number)
Yes to all the above.
Please Log in or Create an account to join the conversation.
2. velocity (M3 S60)
I don't know when I can try anything on the machine next time, probably next weekend though
Please Log in or Create an account to join the conversation.
I don't know when I can try anything on the machine next time, probably next weekend though
Sorry not to have been more help. I really don't understand why this is being so difficult.
Please Log in or Create an account to join the conversation.
I changed the line to this:
net spindle-vel-cmd-rps motion.spindle-speed-out-rps pid.0.command
And it seems to work
I also think that orient works when I gave it some room to play (2deg)
Tuning it seems to be really fun if you want it semi fast. Gear driven head with a bit of play in the gears doesn't help..
It takes ages for the spindle to slow down from full speed (M3 S5000 > M5) so I was thinking of wiring up the "quickstop" aka. brake input on the spindle drive. But that might solve it self when I get the tool changer to work as it has to orient before the arm moves?
Please Log in or Create an account to join the conversation.
Whereas my employer has suddenly blocked linuxcnc.org so I can't check the forums at lunch time any more.Yay I could escape work a bit earlier today and try out some things.
You might be able to alter VFD parameters to get a faster response.It takes ages for the spindle to slow down from full speed (M3 S5000 > M5) so I was thinking of wiring up the "quickstop" aka. brake input on the spindle drive. But that might solve it self when I get the tool changer to work as it has to orient before the arm moves?
Please Log in or Create an account to join the conversation.
I haven't found any setting for that. When spindle enable is 0 the drive cuts all power to the motor and it freewheels to a stop.
I did some test cuts tonight and the speed compensation that pid gives is awesome! Motor current peaked at 25A
Rigid tapping seems to be working good to. Haven't tried tapping anything yet though.
Orient is a bit funny still, reacts very fast but when within 5º it slows down to a crawl and sometimes it times out even at 20sec.
Will a bit of "i" help with that? Forgot to try it when I was there.
Moved the atc arm by hand and found out that "orient" need to be enabled when the arm moves out because it sometimes touches the tool and rotate the spindle enough that the tool doesn't seat right in the carousel pocket.
Any thoughts how one would do that?
Please Log in or Create an account to join the conversation.
In orient mode the spindle won't disable the VFD though, it will always provide an output, and possibly a reverse one.Oh man that sucks!
I haven't found any setting for that. When spindle enable is 0 the drive cuts all power to the motor and it freewheels to a stop.
I would expect to need some I, and maybe even a bit of D.Orient is a bit funny still, reacts very fast but when within 5º it slows down to a crawl and sometimes it times out even at 20sec.
Will a bit of "i" help with that? Forgot to try it when I was there.
It's a good thing to practice PID tuning on as a runaway isn't a big deal.
If you have a spindle lock or brake then you could enable that. There is even a motion.spindle-locked pin that could be used to operate it.Moved the atc arm by hand and found out that "orient" need to be enabled when the arm moves out because it sometimes touches the tool and rotate the spindle enough that the tool doesn't seat right in the carousel pocket.
Any thoughts how one would do that?
www.linuxcnc.org/docs/html/man/man9/motion.9.html
Please Log in or Create an account to join the conversation.
Pondering on a small(ish) lathe where I need positioning for drilling off center holes. Yes, there will be a brake on the spindle.
There is no need for super precision but I would like it to be rather good.
If that's not good enough I'll have to add a stepper somewhere
Please Log in or Create an account to join the conversation.
How well does orient do on a quality vfd? Or an Huanyang (or whatever the name is) for that matter?
The only example I have is on a lathe with a very old VFD and rather a direct drive, and I think that the result would disappoint you.
I have seen it work well with a good encoder and a flux-vector drive. But without details of how well you need it to work it is hard to advise.
You could consider using a large servo motor as the lathe spindle motor.
Please Log in or Create an account to join the conversation.