Spindeldrehzahl durch ändern der PWM Frequenz steuern

More
1 year 11 months ago - 1 year 11 months ago #314440 by Aciera
Parameter können nicht mit HAL pins geändert werden.

Aber warum nicht einfach einen stepgen (stepgen.N.velocity-cmd) verwenden?
Last edit: 1 year 11 months ago by Aciera.

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

More
1 year 11 months ago #314472 by roland
rcpwmgen kann variable pwm Frequenz:
www.linuxcnc.org/docs/html/man/man9/hostmot2.9.html#rcpwmgen .

Oder stepgen mit step_type 2. Damit bekommst du ein 50% Rechtecksignal

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

More
1 year 11 months ago #314608 by TripleM
Vielen Dank,
habs nun mit  step_type 2 gelöst. 
Drehzahlregelung funktioniert super, allerdings hat  step_type 2 kein einfaches Direction Signal.
Gibts ne einfache Möglichkeit das Richtungssignal bei TYPE_2 zu bekommen?

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

More
1 year 11 months ago #314610 by Aciera
type_2 ist doch ein Quadratur-Signal. Wäre hier type_0 im 'velocity' mode nicht besser geeignet?
linuxcnc.org/docs/html/man/man9/stepgen.9.html
Code:
stepgen has two control modes, which can be selected on a channel by channel basis using ctrl_type. Possible values are "p" for position control, and "v" for velocity control. The default is position control, which drives the motor to a commanded position, subject to acceleration and velocity limits. Velocity control drives the motor at a commanded speed, again subject to accel and velocity limits. Usually, position mode is used for machine axes. Velocity mode is reserved for unusual applications where continuous movement at some speed is desired, instead of movement to a specific position. (Note that velocity mode replaces the former component freqgen.)

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

More
1 year 11 months ago #314613 by TripleM
werde ich morgen noch mal versuchen, aber so wie ich mich erinnere lieferte TYPE_0 kein Rechtecksignal (steplen und stepspace gleich lang)

 

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

More
1 year 11 months ago #314614 by PCW
Sie können einfach einen freien Ausgang verwenden,
der in halb an Spindel.0.vorwärts.

Alternativ kann es sein, dass Sie die Schrittzeit weit
genug einstellen können, um den Schritttyp 0 zu verwenden
So erhalten Sie ein Richtungssignal Basierend auf der Polarität
des Befehls Spindeldrehzahl

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

Moderators: Muecke
Time to create page: 0.065 seconds
Powered by Kunena Forum