Publication 1756-RM004B-EN-P - October 2000
CIP Messaging API 4-21
Return Value:
The
rxdata_proc
routine must return MVI_SUCCESS.
Example:
MVIHANDLE Handle;
int _loadds rxdata_proc( MVIHANDLE objHandle, MVICIPRECVSTRUC *sRecv )
{
// Copy the data to our local buffer.
memcpy(RxDataBuf, sRecv->rxData, sRecv->dataSize);
// Indicate that new data has been received
RxDataCnt++;
return(MVI_SUCCESS);
}
See Also:
MVIcip_RegisterAssemblyObj
rxdata_proc