A Roboteq controller c++ interface to allow a Brushless motor control on a CAN bus. Used for a FBL2360 reference.
Dependencies: CAN_FIFO_Triporteur
object_dict.h
- Committer:
- zephyrcare
- Date:
- 2018-06-25
- Revision:
- 7:33d64a3c48a2
- Parent:
- 0:faf0960419c1
File content as of revision 7:33d64a3c48a2:
// Source : https://www.roboteq.com/index.php/docman/motor-controllers-documents-and-files/documentation/user-manual/272-roboteq-controllers-user-manual-v17/file // RUNTIME commands //Command Name Index Sub(Hex) Entry Name Data Type & Access #define cCANGO 0x2000 //01 Set Motor Command, ch1 CG //02 Set Motor Command, ch2 #define cP 0x2001 //01 to mm (1) Set Position, ch.1 S32 WO #define cS 0x2002 //01 to mm (1) Set Velocity S16 WO #define cC 0x2003 //01 to ee (2) Set Encoder Counter S32 WO #define cCB 0x2004 //01 to mm (1) Set Brushless Counter S32 WO #define cVAR 0x2005 //01 -vv (3) Set User Integer Variable S32 WO #define cAC 0x2006 //01 to mm (1) Set Acceleration S32 WO #define cDC 0x2007 //01 to mm (1) Set Deceleration S32 WO #define cDS 0x2008 //00 Set All Digital Out bits U8 WO #define cD1 0x2009 //00 Set Individual Digital Out bits U8 WO #define cD0 0x200A //00 Reset Individual Digital Out bits U8 WO #define cH 0x200B //01 to ee (2) Load Home Counter U8 WO #define cEX 0x200C //00 Emergency Shutdown U8 WO #define cMG 0x200D //00 Release Shutdown U8 WO #define cMS 0x200E //00 Stop in all modes U8 WO #define cPR 0x200F //01 to mm (1) Set Pos Relative S32 WO #define cPX 0x2010 //01 to mm (1) Set Next Pos Absolute S32 WO #define cPRX 0x2011 //01 to mm (1) Set Next Pos Relative S32 WO #define cAX 0x2012 //01 to mm (1) Set Next Acceleration S32 WO #define cDX 0x2013 //01 to mm (1) Set Next Deceleration S32 WO #define cSX 0x2014 //01 to mm (1) Set Next Velocity S32 WO #define cB 0x2015 //01 to bb (4) Set User Bool Variable S32 WO #define cEES 0x2017 //00 Save Config to Flash U8 WO //RUNTIME Queries //Command Name Index Sub(Hex) Entry Name Data Type & Access #define qA 0x2100 //01 Read Motor Amps S16 RO #define qM 0x2101 //01 to mm (1) Read Actual Motor Command S16 RO #define qP 0x2102 //01 to mm (1) Read Applied Power Level S16 RO #define qS 0x2103 //01 to ee (2) Read Encoder Motor Speed, ch.1 S16 RO #define qC 0x2104 //01 to ee (2) Read Absolute Encoder Count S32 RO #define qCB 0x2105 //01 to mm (1) Read Absolute Brushless Counter S32 RO #define qVAR 0x2106 //01 to vv (3) Read User Integer Variable 1 S32 RO #define qSR 0x2107 //01 to ee (2) Read Encoder Motor Speed as 1/1000 of Max S16 RO #define qCR 0x2108 //01 to ee (2) Read Encoder Count Relative S32 RO #define qCBR 0x2109 //01 to mm (1) Read Brushless Count Relative S32 RO #define qBS 0x210A //01 to mm (1) Read BL Motor Speed in RPM S16 RO #define qBSR 0x210B //01 to mm (1) Read BL Motor Speed as 1/1000 of Max S16 RO #define qBA 0x210C //01 to mm (1) Read Battery Amps S16 RO #define qV 0x210D //01 to 03 Read VInt, VBat, 5VOut U16 RO #define qD 0x210E //00 Read All Digital Inputs U32 RO #define qT 0x210F //01 to tt+1(5) Read MCU and Transistor temperature S8 RO #define qF 0x2110 //01 to mm (1) Read Feedback S16 RO #define qFS 0x2111 //00 Read Status Flags U8 RO #define qFF 0x2112 //00 Read Fault Flags U8 RO #define qDO 0x2113 //00 Read Current Digital Outputs U8 RO #define qE 0x2114 //01 to mm (1) Read Closed Loop Error S32 RO #define qB 0x2115 //01 to bb (4) Read User Bool Variable S32 RO #define qCIS 0x2116 //01 to mm (1) Read Internal Serial Command S32 RO #define qCIA 0x2117 //01 to mm (1) Read Internal Analog Command S32 RO #define qCIP 0x2118 //01 to mm (1) Read Internal Pulse Command S32 RO #define qTM 0x2119 //00 Read Time U32 RO #define qK 0x211A //01 to 06 Read Spektrum Radio Capture U16 RO #define qDR 0x211B //01 to 06 Destination Pos Reached flag U8 RO #define qMGD 0x211D //01 to ss (9) Read Magsensor Track Detect U8 RO #define qMGT 0x211E //01 to ss*3(9) Read Magsensor Track Position, U8 RO #define qMGM 0x211F //01 to ss*3(9) Read Magsensor Markers U8 RO #define qMGS 0x2120 //01 to ss (9) Read Magsensor Status U16 RO #define qMGY 0x2121 //01 to ss (9) Read Magsensor Gyroscope S16 RO #define qFM 0x2122 //01 to mm (1) Read Motor Status Flags U16 RO #define qHS 0x2123 //01 to mm (1) Read Hall Sensor States U8 RO #define qDI 0x6400 //01 to dd (6) Read Individual Digital Input S32 RO #define qMGY 0x2121 //01 to 03 Read Magsensor Gyroscope S16 RO #define qFM 0x2122 //01 to mm (1) Read Motor Status Flags U16 RO #define qHS 0x2123 //01 to mm (1) Read Hall Sensor States U8 RO #define qTR 0x2125 //01 to mm (1) Read Destination Tracking S32 RO #define qANG 0x2132 //01 to mm (1) Read Rotor Angle S16 RO #define qFC 0x2135 //01 to mm (1) Read FOC Angle Correction S16 RO #define qSL 0x2136 //01 to mm(1) Read Slip S16 RO #define qAI 0x6401 //01 to aa (7) Read Analog Input S16 RO #define qAIC 0x6402 //01 to aa (7) Read Analog Input Converted S16 RO #define qPI 0x6403 //01 to pp (8) Read Pulse Input S16 RO #define qPIC 0x6404 //01 to pp (8) Read Pulse Input Converted S16 RO /* Notes: Product-specific parameters. See datasheet (1) mm: Max number of motors (2) ee: Max number of encoders (3) vv: Max number of user integer variables (4) bb: Max number of user boolean variables (5) tt: Number of internal temperature sensors (6) dd: Number of digital inputs (7) aa: Number of analog inputs (8) pp: Number of pulse inputs (9) ss: Max number of Magsensors supported */