Prosoft-technology MVI56E-LDM Bedienungsanleitung Seite 149

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 148
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);
Seitenansicht 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare