fix(modbus): #981 review — MELSEC no longer claims the generic DI<n> discrete-input mnemonic
The S-8 gate (no generic mnemonic fallback once a family grammar claimed the address) made the MELSEC D-register grammar, which claimed every D prefix, reject DI100 as a malformed D-register. MELSEC has no DI device, so DI... is no longer claimed; every other D... stays native and DL205's non-octal C rejection is untouched.
This commit is contained in:
@@ -69,7 +69,7 @@ appear across consecutive registers when decoding a multi-register value.
|
||||
|
||||
- **`Generic`** (default) — only Modicon (`4xxxx`) and mnemonic (`HR1`, `C100`) forms are accepted.
|
||||
- **`DL205`** — AutomationDirect DirectLOGIC. V-memory (octal) → HoldingRegisters, `Y`/`C` → Coils, `X`/`SP` → DiscreteInputs. A `C` relay with a non-octal digit (`C18`) is a parse error - it never falls back to the generic `C<n>` coil mnemonic (#981). Strings can be packed low-byte-first via `ModbusTagDefinition.StringByteOrder` (the grammar can't express this — see `ModbusStringByteOrder`).
|
||||
- **`MELSEC`** — Mitsubishi. D-registers → HoldingRegisters, `X` → DiscreteInputs, `Y`/`M` → Coils; the `MelsecSubFamily` selector switches Q/L/iQR (hex) vs FX (octal) X/Y interpretation.
|
||||
- **`MELSEC`** — Mitsubishi. D-registers → HoldingRegisters, `X` → DiscreteInputs, `Y`/`M` → Coils; the `MelsecSubFamily` selector switches Q/L/iQR (hex) vs FX (octal) X/Y interpretation. MELSEC has no `DI` device, so `DI<n>` stays the generic discrete-input mnemonic (#981 review — the D-register grammar briefly claimed it and rejected it as a malformed register).
|
||||
|
||||
Per-family register caps are honoured through `MaxRegistersPerRead` /
|
||||
`MaxRegistersPerWrite` / `MaxCoilsPerRead` (e.g. DL205/DL260 cap reads at 128,
|
||||
|
||||
Reference in New Issue
Block a user