04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

Marks and Spaces<br />

RS‐232 signal levels are inverted logic compared to TTL. The different<br />

levels are called marks and spaces. When referenced to signal ground,<br />

the valid RS‐232 voltage level for a mark is ‐3 to ‐25, and for a space is<br />

+3 to +25 with ‐3 to + 3 defined as the transition range that contains no<br />

information. A mark is a logic 1 and negative voltage. A space is a logic 0<br />

and positive voltage.<br />

MSB<br />

Most significant bit (the leading bit).<br />

RS‐232C<br />

Refers to the standard used to define the hardware signals and voltage<br />

levels. The <strong>CR1000</strong> supports several options of serial logic and voltage<br />

levels including RS‐232 logic at TTL levels and TTL logic at TTL levels.<br />

RX<br />

Receive<br />

SP<br />

Space<br />

Start bit<br />

Is the bit used to indicate the beginning of data.<br />

Is the end of the data bits. The stop bit can be 1, 1.5 or 2.<br />

TX<br />

Transmit<br />

7.8.8.5 CRBasic Programming<br />

To transmit or receive RS-232 or TTL signals, a serial port (see table <strong>CR1000</strong><br />

Serial Ports (p. 202) ) must be opened and configured through CRBasic with the<br />

SerialOpen() instruction. The SerialClose() instruction can be used to close the<br />

serial port. Below is practical advice regarding the use of SerialOpen() and<br />

SerialClose(). Program CRBasic example Receiving an RS-232 String (p. 210)<br />

shows the use of SerialOpen(). Consult CRBasic Editor Help for more<br />

information.<br />

SerialOpen(COMPort,BaudRate,Format,TXDelay,BufferSize)<br />

• COMPort — Refer to CRBasic Editor Help for a complete list of COM ports<br />

available for use by SerialOpen().<br />

204

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!