Znaleziono 6 wyników

autor: jarekk
12 kwie 2007, 10:34
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

Ten proces nazywa się mofingiem (tak słyszałem).
Trudno w tym miejscu mówić o jakimś algorytmie, gdyż należy sprawdzić tylko dwa warunki. Pierwszy to osiągnięcie minimalnej częstotliwości pełnego kroku, drugi to osiągnięcie pełni kroku (odpowiedniej pozycji w tablicy). Dalsze kroki mogą być pełne, o ile częstotliwość nie spadnie.
Zaimplementowałem ten algorytm u siebie.
Z jedny zastrzeżeniem - zmiana krok/mikrokrok występuje tylko przy "przejściach przez zero" dla faz
autor: jarekk
12 kwie 2007, 06:50
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

Adalber pisze:Ciekawi mnie jaki prosty algorytm kolega stosuje, gdy sterownik przechodzi z mikrokroku np. 1/8
Na razie mam oprogramowanie które implementuje mixed-decay tak jak 3977 ( mam to stablicowane). Dla pełnego kroku było to po prostu 'slow decay'.

Chcę spróbować jeszcze jeden algorytm - w którym zawsze będzie slow decay, chyba że sterownik wykryje wzrost prądu mimo wyłączonego mostka - wtedy szybkie przełączenie na fast decay ( na jeden cykl) I tak w kółko.
autor: jarekk
11 kwie 2007, 18:19
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

Tak też zamierzam :-)
autor: jarekk
11 kwie 2007, 17:59
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

Oj nie wkleiło mi się poprzednio:

Mixed Decay Operation

The automatic mixed decay feature of the A3977 optimizes the current-chopping mode for the best sinusoidal current waveform for microstepping.

Slow decay (Fig. 7) has the advantage of minimum current ripple. However, when microstepping at higher step rates, slow decay chopping may fail to properly regulate current on the backside of the sine wave when current drops — a result of motor BEMF overriding the voltage applied to the motor, forcing the current to increase during the decay. Fig. 8 is a scope plot of A3977 motor current that illustrates the limitations of slow decay chopping. This distortion in the current causes increased audible noise in the motor.

Fast decay (Fig. 7) solves the current regulation problem of slow decay. With approximately the full (-) supply across the motor winding, it can quickly get the current out of the winding. The disadvantage of fast decay is the increased current ripple, which in turn causes increased motor heating.

Mixed decay (Fig. 7, on page 52) splits the fixed off time of the PWM cycle into fast and then slow decay. When the current reaches Itrip, the device goes into fast decay mode until the voltage on the RC pin decays to the voltage on the PFD pin (VPFD). The approximate time the device operates in fast decay (tFD) is tFD=R×C×ln(VDD×0.6/VPFD) (6)

Where:
VDD=Applied voltage

After this tFD portion, the device switches to slow decay mode for the remainder of the fixed off time period. The result is low current ripple, but with increased bandwidth to track the ideal sine wave for microstepping.

Although mixed decay improves microstepping performance, it still has higher current ripple than slow decay. The best solution is to use a slow decay on the front side of the sine wave and mixed decay on the backside of the sine wave output. When a step command signal occurs on the Step input the translator sequences the DACs to the next level. If the new DAC output level is lower than the previous level then decay mode for that H-bridge will be set by the voltage level on the PFD input (fast, slow, or mixed decay). If the new DAC level is higher or equal to the previous level, then the decay mode for that H-bridge will be slow decay. Fig. 9, on page 54, is a scope plot of the A3977 with slow decay on the front side and mixed decay on the backside. For comparison, see the motor current scope plot of the A3977, set to 100% fast decay on the backside of the sine wave and slow decay on the front side in Fig.10, on page 54.
autor: jarekk
11 kwie 2007, 14:24
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

Hmm, czy my mówimy o tym samym ?

W momencie gdy następuje krok - po którym mamy zwiększyć prąd, to robimy to z max. prędkością - zresztą tu nie mamy wyboru ( jest tylko jeden możliwy sposób włączenia kluczy w mostku aby prąd narastał).

Gdy prąd osiągnie żądaną wielkość (progową) to zaczyna się etap "utrzymywania" stałej średniej wartości prądu. Tyle że tu, dla fazy w której chcemy zmniejszać prąd mamy do wyboru kilka ustawień mostków - które zaowocują różną szybkością spadku prądu w cewkach silnika ( oraz paroma innymi efektami mniej istotnymi dla tej dyskusji - związanymi ze stratami mocy).

Pytanie - dlaczego Alegro wogóle manipóluje przy 'Decay' ?

Internal, fixed, off-time PWM control can be set to operate in either slow, fast, or mixed-decay mode. The mixed-decay mode reduces the high ripple-current effects of fast decay and minimizes the limited bandwidth issues of slow decay.


Niestety jakoś mnie nie przekonują - co za problemy mają z 'bandwidth' ?? - chyba przyznaję tu rację koledze że najlepiej wtedy użyć po prostu 'slow decay' ( nie jestem w stanie stwierdzić jakie issues mają )
autor: jarekk
11 kwie 2007, 13:19
Forum: Elektronika CNC
Temat: Sterownik A3986SLD
Odpowiedzi: 33
Odsłony: 18422

To może kolega aingeru zamieści fotkę oscylogramu prądu fazowego?

Podejrzewam, że problem leży w gaszeniu podczas zmniejszania prądu. Nie mam tego jak potwierdzić, bo nie zamierzam kupować tej kostki, jak i A3977, którą produkowała ta sama ekipa inżynierów AllegroMicro.
Średnie gaszenie to jakiś wypadek przy pracy. Silnik potrzebuje tylko szybkiego i wolnego gaszenia do poprawnego działania tzn. wolne po ustaleniu kroku a szybkie podczas jego wykonywania.
Mam może kolega jakiś ładny rysuneczek ?
Implementuje własnie taki algorytm w moim sterowniku i chciałbym to zrobić dobrze.
Jak dokładnie rozumieć : "wolne po ustaleniu kroku a szybkie podczas jego wykonywania" ? Czy to ma być tak że po kroku ( gdy następuje zmiana prądu) pierwsze gaszenie jest szybkie a następne już wolne ??

Wróć do „Sterownik A3986SLD”