Campbell HC2S3 Manuál Strana 34

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 36
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 33
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
Zobrazit stránku 33
1 2 ... 29 30 31 32 33 34 35 36

Komentáře k této Příručce

Žádné komentáře