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

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

Advertisement

4-14
CIP Messaging API
Publication 1756-RM004B-EN-P - October 2000
connect_proc
Syntax:
MVICALLBACK connect_proc( MVIHANDLE objHandle,
MVICIPCONNSTRUC *sConn );
Parameters:
objHandle
sConn
Description:
connect_proc is a callback function which is passed to the CIP API in
the MVIcip_RegisterAssemblyObj call. The CIP API calls the
connect_proc function when a Class 1 scheduled connection request is
made for the registered object instance specified by objHandle.
sConn is a pointer to a structure of type MVICIPCONNSTRUCT. This
structure is shown below:
typedef struct tagMVICIPCONNSTRUC
{
MVIHANDLE connHandle;
DWORD
reg_param;
WORD
reason;
WORD
instance;
WORD
producerCP;
WORD
consumerCP;
DWORD
*lOTApi;
DWORD
*lTOApi;
DWORD
lODeviceSn;
WORD
iOVendorId;
WORD
rxDataSize;
WORD
txDataSize;
BYTE
*configData;
WORD
configSize;
WORD
*extendederr;
} MVICIPCONNSTRUC;
handle of registered object instance
pointer to structure of type MVICIPCONNSTRUCT
// unique value which identifies this connection
// value passed via MVIcip_Register AssemblyObj
// specifies reason for callback
// instance specified in open
// producer connection point specified in open
// consumer connection point specified in open
// pointer to originator to target packet interval
// pointer to target to originator packet interval
// Serial number of the originator
// Vendor Id of the originator
// size in bytes of receive data
// size in bytes of transmit data
// pointer to configuration data sent in open
// size of configuration data sent in open
// an extended error code if an error occurs

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents