EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Port Status Functions

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-12 Serial Port API
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 the RTS signal was set successfully.
MVI_ERR_NOACCESS comport has not been opened
MVI_ERR_BADPARAM invalid state
Example:
int rc;
rc = MVIsp_SetRTS(COM1, ON);
if (rc != MVI_SUCCESS)
printf(“SetRTS failed\n “);
See Also:
MVIsp_GetRTS

Table of Contents

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

Related product manuals