嘿,我是这个 RS232c 命令发送的新手。这就是我的 Yamaha A/V RX-A2000 的文档。
PWR
[PUT Command]
@MAIN:PWR=Parameter
[GET Command]
@MAIN:PWR=?
Operating & retrieving Power state of Main Zone
Initial Auto Feedback is Available
[Parameters]
Standby
PUT: turining its state to Standby / GET: indicating Standby status.
On
PUT: turining its state to On / GET: indicating On status.
On/Standby
PUT Only: toggling its status between On/Standby
我对如何通过 MSComm 控件发送这样的命令有点困惑。
MSComm.CommPort = 2
MSComm.Settings = "9600,n,8,1"
MSComm.PortOpen = True
If Not MSComm.PortOpen Then
MsgBox "not opened"
Else
MSComm.Output = "@MAIN:PWR=On" & Chr(13)
Do While MSComm.InBufferCount > 0
Text1.Text = Text1.Text & MSComm.Input
Loop
End If
那会是正确的吗?
大卫