Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 102

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

Advertisement

5-14
Serial Port API
Publication 1756-RM004B-EN-P - October 2000
MVIsp_SetDTR
Syntax:
int
MVIsp_SetDTR(int comport, int state);
Parameters:
comport
port for which DTR is to be changed
state
desired state
Description:
This function allows the state of the DTR signal to be controlled.
comport must be previously opened with MVIsp_Open.
state is the desired state of the DTR signal. Valid values for state are
ON and OFF.
Note: If DTR/DSR handshaking is enabled, changing the state of the
DTR signal with MVIsp_SetDTR will cause unpredictable results.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
Example:
if (MVIsp_SetDTR(COM1, ON) != MVI_SUCCESS)
printf("Set DTR failed\n");
See Also:
MVIsp_GetDTR
the DTR signal was set successfully
comport has not been opened
invalid state

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents