ACIM_TTC #
Brief #
The acim_ttc
component is responsible for controlling an AC Induction Motor (ACIM) using Torque and Flux control strategies. It reads motor parameters and control settings, calculates derived parameters, updates the control algorithm in real-time, and supports different operating modes. The component ensures that the motor operates within safe and efficient boundaries by adjusting the velocity, position, and torque limits accordingly.
Component Explanation #
The acim_ttc
component is designed for controlling an AC Induction Motor (ACIM) using Torque and Flux control strategies. This component operates within a hardware abstraction layer (HAL) framework, providing real-time control and non-real-time initialization functions.
- Input Reading and Initialization:
- The component reads various motor parameters and control settings from input pins, including
mode
,sensorless
,torque_n
,cur_n
,slip_n
,polecount
,freq_n
,vel_n
,u_n
,u_boost
,t_boost
, ands_boost
. - The torque command (
torque
) and measured velocity (vel_m
) are also read from input pins.
- Parameter Calculation:
- The component calculates several derived parameters based on the input values, such as
poles
,vel_n
,t_n
,freq_n
,slip_n
, andid_n
. - These parameters are used in the control algorithm to adjust the motor’s operation.
- Scale Update:
- The
scale
parameter is updated based on the error between the duty cycle setpoint and the actual duty cycle. This helps in adjusting the control parameters dynamically. - The
scale
parameter is clamped to ensure it stays within a valid range.
- Operating Modes:
- The component supports different operating modes based on the
mode
input: - Slip Control: Adjusts the d-axis and q-axis currents based on the slip and torque commands.
- MTPA (Maximum Torque Per Ampere): Optimizes the torque for a given current.
- V/f (Voltage over Frequency) Control: Adjusts the voltage and frequency based on the slip and torque commands.
- The appropriate control strategy is selected based on the
mode
input, and the corresponding commands are calculated.
- Torque Limits:
- The component calculates the minimum and maximum torque limits (
t_min
andt_max
) based on the operating conditions and thet_boost
parameter. - These limits ensure that the motor operates within safe and efficient boundaries.
- Slip and Velocity Updates:
- The slip and velocity are updated based on the sensorless control flag (
sensorless
). - If sensorless control is enabled, the velocity is adjusted by subtracting the slip. Otherwise, the velocity is adjusted by adding the slip.
- Output Updates:
- The component updates the output pins with the calculated values, including
cmd_mode
,d_cmd
,q_cmd
,slip_n
,slip
,t_min
,t_max
, andpos
. - The estimated position (
pos
) is updated by integrating the estimated velocity over time and wrapping it using themod
function.
Pins #
Name | Description |
---|---|
mode | parameter, 0 = slip, 1 = mtpa, 2 = u/f |
sensorless | parameter, Flag indicating whether sensorless control is enabled (1 = enabled, 0 = disabled) |
torque_n | parameter, Nominal torque of the motor (N/M) |
cur_n | parameter, Nominal current of the motor (A) |
slip_n | parameter, Nominal slip frequency of the motor (rad/s) |
polecount | parameter, Number of pole pairs in the motor |
freq_n | parameter, Nominal frequency of the motor (Hz) |
vel_n | parameter, Nominal velocity of the motor (rad/s) |
u_n | parameter, Nominal voltage of the motor (V) |
u_boost | parameter, Voltage boost factor for startup |
t_boost | parameter, Torque boost factor for startup |
s_boost | parameter, Slip boost factor for startup |
torque | input, Torque command (N/M) |
vel_m | input, Motor velocity, (rad/s) |
vel_e | input if Sensorless>0, output otherwise, synchronous speed (rad/s) |
d_cmd | output, D-axis current command |
q_cmd | output, Q-axis current command |
cmd_mode | output, Command mode (0 = voltage control, 1 = current control) |
pos | output, Estimated position of the motor |
slip | output, Estimated slip of the motor |
t_min | Minimum torque limit |
t_max | Maximum torque limit |
scale | Scaling factor for current commands |
ki | Integral gain for scale adjustment |
duty | Current duty cycle |
duty_setpoint | Desired duty cycle setpoint |
References #
Source: .c File