发表于:2003/11/22 16:55:00
#0楼
Private Sub Form_Load()
MSComm1.CommPort = 1
MSComm1.Settings = "9600,e,7,1"
MSComm1.InputLen = 0
MSComm1.PortOpen = True
End Sub
Private Sub Command1_Click()
Dim a, av As String
a = "0010002" + Chr(3)
MSComm1.Output = Chr(5) + Chr(2) + a+ sumcheck(a)
av = MSComm1.Input
Print av
End Sub
为什么什么也接受不到,没有反应,清高手指点
MSComm1.CommPort = 1
MSComm1.Settings = "9600,e,7,1"
MSComm1.InputLen = 0
MSComm1.PortOpen = True
End Sub
Private Sub Command1_Click()
Dim a, av As String
a = "0010002" + Chr(3)
MSComm1.Output = Chr(5) + Chr(2) + a+ sumcheck(a)
av = MSComm1.Input
Print av
End Sub
为什么什么也接受不到,没有反应,清高手指点