EasyManua.ls Logo

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

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
Serial Port API 5-13
MVIsp_GetRTS
Syntax:
int MVIsp_GetRTS(int comport, int *state);
Parameters:
comport port for which RTS is requested
state pointer to int for desired state
Description:
This function allows the state of the RTS signal to be determined.
comport must be previously opened with MVIsp_Open.
The current state of the RTS signal is copied to the int pointed to by
state.
Return Value:
MVI_SUCCESS the RTS state was read successfully
MVI_ERR_NOACCESS comport has not been opened
MVI_ERR_BADPARAM invalid pointer
Example:
int state;
if (MVIsp_GetRTS(COM1, &state) = = MVI_SUCCESS)
{
if (state = = ON)
printf(“RTS is ON\n”);
else
printf(“RTS is OFF\n”);
}
See Also:
MVIsp_SetRTS

Table of Contents

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

Related product manuals