Hey all i am new at this RS232c command sending. This is what the documents has for my 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
I am a little confused as to how to send a command like that through the MSComm control.
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
Would that be correct?
David