VMC related HAL questions.

More
11 years 4 months ago #59501 by thewho
Replied by thewho on topic VMC related HAL questions.
Gonna try that first thing tomorrow ;)

A couple of questions:
Will G33.1 aka Rigid tapping work when I get this running?
And can you get the PID-parameters changeable in the calibration tool? I have a 4th tab but it's empty.

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

More
11 years 4 months ago #59502 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: Will G33.1 aka Rigid tapping work when I get this running?


It should.

And can you get the PID-parameters changeable in the calibration tool? I have a 4th tab but it's empty.


I tried, and it is possible, but I am not sure it is worth the trouble. You need to move the PGAIN_I and PGAIN_V into existing [AXIS_N] sections and then change the HAL file to look in those sections.

It is not a lot harder to open a terminal, type "halcmd -kf" and then start typing "setp pid.v.Pgain 100"
"show pin pid.v*" will show the current values.
When it all seems to work, just note the numbers and put them in the INI by hand.

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

More
11 years 4 months ago #59503 by thewho
Replied by thewho on topic VMC related HAL questions.
Nice, thank you :)

Any tips on how to tune the spindle? Positioning should be easy, but I imagine that it's a bit more difficult to get it to handle different loads?

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

More
11 years 4 months ago #59504 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: I imagine that it's a bit more difficult to get it to handle different loads?


It depends on your spindle, really. Mine is so slow and powerful that I haven't actually bothered making it closed-loop.
Also, it isn't like actual spindle speed is desperately critical.
Get the FF0 right and a bit of I to compensate for nonlinearity and you are probably as close as you need to be.

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

More
11 years 4 months ago - 11 years 4 months ago #59509 by thewho
Replied by thewho on topic VMC related HAL questions.
Removed that line but now i can't get the spindle to move at all. M3 S(any number) does not turn it on.

EDIT: But it does turn if I remove line 29
Code:
net velocity-mode motion.spindle-on pid.0.enable

Not as intended of course, but it reacts to M3.
Last edit: 11 years 4 months ago by thewho.

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

More
11 years 4 months ago #59510 by andypugh
Replied by andypugh on topic VMC related HAL questions.
It looks like we need to find a way to drive hm2_5i25.0.7i77.0.1.spinena

The thing is that that needs to be set in either velocity mode or orient mode, so you need an OR component.
Code:
loadrt or2 count=1 addf or2.0 servo-thread net spindle-pos-cmd or2.0.in0 net spindle-vel-cmd or2.0.in1 net spindle-either-cmd or2.0.out hm2_5i25.0.7i77.0.1.spinena

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

Time to create page: 0.422 seconds
Powered by Kunena Forum