Moxa IA262-I-T-LX Инструкция по эксплуатации онлайн [50/74] 170916

Moxa IA262-I-CE Инструкция по эксплуатации онлайн [50/74] 170913
IA261/262 WinCE User’s Manual CANopen Library
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)
B-15

Содержание

Похожие устройства

Скачать