beautypg.com

ProSoft Technology MVI56E-LDM User Manual

Page 156

background image

CIP API Functions

ControlLogix Platform ♦ "C" Programmable

Developer's Manual

Linux Application Development Module

Page 150 of 264

ProSoft Technology, Inc.

March 12, 2014

OCX_ERR_BADPARAM

returned if path was incorrect

OCX_CIP_INVALID_REQUEST The device does not support the requested object

Example

OCXHANDLE apihandle;
OCXCIPEXDEVOBJ exdevobject;
BYTE Path[]="p:1,s:0";

// Read Extended Device object from 5550 in slot 0

OCXcip_GetExDevObject(apihandle, &Path, &exdevobject, 5000);

printf ("\nDevice Name: %s", exdevobject.Name);
printf("\nDescription: %s", exdevobject.Description);