servo3_config.h
Go to the documentation of this file.
1 /* Copyright 2017 UFACTORY Inc. All Rights Reserved.
2  *
3  * Software License Agreement (BSD License)
4  *
5  * Author: Jimy Zhang <jimy92@163.com>
6  ============================================================================*/
7 #ifndef CORE_INSTRUCTION_SERVO3_CONFIG_H_
8 #define CORE_INSTRUCTION_SERVO3_CONFIG_H_
9 
10 class SERVO3_RG {
11 public:
12  static const unsigned short CON_EN = 0x0100;
13  static const unsigned short CON_MODE = 0x0101;
14  static const unsigned short CON_DIR = 0x0102;
15  static const unsigned short SV3MOD_POS = 0;
16  static const unsigned short SV3MOD_SPD = 1;
17  static const unsigned short SV3MOD_FOS = 2;
18  static const unsigned short SV3_SAVE = 0x1000;
19  static const unsigned short BRAKE = 0x0104;
20  static const unsigned short GET_TEMP = 0x000E;
21  static const unsigned short ERR_CODE = 0x000F;
22  static const unsigned short OVER_TEMP = 0x0108;
23  static const unsigned short CURR_CURR = 0x0001;
24  static const unsigned short POS_KP = 0x0200;
25  static const unsigned short POS_FWDKP = 0x0201;
26  static const unsigned short POS_PWDTC = 0x0202;
27  static const unsigned short SPD_KP = 0x0203;
28  static const unsigned short SPD_KI = 0x0204;
29  static const unsigned short CURR_KP = 0x090C;
30  static const unsigned short CURR_KI = 0x090D;
31  static const unsigned short SPD_IFILT = 0x030C;
32  static const unsigned short SPD_OFILT = 0x030D;
33  static const unsigned short POS_CMDILT = 0x030E;
34  static const unsigned short CURR_IFILT = 0x0401;
35  static const unsigned short POS_KD = 0x0205;
36  static const unsigned short POS_ACCT = 0x0300;
37  static const unsigned short POS_DECT = 0x0301;
38  static const unsigned short POS_STHT = 0x0302;
39  static const unsigned short POS_SPD = 0x0303;
40  static const unsigned short MT_ID = 0x1600;
41  static const unsigned short BAUDRATE = 0x0601;
42  static const unsigned short SOFT_REBOOT = 0x0607;
43  static const unsigned short TAGET_TOQ = 0x050a;
44  static const unsigned short CURR_TOQ = 0x050c;
45  static const unsigned short TOQ_SPD = 0x050e;
46  static const unsigned short TAGET_POS = 0x0700;
47  static const unsigned short CURR_POS = 0x0702;
48  static const unsigned short HARD_VER = 0x0800;
49  static const unsigned short SOFT_VER = 0x0801;
50  static const unsigned short MT_TYPE = 0x0802;
51  static const unsigned short MT_ZERO = 0x0817;
52  static const unsigned short RESET_PVL = 0x0813;
53  static const unsigned short CAL_ZERO = 0x080C;
54  static const unsigned short ERR_SWITCH = 0x0910;
55  static const unsigned short RESET_ERR = 0x0109;
56  static const unsigned short SV3_BRO_ID = 0xFF;
57 
58  static const unsigned short MODBUS_BAUDRATE = 0x0A0B;
59  static const unsigned short TOOL_MB_TIMEOUT = 0x0A0E;
60  static const unsigned short DIGITAL_IN = 0x0A14;
61  static const unsigned short DIGITAL_OUT = 0x0A15;
62  static const unsigned short ANALOG_IO1 = 0x0A16;
63  static const unsigned short ANALOG_IO2 = 0x0A17;
64 };
65 
66 #endif
static const unsigned short ERR_SWITCH
Definition: servo3_config.h:54
static const unsigned short SOFT_REBOOT
Definition: servo3_config.h:42
static const unsigned short GET_TEMP
Definition: servo3_config.h:20
static const unsigned short SPD_KI
Definition: servo3_config.h:28
static const unsigned short CURR_KI
Definition: servo3_config.h:30
static const unsigned short TAGET_TOQ
Definition: servo3_config.h:43
static const unsigned short TOOL_MB_TIMEOUT
Definition: servo3_config.h:59
static const unsigned short TOQ_SPD
Definition: servo3_config.h:45
static const unsigned short CURR_CURR
Definition: servo3_config.h:23
static const unsigned short POS_KP
Definition: servo3_config.h:24
static const unsigned short MT_ID
Definition: servo3_config.h:40
static const unsigned short MT_ZERO
Definition: servo3_config.h:51
static const unsigned short SV3_BRO_ID
Definition: servo3_config.h:56
static const unsigned short SV3MOD_SPD
Definition: servo3_config.h:16
static const unsigned short CURR_IFILT
Definition: servo3_config.h:34
static const unsigned short POS_SPD
Definition: servo3_config.h:39
static const unsigned short CURR_POS
Definition: servo3_config.h:47
static const unsigned short POS_KD
Definition: servo3_config.h:35
static const unsigned short MT_TYPE
Definition: servo3_config.h:50
static const unsigned short SOFT_VER
Definition: servo3_config.h:49
static const unsigned short CON_EN
Definition: servo3_config.h:12
static const unsigned short CAL_ZERO
Definition: servo3_config.h:53
static const unsigned short ERR_CODE
Definition: servo3_config.h:21
static const unsigned short POS_CMDILT
Definition: servo3_config.h:33
static const unsigned short SV3_SAVE
Definition: servo3_config.h:18
static const unsigned short CON_DIR
Definition: servo3_config.h:14
static const unsigned short RESET_PVL
Definition: servo3_config.h:52
static const unsigned short BAUDRATE
Definition: servo3_config.h:41
static const unsigned short POS_PWDTC
Definition: servo3_config.h:26
static const unsigned short POS_DECT
Definition: servo3_config.h:37
static const unsigned short CURR_TOQ
Definition: servo3_config.h:44
static const unsigned short SPD_KP
Definition: servo3_config.h:27
static const unsigned short SV3MOD_FOS
Definition: servo3_config.h:17
static const unsigned short ANALOG_IO2
Definition: servo3_config.h:63
static const unsigned short OVER_TEMP
Definition: servo3_config.h:22
static const unsigned short RESET_ERR
Definition: servo3_config.h:55
static const unsigned short TAGET_POS
Definition: servo3_config.h:46
static const unsigned short CURR_KP
Definition: servo3_config.h:29
static const unsigned short POS_ACCT
Definition: servo3_config.h:36
static const unsigned short CON_MODE
Definition: servo3_config.h:13
static const unsigned short SPD_OFILT
Definition: servo3_config.h:32
static const unsigned short DIGITAL_IN
Definition: servo3_config.h:60
static const unsigned short MODBUS_BAUDRATE
Definition: servo3_config.h:58
static const unsigned short BRAKE
Definition: servo3_config.h:19
static const unsigned short ANALOG_IO1
Definition: servo3_config.h:62
static const unsigned short DIGITAL_OUT
Definition: servo3_config.h:61
static const unsigned short SV3MOD_POS
Definition: servo3_config.h:15
static const unsigned short POS_STHT
Definition: servo3_config.h:38
static const unsigned short HARD_VER
Definition: servo3_config.h:48
static const unsigned short POS_FWDKP
Definition: servo3_config.h:25
static const unsigned short SPD_IFILT
Definition: servo3_config.h:31


xarm_api
Author(s):
autogenerated on Sat May 8 2021 02:51:23