OrcaSlicer macro execution order during print
From adding comments to all G-Code macros in Printer/Filament settings, slicing and inspecting file, tried to understand execution order:
- Machine Start Macro
- Change Filament Macro (from
Printer settings
) T1
- tool activation G-code command- Filament_1 Start Macro (from
Filament settings
) - Before Layer Change Macro
- Time Lapse Macro
- Layer Change Macro
- Change Extrusion Role Macro (Type: Inner wall)
- Change Extrusion Role Macro (Type: Outer wall)
- Change Extrusion Role Macro (Type: Bottom surface)
- Filament_1 End Macro (from
Filament settings
) - Change Filament Macro (from
Printer settings
) T0
- tool activation G-code command- Filament_0 Start Macro (from
Filament settings
) - Change Extrusion Role Macro (Type: Inner wall)
- Change Extrusion Role Macro (Type: Outer wall)
- Change Extrusion Role Macro (Type: Bottom surface)
- Filament_0 End Macro (from
Filament settings
) - Change Filament Macro (from
Printer settings
) -
T2
- tool activation G-code command…
-
Filament_0 End Macro (from
Filament settings
)… per filament
- Filament_3 End Macro (from
Filament settings
) - Machine_end
Defining colors
The current way that I found to define colors is to add new filament and specify in Filament start G-code
desired mix ratio:
; filament start gcode
M163 S0 P50 ; set extruder 0
M163 S1 P50 ; set extruder 1
M163 S2 P0 ; set extruder 2
M163 S3 P0 ; set extruder 3
M164 ; commit the mix factors
The missing steps:
- How to adjust color of displayed rectangle and on model preview (they are different).
- How to support many colors without creating “new filament” for each one
Setting purge volumes
To measure purge volumes I created rectangles and modified shell and infill style and direction to create “snake” like pattern to be able to visually see color change and measure distance purged:
The rectangle’s size is 20x40mm and the result of printing without purging (prime tower) is:
* the print was done from right to left with second pink rectangle printed out of order and in wrong color -> it was last and of the same color as previous left most so no contamination.
Based on the measurements, the color switches predominantly to white after approximately 15 mm. However, there are still small traces of contamination—cyan between 25 mm and 30 mm, and yellow between 30 mm and 40 mm.
Example of purge volume calculation:
The \(100mm^3\) number was updated in purge volumes for filaments in use:
The results after updating the flushing volumes and enabling prime tower:
* the bottom right transition by mistake was skipped and had smaller number