Decke Maho DMC100V Possibility of retrofitting

More
2 years 11 months ago #285284 by SOLD
I will check tomorrow.

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

More
2 years 11 months ago - 2 years 11 months ago #285387 by SOLD
I customized Hal. to the spindle No motor feedback
loadrt bldc cfg=n,6
# ---PWM Generator signals/setup---
#setp [HMOT](CARD0).pwmgen.00.output-type 1
#setp [HMOT](CARD0).pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE
#net spindle-vel-cmd-rpm => [HMOT](CARD0).pwmgen.00.value
#net spindle-enable => [HMOT](CARD0).pwmgen.00.enable

# ---TPPWM Generator signals/setup---
setp [HMOT](CARD0).3pwmgen.00.enable true
setp [HMOT](CARD0).3pwmgen.00.scale 50
setp [HMOT](CARD0).3pwmgen.00.deadtime 1000
setp [HMOT](CARD0).3pwmgen.00.fault-invert 1
net pwm.00-a bldc.0.A-value => [HMOT](CARD0).3pwmgen.00.A-value
net pwm.00-b bldc.0.B-value => [HMOT](CARD0).3pwmgen.00.B-value
net pwm.00-c bldc.0.C-value => [HMOT](CARD0).3pwmgen.00.C-value

setp bldc.0.value 0.5
#setp bldc.0.init true
#setp bldc.0.encoder-offset 0
#setp bldc.0.initvalue 5
#setp bldc.0.encoder-offset 0
setp bldc.0.rev 1
#setp bldc.0.lead-angle 0
#setp bldc.0.poles 4
#setp bldc.0.scale 10000

It has a signal. But like an abnormality 3pwmgen.00.A-value (TB1-20,21) It does not respond to speed adjustment like B and C.

Is this correct?
How to test with No motor feedback. Is it possible?
How can I check the correct settings?
Last edit: 2 years 11 months ago by SOLD.

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

More
2 years 11 months ago - 2 years 11 months ago #285407 by PCW
setp [HMOT](CARD0).3pwmgen.00.scale 0

???

This should be 300 if that's full scale.
Last edit: 2 years 11 months ago by PCW.
The following user(s) said Thank You: SOLD

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

More
2 years 11 months ago #285526 by PCW
For testing without feedback = pure voltage mode, I would set a very
small PWM value maybe 5 out of 300 because otherwise you will get an
almost instant overload.

Also since the PWMs are just one signal per phase (not top/bottom side drive)
I would set the deadzone to 0 (since this must be handled in the drive)

If you manage to get any motor current the motor should align to the
current BLDC angle.

This all assumes that all phases being 50% means 0 voltage (which is a reasonable
guess but not guaranteed)
The following user(s) said Thank You: SOLD

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

More
2 years 11 months ago - 2 years 11 months ago #285588 by SOLD
Thank you for following.
Yesterday I experimented with an old device, it worked as per the clip, set it up like this, the motor can rotate.


#*******************
# 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

# ---PWM Generator signals/setup---

#setp [HMOT](CARD0).pwmgen.00.output-type 1
#setp [HMOT](CARD0).pwmgen.00.scale [SPINDLE_0]OUTPUT_SCALE

# ---TPPWM Generator signals/setup---

setp [HMOT](CARD0).3pwmgen.00.enable true
setp [HMOT](CARD0).3pwmgen.00.scale 3000
setp [HMOT](CARD0).3pwmgen.00.deadtime 5000
setp [HMOT](CARD0).3pwmgen.00.fault-invert 1
#setp [HMOT](CARD0).3pwmgen.00.frequency 20

net pwm.00-a bldc.0.A-value => [HMOT](CARD0).3pwmgen.00.A-value
net pwm.00-b bldc.0.B-value => [HMOT](CARD0).3pwmgen.00.B-value
net pwm.00-c bldc.0.C-value => [HMOT](CARD0).3pwmgen.00.C-value
net spindle-enable => [HMOT](CARD0).3pwmgen.00.enable
net spindle-vel-cmd-rpm => bldc.0.value

setp bldc.0.frequency 1
#setp bldc.0.value 0.5
#setp bldc.0.init true
#setp bldc.0.encoder-offset 0
#setp bldc.0.initvalue 5
#setp bldc.0.encoder-offset 0
#setp bldc.0.rev 1
#setp bldc.0.lead-angle 0
#setp bldc.0.poles 4
#setp bldc.0.scale 10000

I think this is incorrect.
net spindle-vel-cmd-rpm => bldc.0.value
It should be
net spindle-vel-cmd-rpm => bldc.0.frequency
Or maybe something else to control the speed.
Last edit: 2 years 11 months ago by SOLD.

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

Time to create page: 0.259 seconds
Powered by Kunena Forum