Prosoft-technology MVI56E-LDM Manual de usuario Pagina 109

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 264
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 108
ControlLogix Platform "C" Programmable CIP API Functions
Linux Application Development Module Developer's Manual
ProSoft Technology, Inc. Page 103 of 264
March 12, 2014
OCXcip_ImmediateOutput
Syntax
int OCXcip_ImmediateOutput(OCXHANDLE apihandle,
OCXHANDLE connHandle );
Parameters
apiHandle
handle returned by previous call to OCXcip_Open
connHandle
handle of open connection
Description
This function causes the output data of an open connection to be queued for
transmission immediately, rather than waiting for the next scheduled
transmission (based on RPI). It is equivalent to the ControlLogix IOT instruction.
apiHandle must be a valid handle return from OCXcip_Open. connHandle must be
a handle passed by the connect_proc callback function.
Return Value
OCX_SUCCESS
data was read successfully
OCX_ERR_NOACCESS
apihandle does not have access
OCX_ERR_BADPARAM
connHandle or offset/dataSize is invalid
Example
OCXHANDLE apihandle;
OCXHANDLE connHandle;
BYTE buffer[128];
// Update the output data and transmit now
OCXcip_WriterConnected (apiHandle, connHandle, buffer, 0, 128);
OCXcip_ImmediateOutput (apiHandle, connHandle);
See Also
OCXcip_WriteConnected
Vista de pagina 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 263 264

Comentarios a estos manuales

Sin comentarios