Skip to content

Populate STAR X-drives (X0) error trace table#1080

Merged
BioCam merged 1 commit into
PyLabRobot:mainfrom
BioCam:star-x0-error-table
Jun 9, 2026
Merged

Populate STAR X-drives (X0) error trace table#1080
BioCam merged 1 commit into
PyLabRobot:mainfrom
BioCam:star-x0-error-table

Conversation

@BioCam

@BioCam BioCam commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

The X-drives (X0) module had no entry in trace_information_to_string, so every X-drive firmware error surfaced to the user as the opaque Unknown trace information code <n>.

This PR adds the X0 table. X moves happen on essentially every operation, so an X-drive fault is something a user can plausibly hit, which makes this the most worthwhile of the previously-untabled modules.

The table covers both firmware generations of the module - the original (E289003a) and the XE167 controller (E2891005a) - in a single additive block: per-drive initialization / not-initialized / movement / position / dispense-on-fly codes for X drive 1 (50-55), X drive 2 (70-75) and the reserve drive (80-82), plus the transfer, download, syntax, stop and parallel-process codes. The codes that exist on only one generation do not overlap, and the codes shared by both mean the same thing, so one table serves both without any firmware-version gating.

The change is additive: a new elif branch at the end of the dispatch chain. It alters no other module branch and changes no error classification or control flow - X-drive errors that previously printed Unknown trace information code <n> now print the real cause. Dispatch is keyed by module identifier, so these codes do not collide with the identically-numbered codes in the other module tables.

🤖 Generated with Claude Code

The X0 module had no trace-information table, so every X-drive firmware
error surfaced as "Unknown trace information code N". Add the table
covering both firmware generations: per-drive init / not-initialized /
movement / position / dispense-on-fly codes for X drive 1, X drive 2 and
the reserve drive, plus the transfer, download, syntax, stop and
parallel-process codes. Older-firmware-only and XE167-only codes do not
collide, so a single table serves both.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@BioCam BioCam merged commit 8e62392 into PyLabRobot:main Jun 9, 2026
21 checks passed
@BioCam BioCam deleted the star-x0-error-table branch June 9, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant