X-CUBE-SPN11 for X-NUCLEO-IHM11M1
|
All motor parameters for 6Step driving. More...
Detailed Description
All motor parameters for 6Step driving.
Macro Definition Documentation
#define ACC 1000000 |
Mechanical acceleration rate (setting available in manual mode, LOAD_TYPE = 0)
Definition at line 73 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define ADC_SPEED_TH 82 |
Fixed treshold to change the target speed (t.b.f) Motor stall detection parameters
Definition at line 99 of file MC_SixStep_param.h.
Referenced by MC_Set_Speed().
#define BEMF_CNT_EVENT_MAX 100 |
Maximum number of BEMF Counter in open loop Debug pin
Definition at line 103 of file MC_SixStep_param.h.
Referenced by MC_SixStep_ARR_Bemf().
#define BEMF_CONSEC_DOWN_MAX 10 |
Maximum value of BEMF Consecutive Threshold Falling Crossings Counter in closed loop
Definition at line 102 of file MC_SixStep_param.h.
Referenced by MC_SixStep_NEXT_step().
#define BEMF_THRSLD_DOWN 200 |
Zero Crossing threshold
Definition at line 93 of file MC_SixStep_param.h.
Referenced by MC_SixStep_RESET().
#define BEMF_THRSLD_UP 200 |
Zero Crossing threshold Speed filtering parameters
Definition at line 94 of file MC_SixStep_param.h.
Referenced by MC_SixStep_RESET().
#define BUTTON_DELAY 1000 |
Delay time to enable push button for new command (1 = 1msec)
Definition at line 77 of file MC_SixStep_param.h.
Referenced by MC_SysTick_SixStep_MediumFrequencyTask().
#define DEMAGN_VAL_1 1 |
Look UP table for dynamic demagn control for speed into (10000,12000] or [-12000,-10000) range
Definition at line 115 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_10 10 |
Look UP table for dynamic demagn control for speed into ( 1800, 2600] or [- 2600,- 1800) range
Definition at line 124 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_11 11 |
Look UP table for dynamic demagn control for speed into ( 1500, 1800] or [- 1800,- 1500) range
Definition at line 125 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_12 12 |
Look UP table for dynamic demagn control for speed into ( 1300, 1500] or [- 1500,- 1300) range
Definition at line 126 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_13 13 |
Look UP table for dynamic demagn control for speed into ( 1000, 1300] or [- 1300,- 1000) range
Definition at line 127 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_14 14 |
Look UP table for dynamic demagn control for speed into [ 500, 1000] or [- 1000,- 500] range
Definition at line 128 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_2 2 |
Look UP table for dynamic demagn control for speed into ( 7800,10000] or [-10000,- 7800) range
Definition at line 116 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_3 3 |
Look UP table for dynamic demagn control for speed into ( 6400, 7800] or [- 7800,- 6400) range
Definition at line 117 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_4 4 |
Look UP table for dynamic demagn control for speed into ( 5400, 6400] or [- 6400,- 5400) range
Definition at line 118 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_5 5 |
Look UP table for dynamic demagn control for speed into ( 4650, 5400] or [- 5400,- 4650) range
Definition at line 119 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_6 6 |
Look UP table for dynamic demagn control for speed into ( 4100, 4650] or [- 4650,- 4100) range
Definition at line 120 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_7 7 |
Look UP table for dynamic demagn control for speed into ( 3650, 4100] or [- 4100,- 3650) range
Definition at line 121 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_8 8 |
Look UP table for dynamic demagn control for speed into ( 3300, 3650] or [- 3650,- 3300) range
Definition at line 122 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMAGN_VAL_9 9 |
Look UP table for dynamic demagn control for speed into ( 2600, 3300] or [- 3300,- 2600) range
Definition at line 123 of file MC_SixStep_param.h.
Referenced by Bemf_delay_calc().
#define DEMO_START_TIME 5000 |
Time (msec) to keep the motor in run mode
Definition at line 111 of file MC_SixStep_param.h.
Referenced by MC_SysTick_SixStep_MediumFrequencyTask().
#define DEMO_STOP_TIME 2000 |
Time (msec) to keep the motor in stop mode Look UP table for dynamic demagn control of speed
Definition at line 112 of file MC_SixStep_param.h.
Referenced by MC_SysTick_SixStep_MediumFrequencyTask().
#define DIRECTION 0 |
Set motor direction CW = 0 and CCW = 1
Definition at line 60 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define FALSE 0 |
Define FALSE
Definition at line 131 of file MC_SixStep_param.h.
Referenced by MC_EXT_button_SixStep(), MC_Potentiometer_filter(), MC_Set_PI_param(), MC_SixStep_ARR_step(), MC_SixStep_INIT(), MC_SixStep_NEXT_step(), MC_SixStep_RESET(), MC_Speed_Filter(), and MC_SysTick_SixStep_MediumFrequencyTask().
#define FILTER_DEEP 20 |
Number of bits for digital filter
Definition at line 97 of file MC_SixStep_param.h.
Referenced by MC_Potentiometer_filter(), MC_SixStep_RESET(), and MC_Speed_Filter().
#define GPIO_COMM 1 |
Enable (1) the GPIO toggling for commutation Demo mode parameters
Definition at line 107 of file MC_SixStep_param.h.
Referenced by MC_SixStep_TABLE().
#define GPIO_ZERO_CROSS 1 |
Enable (1) the GPIO toggling for zero crossing detection
Definition at line 106 of file MC_SixStep_param.h.
Referenced by MC_SixStep_ARR_Bemf().
#define HFBUFFERSIZE 10 |
Definition at line 98 of file MC_SixStep_param.h.
Referenced by MC_ADCx_SixStep_Bemf(), MC_SixStep_RESET(), and MC_SixStep_Speed_Potentiometer().
#define INITIAL_DEMAGN_DELAY 10 |
Initial value for delay time during startup for Bemf detection Zero Crossissing parameters
Definition at line 90 of file MC_SixStep_param.h.
Referenced by MC_SixStep_RESET().
#define KI_DIV 4096 |
Ki parameter divider for PI regulator
Definition at line 84 of file MC_SixStep_param.h.
Referenced by MC_PI_Controller().
#define KI_GAIN 50 |
Ki parameter for PI regulator
Definition at line 82 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define KP_DIV 4096 |
Kp parameter divider for PI regulator
Definition at line 83 of file MC_SixStep_param.h.
Referenced by MC_PI_Controller().
#define KP_GAIN 500 |
Kp parameter for PI regulator
Definition at line 81 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define LOWER_OUT_LIMIT 50 |
Low Out value of PI regulator
Definition at line 85 of file MC_SixStep_param.h.
Referenced by MC_Set_PI_param().
#define MAX_POT_SPEED 20000 |
Maximum Speed regulated by potentiometer
Definition at line 87 of file MC_SixStep_param.h.
Referenced by MC_Set_Speed(), MC_SixStep_RESET(), and MC_SixStep_Speed_Val_target_potentiometer().
#define MIN_POT_SPEED 1700 |
Minimum Speed regulated by potentiometer
Definition at line 88 of file MC_SixStep_param.h.
Referenced by MC_Set_Speed(), and MC_SixStep_Speed_Val_target_potentiometer().
#define MINIMUM_ACC 1000 |
Mechanical acceleration rate for BIG load application
Definition at line 74 of file MC_SixStep_param.h.
Referenced by MC_SixStep_ARR_step(), and MC_SysTick_SixStep_MediumFrequencyTask().
#define NUM_POLE_PAIRS 2 |
Number of Motor Pole pairs
Definition at line 59 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define NUMBER_OF_STEPS 20000 |
Number of elements for motor start-UP (max value 65535)
Definition at line 75 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Ramp_Motor_calc(), and MC_SixStep_RESET().
#define NUMBER_ZCR 12 |
Number of zero crossing event during the startup for closed loop control begin ********************* Closed Loop control
Definition at line 78 of file MC_SixStep_param.h.
Referenced by MC_SixStep_ARR_Bemf().
#define POTENTIOMETER 1 |
Enable (1)/Disable (0) the potentiometer
Definition at line 62 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data().
#define SPEED_LOOP_TIME 1 |
Speed Loop time (1 = 1msec)
Definition at line 80 of file MC_SixStep_param.h.
Referenced by MC_SixStep_RESET().
#define STARTUP_CURRENT_REFERENCE STARTUP_DUTY_CYCLE |
Definition at line 72 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Init_main_data(), and MC_SixStep_RESET().
#define STARTUP_DUTY_CYCLE 600 |
< ********************* Open loop control StartUP Duty Cycle
Definition at line 71 of file MC_SixStep_param.h.
Referenced by STSPIN230_Current_Reference_Start(), and STSPIN230_Current_Reference_Stop().
#define TARGET_SPEED 4000 |
Target speed in closed loop control
Definition at line 61 of file MC_SixStep_param.h.
Referenced by MC_SixStep_RESET().
#define TIME_FOR_ALIGN 500 |
Time for alignment (msec)
Definition at line 76 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Alignment().
#define TRUE 1 |
Define TRUE
Definition at line 130 of file MC_SixStep_param.h.
Referenced by MC_EXT_button_SixStep(), MC_Potentiometer_filter(), MC_SixStep_Alignment(), MC_SixStep_ARR_Bemf(), MC_SixStep_ARR_step(), MC_SixStep_INIT(), MC_SixStep_NEXT_step(), MC_SixStep_RESET(), MC_Speed_Filter(), MC_StartMotor(), MC_SysTick_SixStep_MediumFrequencyTask(), and MC_Task_Speed().
#define UPPER_OUT_LIMIT 800 |
High Out value of PI regulator
Definition at line 86 of file MC_SixStep_param.h.
Referenced by MC_Set_PI_param().
#define VAL_POT_SPEED_DIV 2 |
Validation potentiometer speed divider
Definition at line 89 of file MC_SixStep_param.h.
Referenced by MC_SixStep_Speed_Val_target_potentiometer().
Generated by 1.8.11