spindle - Control a spindle with different acceleration and
deceleration and optional gear change scaling
loadrt spindle
[count=N|names=name1[,name2...]]
This component will control a spindle with adjustable acceleration
and deceleration.
NOTE: This component is unfortunately named and creates pins with names very
much like those created by the motion component.
In nearly every case this is not the documentation page that you are looking
for.
See http://linuxcnc.org/docs/html/man/man9/motion.9.html instead.
It is designed for use with non-servo spindle drives that have
separate fwd/reverse inputs, such as DC drives and inverters. If a spindle
encoder is available it is used to tailor the acceleration and deceleration
to the spindle load. If not the spindle speed is simulated. The component
allows for gearboxes with up to 16 gears. Each gear has individual control
of speeds, acceleration, driver gain and direction.
- The following pins are
created depending the 'numgears=' parameter.
- One of each pin is created for each gear. If no gears are specified then
one gear will be created. For instance if you have gears=2 on your command
line, you will have two scale pins:
spindle.N.scale.0
spindle.N.scale.1
- spindle.N.scale.x
float in
- Scale the output. For multiple gears you would use a different scale for
each gear. If you need to reverse the output for some gears, use a
negative scale.
- spindle.N.min.x
float in
- Set the minimum speed allowed (in RPM). The limit output will be TRUE
while the commanded speed is between 0 RPM and the min speed.
- spindle.N.max.x
float in
- Set the maximum speed allowed (in RPM). The limit output will be TRUE
while the commanded speed is above this value.
- spindle.N.accel.x
float in
- Set the maximum acceleration. If you do not have a spindle encoder this is
in RPM/second. If you do have an encoder the output is the actual speed
plus this value. This way the acceleration can be dependent on the spindle
load.
- spindle.N.decel.x
float in
- Set the minimum deceleration. If you do not have a spindle encoder this is
in RPM/second. If you do have an encoder the output is the actual speed
minus this value.
- spindle.N.speed-tolerance.x
float in
- Tolerance for 'at-speed' signal (in RPM). Actual spindle speeds within
this amount of the commanded speed will cause the at-speed signal to go
TRUE.
- spindle.N.zero-tolerance.x
float in
- Tolerance for 'zero-speed' signal (in RPM).
- spindle.N.offset.x
float in
- The output command is offset by this amount (in RPM).
- spindle.N.select.x
bit in
- Selects this gear. If no select inputs are active, gear 0 is selected. If
multiple select inputs are active then the highest is selected.