How to enable spindle with a button

More
24 Jul 2020 15:48 - 24 Jul 2020 15:49 #175648 by Clive S
I would like to fit a button to enable the spindle to lock it (servo motor) so that the draw bar can be undone. (might be a bad idea)

Could this be done with a on screen button (Axis)

I have this in HAL
### +24V to output 00 +ve then 00 -ve to servo drive +ve pin 9 then servo drive -ve pin 6 to gnd
net spindle-enable  =>  hm2_7i96.0.ssr.00.out-00

#*******************
#  SPINDLE
#*******************

setp   pid.s.Pgain     [SPINDLE_0]P
setp   pid.s.Igain     [SPINDLE_0]I
setp   pid.s.Dgain     [SPINDLE_0]D
setp   pid.s.bias      [SPINDLE_0]BIAS
setp   pid.s.FF0       [SPINDLE_0]FF0
setp   pid.s.FF1       [SPINDLE_0]FF1
setp   pid.s.FF2       [SPINDLE_0]FF2
setp   pid.s.deadband  [SPINDLE_0]DEADBAND
setp   pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT
setp   pid.s.error-previous-target true

net spindle-index-enable  <=> pid.s.index-enable
net spindle-enable        =>  pid.s.enable
net spindle-vel-cmd-rpm     => pid.s.command
net spindle-vel-fb-rpm      => pid.s.feedback
net spindle-output        <=  pid.s.output

# ---setup spindle control signals---

# Step Gen signals/setup

setp   [HMOT](CARD0).stepgen.03.dirsetup        [SPINDLE_0]DIRSETUP
setp   [HMOT](CARD0).stepgen.03.dirhold         [SPINDLE_0]DIRHOLD
setp   [HMOT](CARD0).stepgen.03.steplen         [SPINDLE_0]STEPLEN
setp   [HMOT](CARD0).stepgen.03.stepspace       [SPINDLE_0]STEPSPACE
setp   [HMOT](CARD0).stepgen.03.position-scale  [SPINDLE_0]STEP_SCALE
setp   [HMOT](CARD0).stepgen.03.step_type        0
setp   [HMOT](CARD0).stepgen.03.control-type     1
setp   [HMOT](CARD0).stepgen.03.maxaccel         [SPINDLE_0]MAX_ACCELERATION
setp   [HMOT](CARD0).stepgen.03.maxvel           [SPINDLE_0]MAX_VELOCITY

net spindle-enable          =>  [HMOT](CARD0).stepgen.03.enable
net spindle-vel-cmd-rps     =>  [HMOT](CARD0).stepgen.03.velocity-cmd

# ---Encoder feedback signals/setup---

setp    [HMOT](CARD0).encoder.00.counter-mode 0
setp    [HMOT](CARD0).encoder.00.filter 1
setp    [HMOT](CARD0).encoder.00.index-invert 0
setp    [HMOT](CARD0).encoder.00.index-mask 0
setp    [HMOT](CARD0).encoder.00.index-mask-invert 0
setp    [HMOT](CARD0).encoder.00.scale  [SPINDLE_0]ENCODER_SCALE

net spindle-revs             <=   [HMOT](CARD0).encoder.00.position
net spindle-vel-fb-rps       <=   [HMOT](CARD0).encoder.00.velocity
net spindle-index-enable     <=>  [HMOT](CARD0).encoder.00.index-enable


net spindle-vel-cmd-rps        <=  spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs    <=  spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm        <=  spindle.0.speed-out
net spindle-vel-cmd-rpm-abs    <=  spindle.0.speed-out-abs
net spindle-enable             <=  spindle.0.on
net spindle-cw                 <=  spindle.0.forward
net spindle-ccw                <=  spindle.0.reverse
net spindle-brake              <=  spindle.0.brake
net spindle-revs               =>  spindle.0.revs
net spindle-at-speed           =>  spindle.0.at-speed
net spindle-vel-fb-rps         =>  spindle.0.speed-in
net spindle-index-enable      <=>  spindle.0.index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true
Last edit: 24 Jul 2020 15:49 by Clive S.

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

More
25 Jul 2020 18:57 #175776 by tommylight
I do not think that would work, and would risk overloading the motor/drive.
Guestimating that a human will exert about 20 to 30 NM of torque on the screw, the motor would have to handle more than that to stay put while tightened/un-tightened.
The following user(s) said Thank You: Clive S

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

More
25 Jul 2020 19:05 #175779 by Clive S

I do not think that would work, and would risk overloading the motor/drive.
Guestimating that a human will exert about 20 to 30 NM of torque on the screw, the motor would have to handle more than that to stay put while tightened/un-tightened.


The motor is 1.8Kw servo

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

More
25 Jul 2020 21:32 #175792 by tommylight
Max rated torque ?

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

Time to create page: 0.126 seconds
Powered by Kunena Forum