Port Status - Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

5-12
Serial Port API
Publication 1756-RM004B-EN-P - October 2000

Port Status

MVIsp_SetRTS
Syntax:
int
MVIsp_SetRTS(int comport, int state);
Parameters:
comport
port for which RTS is to be changed
state
desired RTS state
Description:
This functions allows the state of the RTS signal to be controlled.
comport must be previously opened with MVIsp_Open.
state specifies desired state of the RTS signal. Valid values for state are
ON and OFF.
Note: If RTS/CTS hardware handshaking is enabled, using the
MVIsp_SetRTS function will cause unpredictable results.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
Example:
int
rc;
rc = MVIsp_SetRTS(COM1, ON);
if (rc != MVI_SUCCESS)
printf("SetRTS failed\n ");
See Also:
MVIsp_GetRTS
the RTS signal was set successfully.
comport has not been opened
invalid state

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents