📄 entriesandreplies.h
字号:
// Entries and Replies
// Generated by CANopen Architect EDS 1.31 on Wed Jan 17 09:50:07 2007
// Use with MicroCANopen Plus CANopen stack
// For more information visit www.esacademy.com and www.microcanopen.com
// Check for warnings below before using this file
#ifndef _ENTRIESANDREPLIESH_
#define _ENTRIESANDREPLIESH_
// WARNING - below is a best guess as to which entries are really constants
// Comment out entries that are changed by the application/stack
#define SDOREPLY_ENTRIES \
/* Device Type */ \
SDOREPLY(0x1000, 0x00, 4, 0x000F0191L), \
/* Identity Object - number of entries */ \
SDOREPLY(0x1018, 0x00, 1, 0x00000004L), \
\
/* PDO parameters are in Object Dictionary */ \
\
/* RPDO communication parameters */ \
/* Receive PDO Communication Parameter - Number of Entries */ \
SDOREPLY(0x1400, 0x00, 1, 0x00000002L), \
/* Receive PDO Communication Parameter - COB-ID */ \
SDOREPLY(0x1400, 0x01, 4, 0x00000000L), \
/* Receive PDO Communication Parameter - Transmission Type */ \
SDOREPLY(0x1400, 0x02, 1, 0x000000FFL), \
/* Receive PDO Communication Parameter - Number of Entries */ \
SDOREPLY(0x1401, 0x00, 1, 0x00000002L), \
/* Receive PDO Communication Parameter - COB-ID */ \
SDOREPLY(0x1401, 0x01, 4, 0x00000000L), \
/* Receive PDO Communication Parameter - Transmission Type */ \
SDOREPLY(0x1401, 0x02, 1, 0x000000FFL), \
\
/* RPDO mapping parameters */ \
/* Receive PDO Mapping Parameter - Number of Entries */ \
SDOREPLY(0x1600, 0x00, 1, 0x00000004L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1600, 0x01, 4, 0x62000108L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1600, 0x02, 4, 0x62000208L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1600, 0x03, 4, 0x62000308L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1600, 0x04, 4, 0x62000408L), \
/* Receive PDO Mapping Parameter - Number of Entries */ \
SDOREPLY(0x1601, 0x00, 1, 0x00000002L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1601, 0x01, 4, 0x64110110L), \
/* Receive PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1601, 0x02, 4, 0x64110210L), \
\
/* TPDO communication parameters */ \
/* Transmit PDO Communication Parameter - Number of Entries */ \
SDOREPLY(0x1800, 0x00, 1, 0x00000005L), \
/* Transmit PDO Communication Parameter - COB-ID */ \
SDOREPLY(0x1800, 0x01, 4, 0x00000000L), \
/* Transmit PDO Communication Parameter - Transmission Type */ \
SDOREPLY(0x1800, 0x02, 1, 0x000000FFL), \
/* Transmit PDO Communication Parameter - Inhibit Time */ \
SDOREPLY(0x1800, 0x03, 2, 0x000001F4L), \
/* Transmit PDO Communication Parameter - Event Timer */ \
SDOREPLY(0x1800, 0x05, 2, 0x000000C8L), \
/* Transmit PDO Communication Parameter - Number of Entries */ \
SDOREPLY(0x1801, 0x00, 1, 0x00000005L), \
/* Transmit PDO Communication Parameter - COB-ID */ \
SDOREPLY(0x1801, 0x01, 4, 0x00000000L), \
/* Transmit PDO Communication Parameter - Transmission Type */ \
SDOREPLY(0x1801, 0x02, 1, 0x000000FFL), \
/* Transmit PDO Communication Parameter - Inhibit Time */ \
SDOREPLY(0x1801, 0x03, 2, 0x000000C8L), \
/* Transmit PDO Communication Parameter - Event Timer */ \
SDOREPLY(0x1801, 0x05, 2, 0x0000012CL), \
\
/* TPDO mapping parameters */ \
/* Transmit PDO Mapping Parameter - Number of Entries */ \
SDOREPLY(0x1A00, 0x00, 1, 0x00000004L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A00, 0x01, 4, 0x60000108L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A00, 0x02, 4, 0x60000208L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A00, 0x03, 4, 0x60000308L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A00, 0x04, 4, 0x60000408L), \
/* Transmit PDO Mapping Parameter - Number of Entries */ \
SDOREPLY(0x1A01, 0x00, 1, 0x00000002L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A01, 0x01, 4, 0x64010110L), \
/* Transmit PDO Mapping Parameter - PDO Mapping Entry */ \
SDOREPLY(0x1A01, 0x02, 4, 0x64010210L), \
\
/* MicroCANopen Identity Object - number of entries */ \
SDOREPLY(0x2018, 0x00, 1, 0x00000003L), \
/* Read State 8 Input Lines - Number of Elements */ \
SDOREPLY(0x6000, 0x00, 1, 0x00000004L), \
/* Write State 8 Output Lines - Number of Elements */ \
SDOREPLY(0x6200, 0x00, 1, 0x00000004L), \
/* Write State 8 Output Lines - DigOutput8_ */ \
SDOREPLY(0x6200, 0x01, 1, 0x00000000L), \
/* Write State 8 Output Lines - DigOutput8_ */ \
SDOREPLY(0x6200, 0x02, 1, 0x00000000L), \
/* Write State 8 Output Lines - DigOutput8_ */ \
SDOREPLY(0x6200, 0x03, 1, 0x00000000L), \
/* Write State 8 Output Lines - DigOutput8_ */ \
SDOREPLY(0x6200, 0x04, 1, 0x00000000L), \
/* Read Analog Input 16-bit - Number of Elements */ \
SDOREPLY(0x6401, 0x00, 1, 0x00000002L), \
/* Write Analog Output 16-bit - Number of Elements */ \
SDOREPLY(0x6411, 0x00, 1, 0x00000002L), \
/* Write Analog Output 16-bit - AnalogOutput16_ */ \
SDOREPLY(0x6411, 0x01, 2, 0x00000000L), \
/* Write Analog Output 16-bit - AnalogOutput16_ */ \
SDOREPLY(0x6411, 0x02, 2, 0x00000000L), \
// 1 MACROS WERE GENERATED TO HOLD THE SDO REPLIES
// USE THE FOLLOWING:
//
// SDOREPLY_ENTRIES
#define ODGENTRY_CONSTINITS \
#define ODGENTRY_ENTRIES \
// 1 MACROS WERE GENERATED TO HOLD THE OD ENTRIES
// USE THE FOLLOWING:
//
// ODGENTRY_ENTRIES
#define ODENTRY_ENTRIES \
/* mapping entries for RPDO1 [1600] */ \
ODENTRY(0x6200, 0x01, 1+ODRD+ODWR, P620001_DIGOUTPUT8_), \
ODENTRY(0x6200, 0x02, 1+ODRD+ODWR, P620002_DIGOUTPUT8_), \
ODENTRY(0x6200, 0x03, 1+ODRD+ODWR, P620003_DIGOUTPUT8_), \
ODENTRY(0x6200, 0x04, 1+ODRD+ODWR, P620004_DIGOUTPUT8_), \
/* mapping entries for RPDO2 [1601] */ \
ODENTRY(0x6411, 0x01, 2+ODRD+ODWR, P641101_ANALOGOUTPUT16_), \
ODENTRY(0x6411, 0x02, 2+ODRD+ODWR, P641102_ANALOGOUTPUT16_), \
/* mapping entries for TPDO1 [1A00] */ \
ODENTRY(0x6000, 0x01, 1+ODRD, P600001_DIGINPUT8_), \
ODENTRY(0x6000, 0x02, 1+ODRD, P600002_DIGINPUT8_), \
ODENTRY(0x6000, 0x03, 1+ODRD, P600003_DIGINPUT8_), \
ODENTRY(0x6000, 0x04, 1+ODRD, P600004_DIGINPUT8_), \
/* mapping entries for TPDO2 [1A01] */ \
ODENTRY(0x6401, 0x01, 2+ODRD, P640101_ANALOGINPUT16_), \
ODENTRY(0x6401, 0x02, 2+ODRD, P640102_ANALOGINPUT16_), \
\
ODENTRY(0x1018, 0x04, 4+ODRD, P101804_SERIAL_NUMBER), \
// 1 MACROS WERE GENERATED TO HOLD THE OD ENTRIES
// USE THE FOLLOWING:
//
// ODENTRY_ENTRIES
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -