Thanks, Charles. That's what I was thinking. But wasn't sure.
sendplc address {AllUnitsOff | AllLightsOn | On | Off | Dim | Bright | AllLightsOff | ExtCode | HailRequest | HailAcknowledge | PresetDim1 | PresetDim2 | ExtendedDataTransfer | StatusOn | StatusOff | StatusRequest}
I got the above back in VB6 as a run time error message. So I'm presuming the programmer put in the right format in his error message.
But suppose I had a AM14A (2 way Appliance Module) at House Address E8 and wanted to poll it's status. What would I send?
Finally, figured it out. It's taken me a couple hours to write these few lines.
ActiveHome1.SendAction "sendplc", "e8 StatusRequest"
Using the above works.
What happens is that the above command sends a command to the CM15A to send out a status request to e8. If e8 is the house address of a 2 way module it sends data back to the CM15A. You can pick up both results in the RecvAction event procedure using the following code.
Private Sub ActiveHome1_RecvAction(ByVal bszAction As Variant, _
ByVal bszParm1 As Variant, ByVal bszParm2 As Variant, ByVal bszParm3 As Variant, _
ByVal bszParm4 As Variant, ByVal bszParm5 As Variant, ByVal bszReserved As Variant)
'
Debug.Print bszAction, bszParm1, bszParm2, bszParm3, bszParm4, bszParm5, bszReserved
'
End Sub
But this is what showed up in the Immediate Window when sending the above command:
Immediate recvplc e8 StatusRequest
recvplc e8 StatusOff
The first response comes from the "sendplc", "e8 StatusRequest" command
But the second response comes from the 2way am14A, not the CM15A.
Well, you got me thinking and experimenting. But this should definitely help someone else out in working with the CM15A and 2way modules.
Regards,
Hank
P.S.
Someone said you wrote this:
but Charles Sullivan once said that the above extended preset dim could also be sent as: sendrawplc 07 67 0E 1F 31
Wonder if you could give a short explanation of those 5 hex values?