Compute speed from rotor angular position
Motor Control Blockset / Sensor Decoders
The Speed Measurement block calculates the angular speed from the angular position of the rotor by calculating the change in the angular position with respect to time.
θ — Angular position of rotorAngular position of the rotor specified in either radians, degrees, or per-unit.
Data Types: single | double | fixed point
⍵ — Angular speed of rotorAngular speed that the block computes based on the angular position input.
Data Types: single | double | fixed point
Position unit — Unit of angular positionRadians (default) | Degrees | Per unitUnit of the angular position θ.
Speed calculation criteria — Method of speed calculationMaximum application speed (default) | Speed resolution | Time interval for speed calculationThe speed calculation method used in the block. The selected method determines the range of the rotor speed that the block can measure.
These parameters change values according to the Speed calculation criteria parameter:
| Parameter name | Maximum application speed | Speed Resolution | Time interval for speed calculation |
|---|---|---|---|
Delays for speed calculation (number of samples) |
| 28 | 28 |
Maximum measurable speed (RPM) |
| 10344.8276 | 10713.2857 |
Measurable speed resolution (RPM) |
| 4.9892e-06 | 4.9892e-06 |
Discrete step size (s) — Sample time after which block executes again100e-6 (default) | scalarThe fixed time interval (in seconds) between every two consecutive instances of block execution.
These parameters change values according to the Discrete step size (s) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
Maximum application speed (RPM) — Maximum measurable rotor speed1000 (default) | scalarThe maximum rotor speed (in rotations per minute) that the block can measure.
These parameters change values according to the Maximum application speed (RPM) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
To enable this parameter, set Speed calculation criteria to
Maximum application speed.
Speed Resolution (RPM) — Minimum detectable speed5e-6 (default) | scalarThe minimum value of change in the θ input per unit time that the
block can detect.
These parameters change values according to the Speed Resolution (RPM) parameter value:
Delays for speed calculation (number of samples)
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
To enable this parameter, set Speed calculation criteria to
Speed resolution.
Delays for speed calculation (number of samples) — Number of angular position samples measured299 or 28 (default) | scalarThe number of samples of the angular position input that the block measures to compute the average position value.
These parameters change values according to the Delays for speed calculation (number of samples) parameter value:
Maximum measurable speed (RPM)
Measurable speed resolution (RPM)
To enable this parameter, set Speed calculation criteria to
Time interval for speed calculation.
Maximum measurable speed (RPM) — Maximum measurable speed1000 or 10344.8276 or
10713.2857 (default) | scalarThe absolute maximum speed that the block can measure.
This parameter is not configurable and uses a value that is internally computed using other parameters.
Measurable speed resolution (RPM) — Minimum speed resolution used for speed computation4.6566e-07 or
4.9892e-06 (default) | scalarThe minimum speed resolution that the block uses for speed computation. It is always less than or equal to Speed Resolution (RPM).
This parameter is not configurable and uses a value that is internally computed using other parameters.
Speed unit — Unit of angular speed outputRPM (default) | Degrees/Sec | Radians/Sec | Per unit based on maximum measurable speed | Per unit based on dialogUnit of the angular speed output.
Speed data type — Data type of angular speed outputsingle (default) | double | fixed pointThe data type of the angular speed output ⍵.
Note
The Speed Measurement block may occasionally display the warning message
'Wrap on overflow detected.'
ACIM Feed Forward Control | ACIM Torque Estimator | Discrete PI Controller with anti-windup and reset | PMSM Feed Forward Control | PMSM Torque Estimator | Position Generator | Quadrature Decoder



