15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

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.

PERIPHERAL<br />

Transmission<br />

to peripheral<br />

256-CHARACTER<br />

LINEAR BUFFER<br />

Function<br />

comout()<br />

BUFFER<br />

TO BE SENT<br />

Serial Lines<br />

@ %M.n<br />

Figure 12.1 - Transmission of a buffer<br />

12.4 Reception of a Buffer comin<br />

Syntax<br />

comin(portno, &buffer, nb)<br />

portno: Communication port number (0 to B).<br />

&buffer: Address of the buffer where the characters received are to be stored.<br />

nb: Maximum number of characters to be read.<br />

Reads from the reception buffer of serial line portno.<br />

Operation<br />

The system manages a 236 character circular reception buffer. Function comin() is used to read all or part of the buffer.<br />

The number of characters read is equal to the number of characters requested (nb) or the number of characters present<br />

in the circular buffer, whichever is lower.<br />

If the line was not already set to reception by <strong>function</strong> comctl(), the first call to comin() causes an immediate switch<br />

to reception.<br />

The call to comin(portno, &buffer, 0) causes a stop and initialises reception.<br />

en-938846/3 12 - 7<br />

12

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

Saved successfully!

Ooh no, something went wrong!