发表于:2002/6/3 8:52:00
#0楼
各位大师好!
那位好心人能帮我解答这个问题,我已经没办法拉。我做的是PC与FX2N的通信
发送:MSComm1.Output = Chr(5)
接收:Private Sub MSComm1_OnComm()
Dim instring As String
Select Case MSComm1.CommEvent
Case comEvReceive
instring = MSComm1.Input
If instring = Chr(6) Then
Text1.Text = instring
MsgBox "ok"
End If
End Select
End Sub
不管INPUTMODE接收设成文本还是二进制,都没有任何响应,我想是不是PLC不通,
那位好心人能帮我解答这个问题,我已经没办法拉。我做的是PC与FX2N的通信
发送:MSComm1.Output = Chr(5)
接收:Private Sub MSComm1_OnComm()
Dim instring As String
Select Case MSComm1.CommEvent
Case comEvReceive
instring = MSComm1.Input
If instring = Chr(6) Then
Text1.Text = instring
MsgBox "ok"
End If
End Select
End Sub
不管INPUTMODE接收设成文本还是二进制,都没有任何响应,我想是不是PLC不通,