Hallo,

mein Schrittmotor vom pollin (siehe thread: Schrittmotor aus cd-laufwerk) läuft mittlerweile munter vor sich hin
allerdings nur in eine richtung
bis jetzt habe ich folgendes zur ansteuerung:

Code:
$regfile = "m32def.dat"
$crystal = 16000000

Dim Vor(4) As Word
Dim Zust As String * 10
Dim N As Byte
Dim Ein As Byte
Dim Led(4) As Byte
Dim Port As Byte

Config Portc.7 = Output
Config Portc.6 = Output
Config Portb.0 = Output
Config Portb.1 = Output
Config Portd.4 = Output
Config Portd.5 = Output
Portc.6 = 1
Portc.7 = 1
Portb.0 = 1
Portb.1 = 1
Portd.4 = 1
Portd.5 = 1


Vor(1) = 11010 : Vor(2) = 10110 : Vor(3) = 10101 : Vor(4) = 11001
Led(1) = 0 : Led(2) = 1 : Led(3) = 6 : Led(4) = 7

Do

For N = 1 To 4                                              'schritte!!    (n)
For Port = 1 To 4                                           'anschlüsse!!  (port)
Zust = Mid(vor(n) , Port , 1)
Ein = Zust
If Port < 3 Then
Portb.led(port) = Ein
Else
Portc.led(port) = Ein
End If
Next Port
Waitms 2
Next N

Loop

End
das ganze läuft auf dem rn-control, deswegen portc.6 , portc.7 , portb.0 und portb.1 .
durch was müsste ich jetzt folgende zeile ändern, damit er sich in die andere Richtung dreht??

Vor(1) = 11010 : Vor(2) = 10110 : Vor(3) = 10101 : Vor(4) = 11001

warscheinlich ist es ganz einfach, nur ich komme nicht darauf?!?!
habe natürlich auch schon die sufu und google benutzt, allerdings nichts brauchbares gefunden.

danke für eure antworten!
gruß
chris