ExposureConfig Structure
TheExposureConfig struct is defined in common/src/slice/config.rs:28 and contains five key parameters:
The duration that the UV light exposes each layer.Normal layers default: 3.0 secondsFirst layers default: 30.0 secondsLonger exposure times result in stronger curing but may cause over-curing and loss of detail. The optimal value depends on your resin type and printer’s UV intensity.
The distance the build platform lifts after exposing a layer, allowing fresh resin to flow underneath.Default: 5.0 mmThis must be sufficient for the film to separate from the cured layer and new resin to flow into place.
The speed at which the build platform lifts after exposure.Default: 5.5 cm/s (calculated as 330 mm/min)Too fast may cause parts to detach from supports; too slow increases print time unnecessarily.
The distance the build platform retracts back down to the next layer position.Default: 5.0 mmTypically matches the lift distance but can be adjusted independently.
The speed at which the build platform retracts back down.Default: 5.5 cm/s (calculated as 330 mm/min)This affects the force of impact when the platform returns to position.
First Layer Exposure
First layers require significantly different exposure settings to ensure proper adhesion to the build plate. Mslicer maintains two separateExposureConfig instances:
Normal Exposure Config
Used for regular layers after the first layers and transition period:First Exposure Config
Used for the initial layers that adhere to the build plate:Layer-Based Exposure Selection
Mslicer automatically selects the appropriate exposure configuration based on the current layer number using theexposure_config() method in common/src/slice/config.rs:38:
- Layers 0, 1, 2 use
first_exposure_config(whenfirst_layers = 3) - Layer 3 and above use
exposure_config
Transition Layers
Transition layers interpolate between first and normal exposure settings to prevent abrupt changes that could cause delamination. The number of transition layers is configured separately inSliceConfig.transition_layers (default: 10).
During transition:
- Exposure time gradually decreases from first layer values to normal values
- Other parameters (lift/retract) also interpolate smoothly
- This helps prevent stress on the part where settings change
print_time() method, which averages the two configurations over the transition period.
Print Time Calculation
Total layer time includes:- Exposure time: Duration of UV exposure
- Lift time:
lift_distance / lift_speed - Retract time:
retract_distance / retract_speed
common/src/slice/config.rs:56:
Configuring in the UI
Exposure settings are configured in the Slice Config window through collapsible sections:- Exposure Config: Settings for normal layers
- First Exposure Config: Settings for initial layers
mslicer/src/windows/slice_config.rs:154.
Units Reference
- Seconds: Time values for exposure duration
- Milimeters: Distance values for lift and retract
- CentimetersPerSecond: Speed values (internally converted from mm/min)