unit mb100parser;
interface
type
ComPortProperties =
record
Baudrate, Parität, Flow, Start, Stop, Stopbit, Databit:
string;
CaseInsensitiv, Include : Boolean;
end;
type
TMB100 =
class
Constructor create;
Destructor destroy;
override;
private
FComPortProperties : ComPortProperties;
public
property ComPort : ComPortProperties
read FComPortProperties;
end;
implementation
Constructor TMB100.create;
begin
inherited;
FComPortProperties.Baudrate := '
19200';
FComPortProperties.Parität := '
None';
FComPortProperties.Flow := '
Hardware';
FComPortProperties.Start := '
Ereignis';
FComPortProperties.Stop := #$D#$A#$A;
FComPortProperties.Databit := '
8';
FComPortProperties.Stopbit := '
1';
FComPortProperties.CaseInsensitiv := true;
FComPortProperties.Include := true;
end;
Destructor TMB100.destroy;
begin
inherited;
end;