Calculate the speed from the angular position of the rotor (2023)

main content

Calculate the speed from the angular position of the rotor

Starting with R2020a

expand everything on the page

  • Calculate the speed from the angular position of the rotor (1)

library:
Engine Control Block/Sensor Decoder
Engine Control Blockset HDL Support/Sensor Decoder

describe

fromspeed measurementThe block calculates the angular velocity based on the angular position of the rotor by calculating the angular position over time.

example

Field-Oriented Induction Motor Control Using Speed ​​Sensors Field-Oriented Control (FOC) techniques are implemented to control the speed of a three-phase AC induction motor (ACIM). The FOC algorithm requires rotor speed feedback, which in this case is obtained using a quadrature encoder sensor. For more information on FOC, see Field Oriented Control (FOC).

open overview

PMSMI's Field Decay Control (with MTPA) uses Field Oriented Control (FOC) technology to control the torque and speed of a three-phase Permanent Magnet Synchronous Motor (PMSM). The FOC algorithm requires rotor position feedback, which is obtained from quadrature encoder sensors. For more information on FOC, see Field Oriented Control (FOC).

open overview

PMSM Field Oriented Control Using Hall Sensors Implements Field Oriented Control (FOC) techniques for speed control of three-phase permanent magnet synchronous motors (PMSM). The FOC algorithm requires feedback of the rotor position, which is obtained by Hall sensors. For more information on FOC, see Field Oriented Control (FOC).

open overview

Field Oriented Control of PMSMs Using Quadrature Encoders Implement field oriented control (FOC) techniques to control the speed of three-phase permanent magnet synchronous motors (PMSMs). The FOC algorithm requires rotor position feedback, which is obtained from quadrature encoder sensors. For more information on FOC, see Field Oriented Control (FOC).

open overview

luke

import

expand everything

exit

expand everything

The angular velocity that the block calculates from the entered angular position.

type of data:single|double|fixed point

parameter

expand everything

angular position unitand

Used to internally map input locations to match ranges for unsigned data types. For example, the block scales the input within a certain range(0 - 2p)unhappy(0 - (232-1))For data type uint32.

Velocity calculation method used in the block. The selected method determines the range of rotor speeds that the module can measure.

The values ​​of these parameters are based onspeed calculation standardscope:

parameter nameMaximum Application Speedspeed resolutionTime interval for speed calculation

Rate calculation latency (number of samples)

299

2828

Maximum Measurable Speed ​​(RPM)

1000

10344.827610713.2857

Measurable Velocity Resolution (RPM)

4.6566e-07

4.9892e-064.9892e-06

The fixed time interval, in seconds, between any two consecutive instances of block execution.

The values ​​of these parameters are based ondiscrete stack sizeParameter value:

  • Rate calculation latency (number of samples)

  • Maximum Measurable Speed ​​(RPM)

  • Measurable Velocity Resolution (RPM)

The maximum rotor speed (in revolutions per minute) that this block can measure.

The values ​​of these parameters are based onMaximum Application Speed ​​(RPM)Parameter value:

  • Rate calculation latency (number of samples)

  • Maximum Measurable Speed ​​(RPM)

  • Measurable Velocity Resolution (RPM)

addiction

To enable this parameter, set thespeed calculation standardunhappyMaximum Application Speed

minimum value of changeandInput per unit of time that the module can detect.

The values ​​of these parameters are based onSpeed ​​Resolution (RPM)Parameter value:

  • Rate calculation latency (number of samples)

  • Maximum Measurable Speed ​​(RPM)

  • Measurable Velocity Resolution (RPM)

addiction

To enable this parameter, set thespeed calculation standardunhappyspeed resolution

The number of angular position input samples that the module measures to calculate the average position value.

The values ​​of these parameters are based onRate calculation latency (number of samples)Parameter value:

  • Maximum Measurable Speed ​​(RPM)

  • Measurable Velocity Resolution (RPM)

addiction

To enable this parameter, set thespeed calculation standardunhappyTime interval for speed calculation

The absolute highest speed the block can measure.

This parameter is not configurable and uses a value calculated internally using other parameters.

The minimum velocity resolution that the block uses to calculate velocity. it is always less than or equal toSpeed ​​Resolution (RPM)

This parameter is not configurable and uses a value calculated internally using other parameters.

The unit of the output angular velocity.

Specifies the speed calculated per unit in RPM.

addiction

This parameter only appears in the following casesdialogue based per unitSelectedspeed unit

Angular velocity output data type

Comment

fromspeed measurementThe block may occasionally display a warning message' wrap when overflow is detected'

wide range of possibilities

C/C++ code generation
Generate C and C++ code with Simulink® Coder™.

fixed-point conversion
Design and simulate fixed-point systems with Fixed-Point Designer™.

version history

Introduced in R2020a

see also

square decoder|position generator|PI regulator|ACIM Feedforward Control|ACIM coupling switch|PMSM Feedforward Obedience|PMSM moment estimator

theme

  • Open and Closed Loop Control
  • Field Oriented Control (FOC)

MATLAB commands

You have clicked the link for this MATLAB command:

 

Run commands by typing in the MATLAB command window. Web browsers do not support MATLAB commands.

Calculate the speed from the angular position of the rotor (6)

select site

Choose a site to get translated content (if available) and check out local events and deals. Depending on your location, we recommend the following options:

You can also select a site from the following list:

USA

  • Latin America(Spanish)
  • You have(Engels)
  • USA(Engels)

Europa

  • Belgium(Engels)
  • Danish(Engels)
  • Germany(German)
  • Spain(Spanish)
  • Finland(Engels)
  • France(France)
  • Ireland(Engels)
  • Italy(Italian)
  • Luxembourg(Engels)
  • Netherlands(Engels)
  • Norway(Engels)
  • Austria(German)
  • Portugal(Engels)
  • Sweden(Engels)
  • Switzerland
    • German
    • Engels
    • Frans
  • U.K.(Engels)

Asia-Pacific

Please contact your local office

References

Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated: 11/04/2023

Views: 6006

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.