Category: Toolbox > eDrives and Systems > eDrives > Controllers
Inputs:
• freq_n: Normalized frequency reference. Scaled Integer (2.32)
• id_ref: Normalized d-axis current reference. Scaled Integer (2.32)
• iqref: Normalized q-axis current reference. Scaled Integer (2.32)
• i_a: measured alpha-axis current. Scaled Integer (2.32)
• i_b: measured beta-axis current. Scaled Integer (2.32)
• theta_n: Normalized theta (angle) measured. See Quadrature Encoder.
• udc_n: Normalized DC bus voltage. Scaled Integer (2.32)
• kpn: Normalized Kp value for speed loop. Scaled Integer (8.32)
• kin: Normalized Ki value for speed loop. Scaled Integer (8.32)
• Speed_loop_on: Speed loop enable. (binary input)
• FOC_On: Field Oriented Control / Current Loop enable. (binary input)
• cntr_on: Controller enable. (binary input)
Outputs:
• mA_ref: Modulation index reference for phase A duty cycle. Scaled Integer (8.32)
• mB_ref: Modulation index reference for phase B duty cycle. Scaled Integer (8.32)
• mC_ref: Modulation index reference for phase C duty cycle. Scaled Integer (8.32)
• speed_n: Normalized measured speed. Scaled Integer (8.32)
• isq_n: Normalized q-axis stator current. Scaled Integer (8.32)
Description: The Field Oriented Controller block generates modulation indices for three phase motor voltages. It uses both a speed loop and a current loop. It uses the rotor position and measured currents as feedback. It can be used with a Quadrature Encoder or Hall Sensor.
All inputs are divided by their respective full-scale values to get normalized values. For example, – id_n = id_ref/C_fs, where id_ref is the user input and C_fs is the full-scale current.
Current Controller Kp (V/A): Indicates the proportional gain for the current loop.
Current Controller wi (rad/s): Indicates the integral gain frequency for the current loop.
Full-scale Current (A): Indicates the full-scale current value for normalization.
Full-scale Freq (Hz): Indicates the full-scale frequency value for normalization.
Full-scale Voltage (V): Indicates the full-scale voltage value for normalization.
Max Modulation Index: Indicates the upper and lower limit on modulation indices.
Motor Pole Pairs: Indicates the number of magnetic pole pairs in the motor.
PM Flux Estimated (Wb): Indicates the estimated or calculated permanent magnetic flux.
Sampling Freq (Hz): This should set to the same frequency as set in System > System Properties.
Speed Controller Limit (A): Indicates the current limit for q-axis current set by the speed loop.
Speed Loop Freq/Sampling Freq: This ratio helps set the frequency at which the speed loop operates. Since the speed loop does not need to operate at the same speed as the rest of the diagram, this ratio sets the local time step for the speed loop.
User Current Ramp (A/s): Indicates the safety limit to avoid sudden jerks in the input current values .
User Frequency Ramp (Hz): Indicates the safety limit to avoid sudden jerks in the input frequency values.