# 安裝孔 (`mountingHole`)

> 只上電路板的元件：給螺絲或銅柱用的孔，畫在電路圖上，但永遠不參與模擬。

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

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

**分類:** 電源 · **種類:** `{"element":"mountingHole","kind":"boardPart"}`

## 何時使用

電路板需要幾個螺絲孔，就在電路圖上放幾個，讓電路板、圖面與審查者都看得到。只有經由螺絲接地的鍍通孔，才把它的接腳接到機殼或 PGND 網路。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `mh` | 電氣 | 可不接：鍍通孔所接的網路（機殼或 PGND）；非鍍通孔就不接 |

## 常用參數

- `part`: Part number of a board-only part bought with the board (a standoff, screw or label), for the BOM; information only, not simulated (預設值: 選填（預設關閉）)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `part` | — | 選填（預設關閉） |  | Part number of a board-only part bought with the board (a standoff, screw or label), for the BOM; information only, not simulated |
| `footprint` | — | 選填（預設關閉） |  | KiCad library id of the footprint a board-only part sits on, such as MountingHole:MountingHole_3.2mm_M3; board.addFootprints places it; information only, not simulated |

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

## 模型

只上電路板的元件永遠不參與模擬，也不寫入網表，不論模擬開關怎麼設。它預設不列入 BOM、放上電路板，電路圖上標示「board only」。

## 常見錯誤

- 接到網路的孔在板上就是一個銅連接，即使模擬忽略它。請在板上檢查它與附近高壓網路的沿面距離。
- 模擬永遠看不到只上電路板的元件。若這個硬體在電氣上有影響（接到機殼的 Y 電容、接地編織帶），請另外畫成電氣元件。

## 規格書與來源

沒有規格書。鑽孔、焊墊與螺絲頭禁佈區由工程師決定；board.addMountingHoles 接受這些尺寸。

## 範例

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

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