05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING RAW PORTS<br />

CONFIGURING A SERIAL PORT<br />

USING RAW PORTS<br />

In order to allow customers to implement simple ASCII protocols without having to ask Red<br />

Lion to develop custom drivers, Crimson provides a new facility whereby the software’s<br />

programming language can be used to directly control either serial ports or TCP/IP network<br />

sockets. This functionality—known as raw port access—replaces the driver and functions<br />

used to support the Roll-Your-Own Protocol facility within Edict-97. It also replaces the<br />

General ASCII Frame protocol by providing a function to perform the parsing operations that<br />

the driver previously implemented. Note that if you are not using custom ASCII protocols,<br />

but are instead using the standard drivers provided with Crimson, you can skip this section.<br />

CONFIGURING A SERIAL PORT<br />

To use a serial port in raw mode, select the Raw Serial Port driver as shown…<br />

The port’s Baud rate and other byte format parameters should be configured to indicate the<br />

required communications settings, and the On Update property should be set to specify the<br />

program that will be performing the communication. This program will be called continually<br />

by the port’s communications task.<br />

CONFIGURING A TCP/IP SOCKET<br />

To use a TCP/IP socket in raw mode, select the Raw TCP/IP Passive driver as shown…<br />

REVISION 6 PAGE 271

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

Saved successfully!

Ooh no, something went wrong!