HiNC-Manager-Win/Doc/startup.zh-Hant.md
2024-11-19 07:36:37 +08:00

93 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
Key: startup
---
# 軟體啟動與資源
## 啟用HiNC於Windows系統
1. 至官網下載HiNC安裝包並解壓縮
https://superhightech-gitea.webredirect.org/HiNC-Deploy/HiNC-Manager-Win/archive/master.zip
2. 插上HiNC授權鎖執行資料夾內`HiNC-loop-with-update.bat`
該腳本會於每次執行下載或更新HiNC軟件。
首次執行過後將產生HiNC子資料夾。該資料夾內可找到`appsettings.json` 檔案該檔案用來設定HiNC組態。
`appsettings.json` 檔案中可以設定網頁位置及使用者帳號密碼等組態。以下使用預設值說明。
`appsettings.json`預設值每次HiNC啟動時會連結授權伺服器檢查是否有授權更新。授權更新的預設設置如下如果要取消自動授權鎖更新可將`AutoLicenseUpdate`改為`DoNothing`
```
"LicenseManager": {
//Available Command: "DoNothing","AutoLicenseUpdate","GetC2V","GenV2C","ApplyV2C","WriteInfo"
"Command": "AutoLicenseUpdate",
"Server": {
"URI": "http://superhightech.com.tw:20201",
}
}
```
`appsettings.json` 檔案中預設創建 `../HiNC-Root` 作為資料與專案的存放位置。
:::{.alert .alert-info}
**疑難排解**
如果啟動HiNC時反覆出現錯誤長訊息可能是作業系統太舊或久未更新請安裝 `Microsoft Visual C++`。
:::
3. 打開網頁瀏覽器,進入預設網址:
http://localhost:4330
4. 輸入預設使用者帳密即可登入使用。
帳號: `admin`
密碼: `00000`
## 單機多站
如果有開通多程序授權,可以使用不同 `appsettings.<組態名稱>.json` 伺服多個程序。每個程序可同時執行不同的專案。
同個主機中各程序`appsettings.<組態名稱>.json`中以下項目不可相同:
- `Endpoints`
- `DatabasePort`
- `CacheDbId`
在命令列執行以下指令啟動指定程序:
`dotnet run HiNcServer.dll --environment <組態名稱>`
!!! success "組態範例"
- [appsettings.Sub-1.json](example/appsettings.Sub-1.json)
- [appsettings.Sub-2.json](example/appsettings.Sub-2.json)
## 以授權器作第二層伺服(多主機)
如果有開通多主機授權,下載並解壓縮[DelegateAuthorization.zip](https://superhightech.com.tw/download2/DelegateAuthorization.zip)並根據裡面的兩個pdf說明檔操作分別設定授權伺服器與被授權客戶端。
## 教學視頻
### 建立機構與刀具
- https://superhightech.com.tw/download2/機構建構器建立虛擬機床.mp4
- https://superhightech.com.tw/download2/建立臥式機床.mp4
- https://superhightech.com.tw/download2/刀具建立-銑削與刀把.mp4
### 專案設定與執行
1. https://superhightech.com.tw/download2/範例專案設置說明.mp4
2. https://superhightech.com.tw/download2/範例專案仿真說明.mp4
3. https://superhightech.com.tw/download2/建立專案.mp4
!!! success "範例專案下載"
- https://superhightech-gitea.webredirect.org/HiNC-Deploy/DemoStandardPath/archive/master.zip