Product manual
Appendix C. HC2S3 Digital Communications
C-6
BeginProg
SerialOpen (SensorPort,19200,51,100,200) '51 is for half duplex
String_1 = "|{F00RDD}"+CRLF 'RS485 command to send data
Scan (5,Sec,0,0)
SerialFlush (SensorPort)
SerialOut (SensorPort,String_1,0,1,100) 'Send command to send data
Delay (0,500,mSec)
'Get data from probe
SerialInRecord (SensorPort,SerialIndest,&H6464,0,&H4843,NBytesReturned,01)
'Parse RH and temp from string
RH=Mid (SerialIndest,6,5)
TempC=Mid (SerialIndest,23,5)
CallTable Table1
NextScan
EndProg