求助:关于 mscomm串口问题
我的代码如下
with me.mscomm1
.CommPort = 1
.Settings = "19200,N,8,1"
....
.Portopen=Ture
.Output="%01#RDD050000500055" & vbCr
text2.text=.Input
end with
结果呢,第一次按 Command 按纽的时候,
text2 显示 %01#RDD0 ,再按就变成 50000500055%01#RDD0 了.
我直接把串口的2,3 脚直连,理论上发送的数据等于接收的数据,用其他的串口软件测试通过.
帮帮我,谢谢
with me.mscomm1
.CommPort = 1
.Settings = "19200,N,8,1"
....
.Portopen=Ture
.Output="%01#RDD050000500055" & vbCr
text2.text=.Input
end with
结果呢,第一次按 Command 按纽的时候,
text2 显示 %01#RDD0 ,再按就变成 50000500055%01#RDD0 了.
我直接把串口的2,3 脚直连,理论上发送的数据等于接收的数据,用其他的串口软件测试通过.
帮帮我,谢谢
...全文


控件
