Hello Guest it is June 15, 2025, 05:37:50 AM

Author Topic: Mach 3 Spindel richtige Einstellungen?  (Read 13923 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach 3 Spindel richtige Einstellungen?
« Reply #10 on: December 03, 2024, 04:08:43 AM »
ich habe die Stellen jetzt nochmal durchgelesen, die Spindel Setup beschreiben. Es hat mir nicht geholfen. Meine Frage, die ich im 1 Post gestellt habe wird damit nicht beantwortet: kann das richtig sein, das eine Asynchron Motor mit Step/Dir Einstellungen von Mach3 gesteurt wird? Denn bei mir funktioniert es halbwegs auf diese Weise, ich denke aber dass es nicht richtig sein kann.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #11 on: December 03, 2024, 04:18:57 AM »
No it isn't.  Step/direction is only useful if a stepper or stepper-servo motor are used.  The benefit would be that spindle motion can then be synchronised to XYZ movements for operations such as rigid tapping or gear hobbing.  Unless you want to do these an asynchronous induction motor or a DC motor with appropriate speed controllers are much better, and these generally need a 0 - 10v control voltage.  With Mach3 this is generally derived by smoothing the PWM output using a resistor-capacitor combination.  The Smoothstepper which I think you are using (?) may have this built in, and the setup instructions for it may give details of the M3 config needed (mainly the PWM base frequency).  I haven't used the SS so can't advise.

It is true that you could set up the step pulse (which is constant width but variable frequency) such that when it is smoothed it gives a variable voltage but this is not the intended method.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #12 on: December 03, 2024, 04:49:08 AM »
ja, so verstehe ich das auch. Dann ist es bei mir nicht richtig konfiguriert. Ja, sie haben das richtig gelesen, ich verwende den  Ethernet Smoothstepper (ESS). Habe die Beschreibung vom Hersteller auch gelesen und versucht nachzumachen, irgendwas mache ich dabei falsch.  Er schreibt:

       Place a green check for Enabled.
       If you are using PWM mode for your spindle assign the Step Pin and Step Port to match your wiring.

Das habe ich - siehe Bilder am Anfang.
Dann schreibt er:

       Next go to Mach3's Menu -> Config -> Ports & Pins -> Spindle Setup. 
       Check 'Use Spindle Motor Output'

habe ich auch.

        Now go to Mach3's Menu -> Plugin Control -> Main Config: ESS-M3-version.
        For a PWM Spindle:
        Check the box for PWM
        Set the Base Hz

habe ich, welche Base Hz das sein soll steht hier nicht dabei, ich habe das bei mir auf 1500 gemacht (in dem Bild 10 ist aber der Hacken bei PWM wieder raus - hab ich aber drin gehabt beim testen).

Dann weiter in General Config:

        Set the 'Max Step Frequency' to a setting that is a little bit above the max step frequency that your system is expecting.  If you have a BOB          that converts the Step and Dir step frequency to an Analog 0 V to 10 V, they will tell you what they expect the steps per second to be.  If they are expecting 25,000 steps per second, then you would go to the next higher value and choose 32 kHz.

Bei mir steht die Frequenz auf 512 kHz - Bild 9. Das hier habe ich auch nicht verstanden - Was soll hier wirklich rein, ist 512 kHz zu hoch?

Now go to Mach3's Menu -> Config -> Motor Tuning.  Under Axis Selection, click on Spindle.

For a PWM Spindle:

    Set 'Steps Per Unit' to 1000 (This field shouldn't matter for PWM, we just need a reasonable value in here).
    Set 'Velocity' to 60.
    Set Acceleration to a value greater than '1' that gives the response you desire (depending on your system, perhaps 200).
    Make sure you Click on 'SAVE AXIS SETTINGS'!

Hatte ich auch durchprobiert, ist jatzt aber auf andere Werte eingestellt, so wie das bei mir mit Step/Dir funktioniert, aber für die 0-10V PWM hatte ich die oben genannte Werte geschrieben gehabt.

und zum Schluss:

 5. Finally go to Mach3's Menu -> Config -> Spindle Pulleys

    Choose a pulley, the default is #4 and that will work fine.
    Enter the Max RPM that matches your VFD and Spindle specifications.
    Set your Min speed to a value of 0.  Please see the explanation below the image as to why.   If you want to ensure your spindle never runs below a specified RPM, please see this article here on how to set up a script to guarantee the minimum RPM you desire.
    Leave the Ratio field at 1 unless you are using gearing, at which point you will adjust the ratio accordingly.

Habe ich auch nicht so richtig verstanden.

kann ich hier ein link posten zu der Seite?






Re: Mach 3 Spindel richtige Einstellungen?
« Reply #13 on: December 03, 2024, 05:17:07 AM »
"Can I post a link to the page here?" - yes, you can post a link to a web page.

There is a relationship between the PWM base frequency and the speed control resolution - the higher the frequency the lower the resolution.  Normally a base frequency of around 25Hz is recommended.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #14 on: December 03, 2024, 05:23:06 AM »
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #15 on: December 03, 2024, 05:28:36 AM »
Neither.  You want Config/Ports&Pins/Spindle Setup/Motor control.  Check Use spindle motor output & PWM control, type PWMBasefreq and min PWM % into the boxes.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #16 on: December 03, 2024, 05:31:20 AM »
a, ok, also hier:
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #17 on: December 03, 2024, 05:43:42 AM »
kann erst morgen testen, muss zu Arbeit. Danke.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #18 on: December 03, 2024, 05:55:52 AM »
Exactly.
Re: Mach 3 Spindel richtige Einstellungen?
« Reply #19 on: December 04, 2024, 04:17:50 AM »
Habe es so probiert - umgestellt auf PWM und 50 HZ eingetragen - lauft genau so, wie auch mit Step/Dir Einstellung. Habe dann auch noch im Bild 10 auch umgestellt auf PWM - mit Base HZ 50 geht Spindel nicht an, mit 1500 geht an und ist sonst alles auch genau so, wie mit meinen vorherigen Einstellungen auf Step/Dir. Nur die Drehzahl stimmt nicht ganz: wenn ich 24000 U/min im Programm habe dreht sich die Spindel mit 22440 U/min. Am Ausgang 0-10V messe ich ca. 9V mit Multimeter. Aber: bei diesen Einstellungen (PWM) lässt sich keine andere Drehzahl mehr einstellen. Im Programm 12000 U/min - Spindel dreht sich weiter mit 22440 U/min. Und über Softkyes im Mach3  Bildschirm lässt sich dann die Drehzahl auch nicht mehr ändern - bleibt konstant bei 22440 U/min. Was ist hier das Problem?