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

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

Advertisement

connect_proc
Example:
MVIHANDLE
Handle;
MVICALLBACK connect_proc( MVIHANDLE objHandle, MVICIPCONNSTRUCT
*sConn)
{
// Check reason for callback
switch( sConn->reason )
{
case MVI_CIP_CONN_OPEN:
// A new connection request is being made. Validate the
// parameters and determine whether to allow the
// connection.
// Return MVI_SUCCESS if the connection is to be
// established,
// or one of the extended error codes if not. See the sample
// code for more details.
return(MVI_SUCCESS);
case MVI_CIP_CONN_OPEN_COMPLETE:
// The connection has been successfully opened. If
// necessary,
// call MVIcip_WriteConnected to initialize transmit data.
return(MVI_SUCCESS);
case MVI_CIP_CONN_CLOSE:
// This connection has been closed – inform the application
return(MVI_SUCCESS);
}
}
See Also:
MVIcip_RegisterAssemblyObj
MVIcip_SendConnected
MVIcip_ReadConnected
CIP Messaging API
Publication 1756-RM004B-EN-P - October 2000
4-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents