Prosoft-technology MVI56E-LDM Manuale Utente Pagina 149

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 264
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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);
Vedere la pagina 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 263 264

Commenti su questo manuale

Nessun commento