Autor Beitrag
g1o2k4
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 493



BeitragVerfasst: Do 28.09.06 18:24 
hi

wie steuere ich in delphi die r232 schnittstelle an ? wie lese ich daten von ihr aus (die von außen kommen)
wie gebe ich daten aus ? (schicke sie an externe geräte)
hat jemand nen tutorial, oder ein (gut kommentiertes) programm mit code anhand derer man das lernen kann ?


mfg g1o
Holgerwa
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 325

WIN XP Pro, Vista Business
Delphi 7 Pro, BDS 2006 Pro
BeitragVerfasst: Fr 29.09.06 07:17 
Hallo,

sieh Dir die Async-Komponenten an, die sind hervorragend und können alles, was mit RS-232 zu tun hat.
sourceforge.net/projects/tpapro

Holger
covel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 131

Win XP PRo
Borland D7/C#
BeitragVerfasst: Fr 29.09.06 09:41 
www.domis.de/cms/ind...amp;mid=3&ceid=7

Habe bis jetzt immer diese Komponente verwendet... Bin recht zufrieden damit. Bei fragen PM
Pierre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 138

Win 98se und XP prof
D5Pers und D7Prof
BeitragVerfasst: Sa 30.09.06 08:01 
Hallo,
wenn Du messen und steuern willst:

[url]www.delphi-roboter.de[/url]

Gruß Pierre
Waldheini
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 32

Win 98SE, XP
D5 St., K3 Prof
BeitragVerfasst: Mo 02.10.06 20:57 
Geht am einfachsten so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure LPTAusgabe(Buffer:Array of Byte;Size:Integer);
var LPT1: File;
begin
  AssignFile(LPT1,'LPT1');
  Reset(LPT1,1);
  BlockWrite(LPT1,Buffer,Size);
  CloseFile(LPT1);
end;

procedure LPTEingabe(var Buffer:Array of Byte;var Size:Integer);
var LPT1: File;
begin
  AssignFile(LPT1,'LPT1');
  Reset(LPT1,1);
  BlockRead(LPT1,Buffer,Size,Size);
  CloseFile(LPT1);
end;