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

Moxa IA262-I-T-CE Инструкция по эксплуатации онлайн [72/74] 170914
IA261/262 WinCE User’s Manual CANopen Library
res = ReadSDO(node_id, 0x1000, 0, uint32, &dev_type, &size);
printf(“device type: %d\n”,dev_type & 0xFFFF);
size = sizeof (device_name);
res = ReadSDO(node_id, 0x1008, 0, visible_string, device_name, &size);
printf(“device name: %s\n”,device_name);
size = sizeof (hw_ver);
res = ReadSDO(node_id, 0x1009, 0, visible_string, hw_ver, &size);
printf(HW version: %s\n,hw_ver);
size = sizeof (sw_ver);
res = ReadSDO(node_id, 0x100A, 0, visible_string, sw_ver, &size);
printf(SW version: %s\n,sw_ver);
size = sizeof (vendor_id);
res = ReadSDO(node_id, 0x1018, 1, uint32, &vendor_id, &size);
printf(“vendor id: %d\n”,vendor_id);
size = sizeof (prod_code);
res = ReadSDO(node_id, 0x1018, 2, uint32, &prod_code, &size);
printf(“product code: %d\n”,prod_code);
size = sizeof (ser_num);
res = ReadSDO(node_id, 0x1018, 4, uint32, &ser_num, &size);
printf(serial number: %d\n,ser_num);
B-37

Содержание

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

Скачать