# Root load: configure and enable :id=top

------

> _Doc Ver:_ 1.1  
_App Ver:_ 2.6.6.53  
_Date:_ 09/17/2026

------

Ask http://112.74.47.129:9999 and say **SA1 2.x / sa-di / BLADELOAD_ENABLE**. Hub: [Root load](bladeload.md). Q&A: [Root load Q&A](bladeload-qa.md).

This page is **SA1 2.6.x**: JSON parameters + `:SYS:RELOAD`. It is **not** SA2 `sys_params`, `/bladeload-map`, or `sa_daq`.

**Contents:** [Factory](#factory) · [Menu](#menu) · [Also enable](#also) · [Files](#files) · [JSON](#json) · [Work page](#work) · [After write](#after) · [Verify](#verify) · [Trouble](#trouble)

------

## 0. Factory default :id=factory

- `BLADELOAD_ENABLE` is **false**.
- Virtual IDs 201–208 are not present.
- Factory virtual IDs **1–5 stay**. Do not delete them.
- Upgrade to 2.6.6.47 copies `bladeload.json`, `bladeload/index.json`, `bladeload_map.json` into persist only when those paths are missing.
- The list has no root-load My/η until you enable, bind, calibrate, and **Apply**.

------

## 1. Enable on the web (do this first) :id=menu

Sign in as an operator:

1. **Setting → Fan Blade → Enable root load**  
   URL `addon.php?dir=bladeload` (under `/m/`, full path `/m/addon.php?dir=bladeload`).
2. Check **Enable root load** (`BLADELOAD_ENABLE`).
3. Save. AfterCfg sends **`:SYS:RELOAD`** and must return `0`.
4. Do **not** `killall -9 sa-di`.
5. Open the work page: **Setting → Fan Blade → Root load** (`bladeload.php`).

The work page warns if the switch is off. Enabling the switch does **not** write IDs 201–208 by itself; bind + calibrate + **Apply** on the work page.

------

## 2. Two more switches :id=also

| Item | Where | Why |
|------|--------|-----|
| Virtual sensors `VSS_ENABLE` | Setting → Base → Virtual sensors | 201–208 are virtual. Apply turns this on. |
| Formula parser **type 3** | Device formula settings | Types 0/1 cannot evaluate `&ID`. Demodulation slows down: [speed](improve_sa_speed.md). |

Physical FUN is **125** bytes. Four-gauge sums need virtual FUN (**512**).

------

## 3. Persist files :id=files

Runtime reads `/var/sa/conf` → `/home/debian/sa1/persist/conf`. The git `conf/` tree is not the live tree.

| File | Role | Who writes it |
|------|------|----------------|
| `bladeload.json` | Addon enable; `BLADELOAD_ENABLE`; AfterCfg `:SYS:RELOAD` | Save on the addon page |
| `bladeload/index.json` | Fan-blade Addon tab | Package / upgrade copy |
| `bladeload_map.json` | A/B/C × LE/TE/SS/PS → **register sensor IDs** | `bladeload.php` Save map |
| `register.conf` | Channel and MIN/MAX window (pm) | Bind peak |
| `register_vss.conf` | Virtual list; merges `vss/BL201.sensor`… | Apply |
| `vss/BL201.sensor` … `BL208.sensor` | FUN / names / RELSTD | Apply |
| `virtual_sensors.json` | `VSS_ENABLE`; RELSTD& memo | VSS page; Apply sets Enable |
| `modbus.json` | Slave; sparse `0=201…14=208` | Root-load page fills the map, does **not** set `MODBUS_ENABLE` |

Do not `rsync` a whole `conf/` onto persist (it would overwrite `register.conf` / `sensors/`).

------

## 4. `bladeload.json` :id=json

```json
"Help": "help/#/{lang}bladeload",
"AfterCfg": { "Enable": true, "Name": ":SYS:RELOAD" },
"ID": "BLADELOAD_ENABLE",
"Data": { "Type": 2, "Value": false, "Default": false }
```

- Type 2 is a checkbox.
- Help points at the device handbook root-load page (`{lang}`).
- AfterCfg is **not** `sudo killall -9 sa-di`.
- This is not SA2 `sys_params`, and there is no bladeload profile under `/api/system/config/app`.

Factory `bladeload_map.json`:

```json
{ "blades": ["A","B","C"], "le":[0,0,0], "te":[0,0,0], "ss":[0,0,0], "ps":[0,0,0] }
```

`0` means unbound. Bind fills **existing register IDs** (matched by SN). Do not change software IDs 201–208.

------

## 5. Work-page order :id=work

1. Enable `BLADELOAD_ENABLE` + `:SYS:RELOAD` (this page §1).
2. Bind: pick register ID → click a live peak (`:DATA:PVJ?`) → Channel + MIN/MAX = peak ± 1500 **pm** → Save map → `:SYS:RELOAD`.
3. Calibrate from ops + strain CSV (idle or locked; same C). R² must pass.
4. Apply 201–208, turn on `VSS_ENABLE`, `:SYS:RELOAD`.
5. Monitor → List → Virtual, or `sa-cli scpi ':DATA:PVJ?'`.

Three blades on **this** interrogator. Auxiliary control: **no PLC**. No Python on the PC.

------

## 6. After Apply :id=after

| ID | Name | FUN idea |
|----|------|----------|
| 201 / 202 | MyA / MxA | `a1*&LE+…+b` (register IDs, not 201) |
| 203 / 204 | MyB / MxB | same |
| 205 / 206 | MyC / MxC | same |
| 207 / 208 | EtaY / EtaX | `RELSTD&(201,203,205)` / `RELSTD&(202,204,206)` |

`sa-di` evaluates virtuals by **ascending ID** and then assigns `v_ID`, so 207 can read 201–206. Cap is **16** virtuals. Factory 1–5 + 201–208 = 13.

------

## 7. Enable checks :id=verify

- persist has `bladeload.json` and `BLADELOAD_ENABLE` is true.
- `VSS_ENABLE` is true; formula type 3.
- `register_vss.conf` lists 201–208 and factory 1–5 remain.
- `*VER?` is 2.6.6.47 or newer (if still old after upgrade, `systemctl restart sa-di`).
- `:DATA:PVJ?`, not `:DATA:PV?`.
- One `sa-di`, no SA2.

------

## 8. Trouble :id=trouble

| Symptom | Check first |
|---------|-------------|
| No root-load menu | Software ≥ 2.6.6.47; sidemenu Fan Blade → Enable root load / Root load |
| Save does nothing | AfterCfg must be `:SYS:RELOAD`; 7090 returns `0` |
| Switch on but no 201 | Apply not run on the work page; the switch alone is not enough |
| Virtual FUN fails | Formula type is not 3, or `VSS_ENABLE` is off |
| Peak bound but unmatched | Window is **pm**; no RELOAD after save; clicked an unregistered ID |
| Q&A only talks about SA2 `/bladeload-map` | Ask **SA1 2.x / sa-di / addon.php?dir=bladeload / BLADELOAD_ENABLE** |

------

### [Top](#top)
