level 2
请问如何在Delphi7中,往串口写入十六进制数,有例子吗?求分享。。。
2017年01月05日 13点01分
1
level 10
用SPCOMM和APDCOMPort写串口的还是蛮方便的,百度上有蛮多例子的
2017年01月11日 05点01分
4
level 5
用spcomm
wbuf: array[0..125] of char;
wbuf[0]:=chr($f8);
wbuf[1]:=chr(8);
wbuf[2]:=chr(0);
wbuf[3]:=chr(1);
wbuf[4]:=chr(2);
wbuf[5]:=chr(3);
wbuf[6]:=chr(4);
wbuf[7]:=chr(5);
wbuf[8]:=chr(6);
wbuf[9]:=chr(7);
comm1.WriteCommData(@wbuf, 10);
2017年01月24日 09点01分
5