4-12
CIP Messaging API
Publication 1756-RM004B-EN-P - October 2000
MVIcip_ReadConnected
The MVIcip_ReadConnected function can only be used if the
rxdata_proc callback function pointer was set to NULL in the call to
MVIcp_RegisterAssemblyObject().
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADPARAM
MVI_ERR_INVALID
Example:
MVIHANDLE
apiHandle;
MVIHANDLE
connHandle;
BYTE
buffer[128];
// Read 128 bytes from the connected data buffer
MVIcip_ReadConnected(apiHandle, connHandle, buffer, 0, 128 );
See Also:
MVIcip_WriteConnected
data was read successfully
apiHandle does not have access
connHandle or dataSize is invalid
an rxdata_proc callback has been registered