- Ensure initial steps listed
in Section 4.5.4 have
been completed.
- If the motor identification
routine is being utilized, as described in Section 4.5.2, the
motor identification routine begins execution immediately upon setting
motorVars_M1.flagEnableRunAndIdentify to "1" in the
Expressions window. This process takes about 150 seconds.
- Once
motorVars_M1.flagEnableRunAndIdentify is equal to "0",
the motor parameters have been identified. Record the watch window
values with the newly-defined motor parameters in user_mtr1.h as
follows:
- USER_MOTOR1_Rs = motorVars_M1.Rs_Ohm’s value
- USER_MOTOR1_Ls_d = motorVars_M1.Ls_d_H’s value
- USER_MOTOR1_Ls_q = motorVars_M1.Ls_q_H’s value
- USER_MOTOR_RATED_FLUX = motorVars_M1.flux_VpHz’s value
- Set
userParams_M1.flag_bypassMotorId to "true" after
successfully identify the motors parameters, rebuild the project and
load the code into the controller.
- Set the variables
motorVars_M1.speedRef_Hz to a different value and watch how the
motor shaft speed follows.
- To change the acceleration,
enter a different acceleration value for the variables
motorVars_M1.accelerationMax_Hzps and
motorVars_M1.accelerationMax_Hzps.
After these
initial tests, Build Level 4 is also where any other test conditions and tuning are
optionally performed.
- Section 4.5.4.4.1
- Section 4.5.4.4.2
- Section 4.5.4.4.3