fix(focas): #1036 a short macro/parameter payload publishes BadTypeMismatch, not BadCommunicationError
This commit is contained in:
@@ -640,7 +640,7 @@ test fixtures (`tests/.../Driver.FOCAS.Tests/Fixtures/v3/`). Client-visible chan
|
||||
|
||||
| What | Before | Now |
|
||||
|------|--------|-----|
|
||||
| `cnc_rdmacro` decimal | read at payload offset 4 — a constant `10` length field — so `#500 = 1.0` published `0.01` | `dec_val` at offset 6; `mantissa / 10^dec`. Vacant variable → `BadNoData`; fractional value on an integer tag → `BadTypeMismatch`; integer tags receive the exact whole value |
|
||||
| `cnc_rdmacro` decimal | read at payload offset 4 — a constant `10` length field — so `#500 = 1.0` published `0.01` | `dec_val` at offset 6; `mantissa / 10^dec`. Vacant variable → `BadNoData`; fractional value on an integer tag → `BadTypeMismatch`; integer tags receive the exact whole value. A reply too short to decode (macro, parameter) is `BadTypeMismatch` on that tag with no health impact: the CNC answered and the session is intact (#1036, `FocasWirePayloadException`) |
|
||||
| Axis positions | scaled by `cnc_getfigure` (0x00D3), which does not exist — on hardware: raw counts | scaled by each block's own `base^exponent`; undescribable block → `BadNoData` |
|
||||
| Axis / spindle names | first 2 of 4 record bytes — `AA6`/`AA7` collapsed to `AA` | whole record up to the first NUL (residue after it discarded) — ⚠️ `Axes/AA_1`→`Axes/AA6` on such a machine |
|
||||
| `ServoLoad` | `value / 10^base` (offset 4 is the base, 10) — always ~0 | `value / base^exponent`, a direct percentage |
|
||||
|
||||
Reference in New Issue
Block a user