Campbell-scientific CR1000 Measurement and Control System Uživatelský manuál Strana 204

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 588
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 203
Section 7. Installation
204
MarksandSpaces
RS232signallevelsareinvertedlogiccomparedtoTTL.Thedifferent
levelsarecalledmarksandspaces.Whenreferencedtosignalground,
thevalidRS232voltagelevelforamarkis‐3to‐25,andforaspaceis
+3to+25with‐3to+3defin
edasthetransitionrangethatcontainsno
information.Amarkisalogic1andnegativevoltage.Aspaceisalogic0
andpositivevoltage.
MSB
Mostsignificantbit(theleadingbit).
RS232C
Referstothestandardusedtodefinethehardwaresignalsandvoltage
levels.TheCR1000supportsseveraloptionsofseriallogicandvoltage
levelsincludingRS232logicatTTLlevelsandTTLlogicatTTLlevels.
RX
Receive
SP
Space
Startbit
Isthebitusedtoindicatethebeginningofdata.
Istheendofthedatabits.Thestopbitcanbe1,1.5or2.
TX
Transmit
7.8.8.5 CRBasic Programming
To transmit or receive RS-232 or TTL signals, a serial port (see table CR1000
Serial Ports
(p. 202) ) must be opened and configured through CRBasic with the
SerialOpen() instruction. The SerialClose() instruction can be used to close the
serial port. Below is practical advice regarding the use of SerialOpen() and
SerialClose(). Program CRBasic example Receiving an RS-232 String
(p. 210)
shows the use of SerialOpen(). Consult CRBasic Editor Help for more
information.
SerialOpen(COMPort,BaudRate,Format,TXDelay,BufferSize)
COMPort — Refer to CRBasic Editor Help for a complete list of COM ports
available for use by SerialOpen().
Zobrazit stránku 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 587 588

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

Žádné komentáře