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.

PORTREAD(PORT, PERIOD)<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

PORTREAD(PORT, PERIOD)<br />

ARGUMENT TYPE DESCRIPTION<br />

port int The raw port to be read.<br />

period int The time to wait in milliseconds.<br />

DESCRIPTION<br />

Attempts to read a character from the port indicated by port. The port must be configured to<br />

use a raw driver, such as the raw serial port driver, or either of the raw TCP/IP drivers. If no<br />

data is available within the indicated time period, a value of –1 will be returned. Setting<br />

period to zero will result in any queued data being returned, but will prevent Crimson from<br />

waiting for data to arrive if none is available.<br />

FUNCTION TYPE<br />

This function is active.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

Data := PortRead(1, 100)<br />

PAGE 388<br />

http://www.redlion.net/controller

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

Saved successfully!

Ooh no, something went wrong!