Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef PROTOCOLCOMMANDS
00019 #define PROTOCOLCOMMANDS
00020
00021
00022
00023
00024
00025
00026
00027
00028 #define MSGID_ACK 0x0a0
00029 #define MSGID_GET 0x0c0
00030 #define MSGID_SET 0x0e0
00031 #define MSGID_STATE 0x060
00032 #define MSGID_ALL 0x100
00033
00034 #define MSGID_DLR_INIT_0 0x42e
00035 #define MSGID_DLR_INIT_1 0x42c
00036 #define MSGID_DLR_INIT_2 0x42c
00037 #define MSGID_DLR_INIT_ACK 0x42b
00038 #define MSGID_DLR_DATA_GET 0x42d
00039 #define MSGID_DLR_DATA_ACK 0x3c5
00040
00041 #define MSGID_SCHUNK_SEND 0x300
00042 #define MSGID_SCHUNK_RECV 0x200
00043 #define MAX_SCHUNK 63
00044
00045 #define MSGID_EMS_START_ID 0x500
00046 #define MSGID_EMS_CONFIG_ACK 0x7e4
00047 #define MSGID_EMS_CONFIG 0x7e5
00048
00049 #define MSGID_MP55_SEND 0x600
00050 #define MSGID_MP55_RECV 0x580
00051 #define MAX_MP55 127
00052
00053
00054
00055
00056
00057
00058
00059 #define CMDID_RESET 0x00 // message all
00060 #define CMDID_HOME 0x01 // message all
00061 #define CMDID_HALT 0x02 // message all
00062 #define CMDID_TOGGLEHOME 0x03
00063 #define CMDID_INTERNAL 0x04
00064 #define CMDID_WATCHDOG 0x07 // message all
00065
00066 #define CMDID_SETPARAM 0x08
00067 #define CMDID_RECALCPID 0x09
00068 #define CMDID_BAUDRATE 0x09 // message all
00069 #define CMDID_GETPARAM 0x0a
00070 #define CMDID_SETMOVE 0x0b
00071
00072 #define CMDID_SAVEPOS 0x0e // message all
00073 #define CMDID_STARTMOVE 0x0f // message all
00074 #define CMDID_SAVEPARAMS 0x10
00075
00076 #define CMDID_DLR_DATA_GET 0x44
00077 #define CMDID_DLR_DATA_ACK0 0x00
00078 #define CMDID_DLR_DATA_ACK1 0x41
00079 #define CMDID_DLR_DATA_ACK2 0x42
00080 #define CMDID_DLR_DATA_ACK3 0x83
00081
00082 #define CMDID_SCHUNK_GET_FTI 0x4c
00083 #define CMDID_SCHUNK_GET_TEI 0x4e
00084 #define CMDID_SCHUNK_GET_TRI 0x56
00085 #define CMDID_SCHUNK_SET_BAUDRATE 0x72
00086 #define CMDID_SCHUNK_SET_MSGID 0x74
00087 #define CMDID_SCHUNK_SET_NULL 0x7a
00088
00089 #define CMDID_EMS_SET_MSGID 0x80
00090 #define CMDID_EMS_SET_STARTBIT 0x81
00091
00092
00093
00094
00095
00096
00097
00098 #define PARID_DLR_DATA_GET 0x31
00099
00100 #define PARID_MOVE_FRAMP 0x04
00101 #define PARID_MOVE_FSTEP 0x06
00102 #define PARID_MOVE_FVEL 0x07
00103 #define PARID_MOVE_FCUR 0x08
00104 #define PARID_MOVE_IRAMP 0x09
00105 #define PARID_MOVE_ISTEP 0x0b
00106 #define PARID_MOVE_IVEL 0x0c
00107 #define PARID_MOVE_ICUR 0x0d
00108 #define PARID_MOVE_FRAMP_EXT 0x0e
00109 #define PARID_MOVE_FSTEP_EXT 0x10
00110 #define PARID_MOVE_FVEL_EXT 0x11
00111 #define PARID_MOVE_FCUR_EXT 0x12
00112 #define PARID_MOVE_IRAMP_EXT 0x13
00113 #define PARID_MOVE_ISTEP_EXT 0x15
00114 #define PARID_MOVE_IVEL_EXT 0x16
00115 #define PARID_MOVE_ICUR_EXT 0x17
00116
00117 #define PARID_DEF_FHOMEOFFSET 0x00 // read
00118 #define PARID_DEF_FGEARRATIO 0x01 // read
00119 #define PARID_DEF_FLINEARRATIO 0x02 // read
00120 #define PARID_DEF_FMINPOS 0x03 // read
00121 #define PARID_DEF_FMAXPOS 0x04 // read
00122 #define PARID_DEF_FMAXDELTAPOS 0x05 // read
00123 #define PARID_DEF_FCUROFFSET 0x07 // read
00124 #define PARID_DEF_FCURRATIO 0x08 // read
00125 #define PARID_DEF_FMAXVEL 0x0a // read
00126 #define PARID_DEF_FMAXACC 0x0c // read
00127 #define PARID_DEF_FMAXCUR 0x0e // read
00128 #define PARID_DEF_FHOMEVEL 0x0f // read
00129 #define PARID_DEF_FHOMEACC 0x10 // read
00130 #define PARID_DEF_DIODATA 0x19 // read
00131 #define PARID_DEF_SERIALNO 0x1a // read
00132 #define PARID_DEF_CONFIG 0x1b // read
00133 #define PARID_DEF_INCPERTURN 0x1c // read
00134 #define PARID_DEF_VERSION 0x1d // read
00135 #define PARID_DEF_BRAKETIMEOUT 0x1f // read
00136 #define PARID_DEF_ADDRESS 0x20 // read
00137 #define PARID_DEF_CANBAUDRATE 0x22 // read/write
00138 #define PARID_DEF_RSBAUDRATE 0x23 // read/write
00139 #define PARID_ACT_IPOSCOUNT 0x24 // read
00140 #define PARID_ACT_DIODATA 0x26 // read/write
00141 #define PARID_ACT_STATE 0x27 // read
00142 #define PARID_ACT_IRAMPVEL 0x29 // write
00143 #define PARID_ACT_IRAMPACC 0x2a // write
00144 #define PARID_ACT_IHOMEOFFSET 0x2c // read/write
00145 #define PARID_ACT_ICUR 0x35 // read
00146 #define PARID_ACT_CONFIG 0x39 // read/write
00147 #define PARID_ACT_FINCRATIO 0x3b // read/write
00148 #define PARID_ACT_FPOS 0x3c // read
00149 #define PARID_ACT_FDELTAPOS 0x3f // read
00150 #define PARID_ACT_FMAXDELTAPOS 0x40 // read/write
00151 #define PARID_ACT_FVEL 0x41 // read
00152 #define PARID_ACT_FIPOLVEL 0x42 // read
00153 #define PARID_ACT_FMINPOS 0x45 // read/write
00154 #define PARID_ACT_FMAXPOS 0x46 // read/write
00155 #define PARID_ACT_FMAXVEL 0x48 // read/write
00156 #define PARID_ACT_FMAXACC 0x4a // read/write
00157 #define PARID_ACT_FMAXCUR 0x4c // read/write
00158 #define PARID_ACT_FCUR 0x4d // read
00159 #define PARID_ACT_FRAMPVEL 0x4f // write
00160 #define PARID_ACT_FRAMPACC 0x50 // write
00161 #define PARID_DEF_C0 0x51 // read
00162 #define PARID_DEF_DAMP 0x52 // read
00163 #define PARID_DEF_A0 0x53 // read
00164 #define PARID_ACT_C0 0x54 // read/write
00165 #define PARID_ACT_DAMP 0x55 // read/write
00166 #define PARID_ACT_A0 0x56 // read/write
00167 #define PARID_DEF_BURNCOUNT 0x57 // read
00168 #define PARID_DEF_SETUP 0x58 // read
00169 #define PARID_ACT_FHOMEOFFSET 0x59 // read/write
00170 #define PARID_ACT_IPOS 0x5a // read
00171 #define PARID_ACT_IMAXDELTAPOS 0x5b // read/write
00172 #define PARID_ACT_IMINPOS 0x5c // read/write
00173 #define PARID_ACT_IMAXPOS 0x5d // read/write
00174 #define PARID_ACT_IMAXVEL 0x5e // read/write
00175 #define PARID_ACT_IMAXACC 0x5f // read/write
00176 #define PARID_ACT_IVEL 0x60 // read
00177 #define PARID_ACT_IDELTAPOS 0x61 // read
00178 #define PARID_ACT_FPOSSTATEDIO 0x62 // read
00179 #define PARID_ACT_FSAVEPOS 0x63 // read
00180 #define PARID_ACT_FHOMEVEL 0x64 // read
00181 #define PARID_ACT_IHOMEVEL 0x65 // read
00182 #define PARID_ACT_SYNCTIME 0x66 // read/write
00183 #define PARID_ACT_LOADLIMIT 0x67 // read/write
00184 #define PARID_ACT_MAXLOADGRADIENT 0x68 // read/write
00185 #define PARID_ACT_LOADDELTATIME 0x69 // read/write
00186
00187 #define PARID_ACT_RAWMOTCUR 0x6C // read
00188 #define PARID_ACT_RAWMOTSUPPLY 0x6D // read
00189 #define PARID_ACT_RAWTEMP 0x6E // read
00190 #define PARID_ACT_RAWLOGICSUPPLY 0x6F // read
00191 #define PARID_ACT_FMOTCUR 0x70 // read
00192 #define PARID_ACT_FMOTSUPPLY 0x71 // read
00193 #define PARID_ACT_FTEMP 0x72 // read
00194 #define PARID_ACT_FLOGICSUPPLY 0x73 // read
00195
00196 #define PARID_ACT_MINLOGIC 0x74
00197 #define PARID_ACT_MAXLOGIC 0x75
00198 #define PARID_ACT_MINMOTOR 0x76
00199 #define PARID_ACT_MAXMOTOR 0x77
00200 #define PARID_ACT_NOMCUR 0x78
00201 #define PARID_ACT_HMAXCUR 0x79
00202 #define PARID_ACT_LOGICUNDERSHOOT 0x7A
00203 #define PARID_ACT_LOGICOVERSHOOT 0x7B
00204 #define PARID_ACT_MOTORUNDERSHOOT 0x7C
00205 #define PARID_ACT_MOTOROVERSHOOT 0x7D
00206 #define PARID_ACT_NOMCUROVERSHOOT 0x7E
00207 #define PARID_ACT_HMAXCUROVERSHOOT 0x7F
00208
00209 #define PARID_ACT_KP_PWMLIM 0x80
00210 #define PARID_ACT_CURRENTLIMIT 0x81
00211 #define PARID_ACT_MAXPWMOUTPUT 0x82
00212
00213 #endif