Mafell FM1000 PV - PWM Regelung

More
4 years 7 months ago #238784 by DeepBlue
Hallo zusammen,
hat von euch jemand die o.g.Spindel mit PWM Regelung 0-10V  im Einsatz ?
Ich versuche gerade die Spindel in Betrieb zu nehmen, allerdings macht mir die Regelung etwas Kopfzerbrechen.
Der Hersteller gibt folgende Spannungen an:
V     U/min
0      4000
2      8200
4      12400
6      16600
8      20800
10      25000
Allerdings erfolgt bei mir die Regelung Linear zur Spannung, also stimmt die 0V bei 4000 U/min nicht.
Gibt es die möglichkeit ein Offset zu setzten das die Regelung bei 4000 U/min 0V und bei 25000 U/min 10V ?

In der ini steht bei mir:
Code:
[SPINDLE_0] P = 0.0 I = 0.0 D = 0.0 FF0 = 1.0 FF1 = 0.0 FF2 = 0.0 BIAS = 0.0 DEADBAND = 0.0 MAX_OUTPUT = 25000.0 OUTPUT_SCALE = 25000 OUTPUT_MIN_LIMIT = 0 OUTPUT_MAX_LIMIT = 25000

Bereich in der hal.
Code:
#******************* #  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 net spindle-vel-cmd-rpm     => [HMOT](CARD0).pwmgen.00.value net spindle-enable      => [HMOT](CARD0).pwmgen.00.enable

Hat jemand einen Tipp für mich wie ich das hinbekomme das die Skalierung stimmt ?




 

Please Log in to join the conversation.

More
4 years 7 months ago #238894 by DeepBlue
Danke für die Tipps ! Funktioniert Perfekt

Falls jemand die Werte benötigt, hier die Abgestimmten Einstellungen für die Mafell:

Bereich in meiner .hal :
Code:
#******************* #  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 #net spindle-vel-cmd-rpm     => [HMOT](CARD0).pwmgen.00.value net spindle-enable      => [HMOT](CARD0).pwmgen.00.enable # --- Korrektur Drehzahl Mafell FM 1000 PV --- #  x-val = Vorgabe Drehzahl #  y-val = Korrekturwert loadrt lincurve personality=7 addf lincurve.0 servo-thread setp lincurve.0.x-val-00 0 setp lincurve.0.y-val-00 0 setp lincurve.0.x-val-01 4000 setp lincurve.0.y-val-01 0 setp lincurve.0.x-val-02 8200 setp lincurve.0.y-val-02 4610 setp lincurve.0.x-val-03 12400 setp lincurve.0.y-val-03 9550 setp lincurve.0.x-val-04 16600 setp lincurve.0.y-val-04 14500 setp lincurve.0.x-val-05 20800 setp lincurve.0.y-val-05 19440 setp lincurve.0.x-val-06 25000 setp lincurve.0.y-val-06 24300 net spindle-vel-cmd-rpm => lincurve.0.in net spindle-corrected lincurve.0.out => [HMOT](CARD0).pwmgen.00.value

Danke nochmal für die schnelle Hilfe !

Please Log in to join the conversation.

More
4 years 7 months ago #238913 by tommylight
Schon! :)
Sie sind wilkomen, immer.
P.S.
Please do correct me when i type something wrong in German, i was there for two month only some 15 years ago, so getting rusty.

Please Log in to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum