Prosoft-technology MVI69-ADM Manual de usuario Pagina 219

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 218
MVI-ADM 'C' Programmable Backplane API Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 219 of 342
February 20, 2013
Send MSG Instruction Configuration
Field
Value
Description
Message Type
CIP Generic
Specify CIP message type
Service Code
OE (Hex)
Get_Attribute_Single service
Object Type
4
Assembly object class code
Object ID
7
Output message instance number
Object Attribute
3
Data attribute
Num Elements
Application dependent
Size of message to be written
Path
Application dependent
Path to MVI-ADM module
Return Value
MVI_SUCCESS
A message has been received.
MVI_ERR_NOACCESS
handle does not have access.
MVI_ERR_TIMEOUT
The timeout occurred before the message was transferred.
MVI_ERR_BADPARAM
A parameter is invalid.
MVI_ERR_BADCONFIG
Send messaging is not enabled.
Example
MVIHANDLE Handle;
int rc;
WORD buffer[256];
// Wait 5 seconds for the message to be sent
rc = MVIbp_SendMessage(Handle, buffer, 256, 5000);
if (rc == MVI_SUCCESS)
printf("Message sent\n");
See Also
MVIbp_SetIOConfig (page 208)
MVIbp_ReceiveMessage (page 216)
Vista de pagina 218
1 2 ... 214 215 216 217 218 219 220 221 222 223 224 ... 341 342

Comentarios a estos manuales

Sin comentarios