Closed loop spindle speed and orientation
I am working on a traub TVC 200 mill and I have the X Y and Z performing well . Today I tried running the spindle orient component but had no success . The mill should be able to perform hard tapping operations so I guess I'll need closed loop spindle speed control and orientation for the tool changer . I have already looked at some examples but they all had problems which were solved on IRC so some of the solutions remain unknown . I am interested in a working example for this . The machine is equipped with a 5i20 7i33 7i37 and sserial 7i70 and 7i71 (if this is of any help) .
Thank you in advance .
Please Log in or Create an account to join the conversation.
Today I tried running the spindle orient component but had no success . The mill should be able to perform hard tapping operations so I guess I'll need closed loop spindle speed control and orientation for the tool changer .
You don't need spindle orient for rigid tapping, LinuxCNC just needs to be able to control the spindle direction and know the spindle position.
Spindle orient is a little more complex.
All that the "orient" component does is provide a spindle position target. The actual movement is controlled by a PID component.
Do you have spindle position feedback? Is it set up correctly for 1 revolution = encoder.position = + 1?
Does LinuxCNC have control of spindle speed and direction?
Please Log in or Create an account to join the conversation.
The encoder is 1024 and that is how it is setup . What do you mean by =+1 ?Do you have spindle position feedback? Is it set up correctly for 1 revolution = encoder.position = + 1?
Does this mean that PNCConf produces a setup capable of rigid tapping?LinuxCNC just needs to be able to control the spindle direction and know the spindle position.
Wish you all a happy new year !
Please Log in or Create an account to join the conversation.
I mean, does the pin motion.spindle.revs increase by exactly 1.000 for exactly 1.000 rotations of the spindle?What do you mean by =+1 ?
I don't know, I have never used it.Does this mean that PNCConf produces a setup capable of rigid tapping?
But your config looks like it should be capable of rigid tapping. Why not try it, but with no tap in the spindle?
By the way, the commented-out line in the orient-hal section with the #??? is an error because you have two signal names in the same net command.
net is always "net signal pin [pin, ...]" ie one net command, followed by one signal name followed by any number of pin names.
several net commands can share the same signal name, that means that all the pins in all those commands are connected together.
You have
#net spindle-pos spindle-revs orient.position orient-pid.feedback #?????
#net spindle-revs orient.position orient-pid.feedback
Please Log in or Create an account to join the conversation.
I need the orientation bit for the tolchanger . As far as speed control goes the hal and ini are almost the same as PNCconf makes them . The only thing I changed is the max speed to the maximum of that specific spindle . What I noticed is that the plus button in axis makes the speed jump to the maximum . It goes from 1 to 101 rps .
AXIS sets spindle by RPM not RPS.
But yes it goes from 0 to 1 RPM to 101 RPM.
If your spindle runs faster then 101 then something is not set right.
somewhere around linuxcnc 2.6.3 you can set the starting RPM of the spindle +- button (in AXIS) as an INI setting.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I changed the max vel in the ini to 101 , but I think it is RPS which is what the spindle is capable of .
The iNI setting is RPM (and might only affect GUI sliders).
Your problem is likely to be in HAL as there are several spindle command pins:
motion.spindle-speed-out OUT FLOAT
Desired spindle speed in rotations per minute
motion.spindle-speed-out-abs OUT FLOAT
Desired spindle speed in rotations per minute, always positive regardless of spindle direction.
motion.spindle-speed-out-rps OUT float
Desired spindle speed in rotations per second
motion.spindle-speed-out-rps-abs OUT float
Desired spindle speed in rotations per second, always positive regardless of spindle direction.
It sounds like your spindle HAL is set up to work correctly for an RPS command number, but is connected to one of the RPM outputs. Change the HAL pin used to supply the command value and you should be OK.
Please Log in or Create an account to join the conversation.
Any thoughts on that?
Please Log in or Create an account to join the conversation.
in what units is encoder velocity measured? The hal manual says position units per second but i can't find how to calculate it .
Please Log in or Create an account to join the conversation.
For linear axis with the encoder scaled to read in position units, the encoder velocity is in position units per second.
For spindles with the encoder scaling set to read 1.000 per revolution, the encoder velocity is revolutions per second.
Please Log in or Create an account to join the conversation.