Prosoft-technology MVI56E-LDM Manual do Utilizador Página 149

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 264
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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);
Vista de página 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 263 264

Comentários a estes Manuais

Sem comentários