
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
ICP object was retrieved successfully
apihandle does not have access
returned if not enough memory is available
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);
Kommentare zu diesen Handbüchern