Autor Beitrag
SQLException
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Di 18.01.05 18:46 
hi,

möchte einen schrittmotor (www.holger-friedrich.de/Robo/ULN2803.gif) mit der comport komponente von Dejan Crnila ansteuern, angeschlossen hab ich das teil mit der schaltung, nur was jetzt :?!?:. wie lass ich den motor einen schritt machen?
SQLException Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Di 18.01.05 22:01 
www.the-starbearer.d...tm#Anschlussbelegung

zitat: Bitfolge Vollschrittbetrieb: .0001 - 0010 - 0100 - 1000

und das ist mein quellcode hierzu, jetzt mit io.dll:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  procedure PortOut(Port : Word; Data : Byte); stdcall; external 'IO.DLL';

  adresse := $3F8 // hab ich so im bios festgelegt

  PortOut(adresse,1); // 1 = 0001 
  PortOut(adresse,2); // 2 = 0010
  PortOut(adresse,4); // 4 = 0100
  PortOut(adresse,8); // 8 = 1000


keiner ne ahnung warum der net will? und wo kommt da jetzt rts und dtr ins spiel? hm...