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

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

Advertisement

5-28
Serial Port API
Publication 1756-RM004B-EN-P - October 2000
MVIsp_PutData
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
MVI_ERR_TIMEOUT
Example:
BYTE
dd[5] = { 10, 20, 30, 40, 50 };
int
nn;
nn = 5;
if (MVIsp_PutData(COM1, &dd[0], &nn, 1000L) != MVI_SUCCESS)
printf("%d bytes were sent\n",nn);
See Also:
MVIsp_PutCh
MVIsp_Puts
the bytes were sent successfully
comport has not been opened
invalid parameter
timeout elapsed before bytes sent

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents