ProSoft Technology MVI56E-LDM User Manual
Page 86
Advertising

CIP API Functions
ControlLogix Platform ♦ "C" Programmable
Developer's Manual
Linux Application Development Module
Page 80 of 264
ProSoft Technology, Inc.
March 12, 2014
Example
OCXHANDLE apihandle;
OCXHANDLE objHandle;
MY_STRUCT mystruct;
int rc;
OCXCALLBACK MyConnectProc (OCXHANDLE, OCXCIPCONNSTRUC *);
OCXCALLBACK MyServiceProc (OCXHANDLE, OCXCIPSERVSTRUC *);
// Register all instances of the assembly object
rc = MVIcip_RegisterAssemblyObj( apihandle, &objHandle,
(DWORD)&mystruct, MyConnectProc, MyServiceProc, NULL );
if (rc != OCX_SUCCESS) printf("Unable to register assembly object\n");
See Also
OCXcip_UnregisterAssemblyObj
connect_proc
service_proc
Advertising