Skip to content

Add Multi-tool support in Fluidd/Mainsail by emulating AFC#236

Closed
paxx12 wants to merge 4 commits into
developfrom
create-lean-afc-for-u1
Closed

Add Multi-tool support in Fluidd/Mainsail by emulating AFC#236
paxx12 wants to merge 4 commits into
developfrom
create-lean-afc-for-u1

Conversation

@paxx12
Copy link
Copy Markdown
Contributor

@paxx12 paxx12 commented Feb 4, 2026

Summary

Make U1 to behave as AFC enabled with Spoolman integration for multi-material printing support

What it does

  • AFC status in UI - Lane information (material, color, vendor, spool ID) visible in AFC-compatible frontends
  • Spoolman integration - Assign spools to lanes with SET_SPOOL_ID LANE=E0 SPOOL_ID=123, automatically fetches filament data
  • Active spool tracking - Current lane's spool ID synced to Spoolman
  • RFID spool detection - OpenSpool tags with spool_id field link physical spools to Spoolman entries

How it works

The AFC stub module is a read-only facade over the printer's existing print_task_config data structure. It does not implement its own filament tracking - all lane properties (material, color, vendor) are read from and written to the internal configuration that the printer already uses. Macros like CHANGE_TOOL and LANE_UNLOAD call the existing AUTO_FEEDING command.

Spoolman queries go through Moonraker's spoolman component via a new proxy RPC, with responses applied to print_task_config using the standard SET_PRINT_FILAMENT_CONFIG command.

Configuration

Enable via firmware-config web interface under Tweaks → AFC Stub. Then edit moonraker/spoolman.cfg to enable a spoolman integration.

Caveats

  • The AFC component can only map lane (extruder) to a tool. There's no support to map many tools to a single lane (extruder) as Snapmaker Orca is doing.
  • The runout logic cannot be controlled, as this is not configurable by Snapmaker, so it fails now.
  • The weight tracking is not working if not used in Spoolman mode.
  • The list of tools is derived fom lane.map instead of defined explicitly, so user can choose only from T0..T3 tools.

Integration with Snapmaker Orca

snorca_sync

Re-order tools

edit_tools

RFID support

rfid_read

Spoolman support

spoolman

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 4, 2026

✅ Build Artifacts

Version: 1.1.0-paxx12-test-pr-236
Build: 77a71f6 (merge of d0a1049 into develop)
Duration: 4m 57s

Artifact Size
basic-build 205.27 MB
extended-build 240.71 MB
basic-devel-build 205.68 MB
extended-devel-build 241.12 MB

View workflow run

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 7, 2026

✅ Build Artifacts

Version: 1.1.0-paxx12-test-pr-236
Build: 5307f73 (merge of dc4261d into develop)
Duration: 5m 1s

Artifact Size
basic-build 205.27 MB
extended-build 240.72 MB
basic-devel-build 205.68 MB
extended-devel-build 241.13 MB

View workflow run

@paxx12 paxx12 force-pushed the create-lean-afc-for-u1 branch from dc4261d to 950b101 Compare February 7, 2026 11:50
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 7, 2026

✅ Build Artifacts

Version: 1.1.0-paxx12-test-pr-236
Build: 0a033ce (merge of 950b101 into develop)
Duration: 5m 12s

Artifact Size
basic-build 205.27 MB
extended-build 240.72 MB
basic-devel-build 205.68 MB
extended-devel-build 241.13 MB

View workflow run

@paxx12 paxx12 force-pushed the create-lean-afc-for-u1 branch from 950b101 to 3efacd0 Compare February 9, 2026 12:10
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 9, 2026

✅ Build Artifacts

Version: 1.1.0-paxx12-test-pr-236
Build: db7a28a (merge of 3efacd0 into develop)
Duration: 5m 8s

Artifact Size
basic-build 205.27 MB
extended-build 240.72 MB
basic-devel-build 205.68 MB
extended-devel-build 241.13 MB

View workflow run

Add `spool_id` field to OpenSpool protocol for integration with spool
management systems. The `spool_id` is stored in `print_task_config` and
can be set via RFID tags or `SET_PRINT_FILAMENT_CONFIG` command.
@paxx12 paxx12 force-pushed the create-lean-afc-for-u1 branch from 3efacd0 to 4d8e4ca Compare February 9, 2026 18:36
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 9, 2026

✅ Build Artifacts

Version: 1.1.1-paxx12-test-pr-236
Build: 98169e9 (merge of 4d8e4ca into develop)
Duration: 5m 11s

Artifact Size
basic-build 205.31 MB
extended-build 240.74 MB
basic-devel-build 205.72 MB
extended-devel-build 241.15 MB

View workflow run

@paxx12
Copy link
Copy Markdown
Contributor Author

paxx12 commented Feb 15, 2026

Replaced by #285

@paxx12 paxx12 closed this Feb 15, 2026
@paxx12 paxx12 deleted the create-lean-afc-for-u1 branch April 5, 2026 16:43
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