Campbell HC2S3 Manuel Page 34

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 36
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 33
1 2 ... 29 30 31 32 33 34 35 36

Commentaires sur ces manuels

Pas de commentaire