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

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

Advertisement

5-24
Serial Port API
Publication 1756-RM004B-EN-P - October 2000
MVIsp_Puts
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
MVI_ERR_TIMEOUT
Example:
char str[] = "Hello, World!";
int
nn;
if (MVIsp_Puts(COM1, str, '\0', &nn, 1000L) != MVI_SUCCESS)
printf("%d characters were sent\n",nn);
See Also:
MVIsp_Gets
MVIsp_PutCh
MVIsp_PutData
the characters were sent successfully
comport has not been opened
invalid parameter
timeout elapsed before characters sent

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents