I am attempting to read a couple of HMP60 with my CR6 over MODBUS. I'm using the ModbusMaster statement, but I'm not sure what the format of the HMP60 request or response is supposed to look like. Has anyone attempted this or have any suggestions on how to request information from an HMP60 over MODBUS?
My attempts have resulted in nonsensical data being returned, but the Result code does not seem to be throwing an error, so I think formatting the ModbusMaster command will solve the problem.
The relevant parts of my code are as follows (I have omitted the DataTable and CallTable instructions for brevity):
Public AirTemp(2),RH(2)
Begin Program
SerialOpen (ComC1,19200,7,0,50,4)
Scan (1,Sec,0,0)
ModbusMaster (Result,ComC1,19200,240,3,AirTemp(),3,2,3,100,2)
ModbusMaster (Result,ComC1,19200,240,3,RH(),1,2,3,100,2)
NextScan
EndProg