使用ApdComPort取数据

apd1.AutoEnable:=True;
apd1.StartCond:=scString;
apd1.StartString:=#0#0#4+'?'+#11#11;
apd1.EndCond:=[ecPacketSize];
apd1.PacketSize:=17;
apd1.IncludeStrings:=True;

apd2.AutoEnable:=True;
apd2.StartCond:=scString;
apd2.StartString:=#0#0#4+'?'+#12#12;
apd2.EndCond:=[ecPacketSize];
apd2.PacketSize:=18;
apd2.IncludeStrings:=True;

你可能感兴趣的:(port)