S17studio seventeen
studio seventeen / skills/modbus/workflows/determine-byte-order.md
← Skills & workflows

Determine byte order from a one-read probe

Build a bounded probe with capture-sample when raw words are missing. After live-read confirmation, an operator or enabled target tool runs the gated read. Byte-order confirmation follows.

Workflow steps

  1. capture-sample

    skill

    When: no raw words or capture/v1 yet

    Inputs: probe-request/v1
    Output: modbus-tool-pack/v1

  2. run probe

    After operator confirmation, run one bounded read and save the returned raw 16-bit words with complete sample identity. Do not scan or write.

    When: no raw words or capture/v1 yet

    Inputs: modbus-tool-pack/v1
    Output: capture/v1

  3. confirm-byte-order

    workflow

    Inputs: modbus-map/v1, capture/v1
    Output: modbus-map/v1

Stop conditions

  • no probe identity when raw words are missing
  • no raw words after the probe gate
  • ambiguous sample identity
  • no human confirmation
Canonical workflow source ↗