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.

WAITDATA(DATA, COUNT, TIME)<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

WAITDATA(DATA, COUNT, TIME)<br />

ARGUMENT TYPE DESCRIPTION<br />

data any First array element to be read.<br />

count int Number of elements to be read.<br />

time int The timeout period in milliseconds.<br />

DESCRIPTION<br />

Requests that count elements from array element data onwards to read on the next comms<br />

scan. This function is used with arrays that have been mapped to external data, and which<br />

have their read policy set to Read Manually. Unlike ReadData(), the function waits for up to<br />

the time specified by the time parameter in order to allow the data to be read. The return<br />

value is one if the read completed within that period, or zero otherwise.<br />

FUNCTION TYPE<br />

This function is active.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

status := WaitData(array1[8], 10, 1000)<br />

PAGE 432<br />

http://www.redlion.net/controller

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

Saved successfully!

Ooh no, something went wrong!