beautypg.com

ProSoft Technology MVI56E-LDM User Manual

Page 149

background image

ControlLogix Platform ♦ "C" Programmable

CIP API Functions

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 143 of 264

March 12, 2014

WORD RackSize; //Chassis size (number of
slots

} OCXCIPICPOBJ;

Return Value

OCX_SUCCESS

ICP object was retrieved successfully

OCX_ERR_NOACCESS

apihandle does not have access

OCX_ERR_MEMALLOC

returned if not enough memory is available

OCX_ERR_BADPARAM

returned if path was incorrect

Example

OCXHANDLE apihandle;
OCXCIPICPOBJ icpobject;
BYTE Path[]="p:1,s:0";

// Read ICP data from 5550 in slot 0

OCXcip_GetDeviceICPObject(apihandle, &Path, &icpobject, 5000);

printf ("\n\rRack Size: %d SerialNum: %ld"), icpobject.RackSize,
icpobject.RackSerialNumber);
printf("\n\rRack Revision: %d.%d", icpobject.RackMajorRev,
icpobject.RackMinorRev);