Moxa Technologies IA261 Manual de usuario Pagina 51

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 75
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 50
IA261/262 WinCE User’s Manual CANopen Library
B-15
y Parameters
d: [input] Node handle pointer.
wIndex: [input] The index in the object dictionary where you want to write an entry.
bSubindex: [input] The subindex of the Index.
Callback: [input] assigned callback function.
y Return Values
NULL if index not found, else: return the table part of the object dictionary.
13. moxa_sendPDO
This function is used to send PDO.
y Syntax
UNS8 moxa_sendPDO (CO_Data* d, s_PDO pdo, UNS8 request)
y Parameters
d: [input] Node handle pointer.
pdo: [input] pdo is a structure which contains the data to transmit.
typedef struct struct_s_PDO {
UNS32 cobId; /* COB-ID */
UNS8 len; /* Number of data transmitted (in data[]) */
UNS8 data[8]; /* Contain the data */
}s_PDO;
Request: [input] Request can take the value REQUEST or NOT_A_REQUEST.
y Return Values
0xFF: Can’t send PDO because the state of node is not in operational mode.
1: Success, 0: Fail.
14. moxa_PDOmGR
Prepare a PDO frame transmission.
y Syntax
UNS8 moxa_PDOmGR (CO_Data* d, UNS32 cobId)
Vista de pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 74 75

Comentarios a estos manuales

Sin comentarios