EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Page 122

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI
145 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM004B-EN-P - October 2000
5-34 Serial Port API
MVIsp_PurgeDataUnread
Syntax:
int MVIsp_PurgeDataUnread(int comport)
Parameters:
comport port whose receive data is to be purged
Description:
MVIsp_PurgeDataUnread deletes all data waiting in the receive queue.
The data is discarded and is no longer available for reading.
Note: If handshaking is enabled and the transmitting serial device has
been paused, this function will release the transmitting serial device to
resume transmission.
Return Value:
MVI_SUCCESS the data was purged successfully
MVI_ERR_BADPARAM invalid comport
MVI_ERR_NOACCESS the comport has not been opened
Example:
if (MVIsp_PurgeDataUnread(COM1) = = MVI_SUCCESS)
printf(“Transmit Data purged.\n”);
See Also:
MVIsp_PurgeDataUnsent

Table of Contents

Other manuals for Rockwell Automation Allen-Bradley ControlLogix 1756-MVI

Related product manuals