# 切換式磁阻馬達 (`srm`)

> 沒有磁鐵、相電感隨轉子角度變化的馬達。

![srm](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/srm.svg)

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/machines/srm/)

**分類:** 馬達 · **種類:** `{"kind":"machine","model":"srm"}`

## 何時使用

用於沒有磁鐵、由不對稱半橋一次激磁一相的驅動。要以固定步距開迴路驅動時改用步進馬達。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `p1+` | 電氣 | 第 1 相正端，電流由此流入 |
| `p1-` | 電氣 | 第 1 相負端 |
| `p2+` | 電氣 | 第 2 相正端，電流由此流入 |
| `p2-` | 電氣 | 第 2 相負端 |
| `p3+` | 電氣 | 第 3 相正端，電流由此流入 |
| `p3-` | 電氣 | 第 3 相負端 |
| `p4+` | 電氣 | 第 4 相正端，僅四相時使用 |
| `p4-` | 電氣 | 第 4 相負端，僅四相時使用 |
| `shaft` | 機械 | 機械軸，轉速單位為 rad/s |

## 常用參數

- `phases`: Number of phases, 3 or 4 (預設值: 3)
- `lu`: Phase inductance when poles are apart (預設值: 2m)
- `la`: Phase inductance when poles line up (預設值: 20m)
- `isat`: Current where the aligned core saturates (預設值: 10)
- `r`: Resistance of each phase (預設值: 0.1)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `phases` | — | 3 |  | Number of phases, 3 or 4 |
| `nr` | — | 0 |  | Number of rotor poles |
| `r` | Ω | 0.1 |  | Resistance of each phase |
| `lu` | H | 2m |  | Phase inductance when poles are apart |
| `la` | H | 20m |  | Phase inductance when poles line up |
| `isat` | A | 10 |  | Current where the aligned core saturates |
| `j` | kg·m² | 5m |  | How strongly the rotor resists speeding up |
| `b` | N·m·s/rad | 0 |  | Friction that grows with speed |
| `w0` | rad/s | 0 |  | Shaft speed at the start |
| `theta0` | rad | 0 |  | Rotor angle at the start |

_參數說明在兩種語言中都是英文。_

## 模型

每一相的磁通鏈為 λ(i, θ) = lu·i + (la - lu)·s(θ)·isat·tanh(i/isat)，其中 s 為重疊度，對齊時為 1，未對齊時為 0。轉矩是共能對角度的導數，所以與電流方向無關。第 1 相在角度 0 對齊，第 k 相在 (k - 1)·2π/(phases·nr) 對齊，因此依 1、2、3 的順序激磁，轉子會正轉。各相不耦合，theta(M1) 是機械角。

## 常見錯誤

- 三相正弦電源沒有用，因為每一相必須在電感上升時輪流激磁，順序為 1、2、3。請用不對稱半橋逐相切換，並以位置感測器的角度來驅動。
- 要在某一相電感開始下降前把它關掉，否則會產生負轉矩。在對齊位置轉矩為零，停在那裡的轉子無法起動，所以 theta0 要避開該點。
- la 不可低於 lu，否則無法執行。isat 設得很大會關閉飽和，nr 設為 0 時，三相取 4 個轉子極，四相取 6 個。

Problems 規則: `compile.error`

## 規格書與來源

lu 與 la 取相電感對角度曲線中的最小值與最大值，isat 是對齊位置磁通鏈曲線開始彎折的電流。r 是相電阻，nr 是轉子齒數（6/4 結構取 4），j 是轉子慣量。

## 範例

以指令 `file.openExample` 開啟範例，名稱為 `demo:srm`.

---
由 `cargo xtask reference` 依使用說明文字與參數規格產生，請勿手動編輯。
