小弟正在開發SSC32的介面 
遇到一些有小瓶頸 
所以來請教大大們!!請大大們用力鞭策我!! 
 
小的有用過LynxTerm這軟體來玩馬達 
知道只要丟出"字串"那麼SSC32就會依據操作格式動作 
但小弟的發開介面也是丟出字串 
有用RS232將2跟3腳短路後測試丟出字串 
這個丟出的字串格式也沒有問題!! 
附上程式碼請大大們指導我^^...感激不盡!!! 
 
Private Sub Form_Load() 
    On Error Resume Next 
    MSComm1.Settings = "115200,N,8,1" 
    Open "32CSSCNT.CFG" For Input As #1 
        Input #1, COMPort 
        MSComm1.CommPort = COMPort 
        MSComm1.PortOpen = True 
    Close #1 
End Sub 
 
Private Sub Form_Unload(Cancel As Integer) 
    On Error Resume Next 
    Open "32CSSCNT.CFG" For Output As #1 
        COMPort = MSComm1.CommPort 
        Print #1, COMPort 
        MSComm1.PortOpen = False 
    Close #1 
End Sub 
 
Private Sub mnuCOM_Click(Index As Integer) 
    On Error Resume Next 
    If MSComm1.PortOpen = True Then 
        MSComm1.PortOpen = False 
    End If 
    MSComm1.Settings = "115200,N,8,1" 
    MSComm1.CommPort = Index 
    MSComm1.PortOpen = True 
End Sub |