嘿所有,我試圖打開一個RS232命令使用VB6 comm32 A/V接收器。要打開它,它說的使用方法:RS232c VB6幫助
Command code Parameter code CR Code set example
PW ON <CR> PWON<CR>
這是我目前使用的是似乎沒有工作,我的VB6代碼...
MSComm.CommPort = 2
MSComm.Settings = "9600,n,8,1"
MSComm.PortOpen = True
If Not MSComm.PortOpen Then
MsgBox "not opened"
Else
MSComm.Output = "PWON" & Chr(13)
Do While MSComm.InBufferCount > 0
Text1.Text = Text1.Text & MSComm.Input
Loop
End If
的reciever從來沒有打開。我可能做錯了什麼?我檢查,以確保com端口是2,它是。
大衛
您使用的是什麼型號的A/V接收器?我們可以看看規格嗎? – PleaseStand 2010-11-21 03:46:23
該A/V是馬蘭士sr7005。我正在使用的PDF是這樣的:http://www.filefactory.com/file/b45ce8b/n/Marantz_New_RS232C_Command_List-Receiver_All.pdf – StealthRT 2010-11-21 03:58:54
它坐在輸出緩衝區?我不記得要檢查的屬性的確切名稱... outputbuffercount或什麼?另外,您關閉了流量控制,是的?正如其他人所建議的,先在超級終端中工作。 – Brad 2010-11-21 05:03:40