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

Moxa IA262-I-T-LX Инструкция по эксплуатации онлайн [67/74] 170916
IA261/262 WinCE User’s Manual CANopen Library
struct struct_s_BOARD {
* busname; //port number
* baudrate;//baud rate
};
d: [input] Node handle pointer.
y Return Values
Return handle value for this CAN port.
53. moxa_canClose
The function can close the CAN controller.
y Syntax
int moxa_canClose (CO_Data * d)
y Parameters
d: [input] Node handle pointer.
y Return Values
0
Example Code
The following example codes can let user to understand how to configure master and slave node.
Both communicate together, performances NMT object and slave’s node provided information to
master through SDO.
Configure Master node:
#include <windows.h>
#include <commctrl.h>
#include <moxa\devices.h>
#pragma comment(lib, “CANopen.lib”)
#pragma comment(lib, “mxdev.lib”)
extern “C”
{
#include <moxa\canopen.h>
B-32

Содержание

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

Скачать