Complete User Tutorial β DOE Β· PID Control Β· Cycle Animation Β· Defect Tracking
The KEEPLEAN Injection Molding Simulator is an interactive tool designed to teach Design of Experiments (DOE), PID Control and process variability concepts through the real-world context of plastic injection molding of automotive parts.
By adjusting process parameters (temperature, pressure, injection speed, mold temperature) and PID controller tuning, users observe how different settings affect part quality β weight, flatness β and the appearance of manufacturing defects.
| Feature | Description |
|---|---|
| π© 4 Automotive Parts | NOx Sensor Housing, Intake Manifold Cover, EGR Valve Housing, Fuel Pump Flange |
| ποΈ 3 PID Controllers | Barrel Temperature Β· Injection Pressure Β· Mold Temperature β each fully tunable |
| π¨ 3-Stage Speed Profile | S1 Fill Β· S2 Transition Β· S3 Pack/Hold β independent control |
| π¬ Cycle Animation | 6-phase realistic injection cycle with SVG animation |
| β‘ DEMO Mode | Automatic 4-run tour with guided section highlighting |
| π Defect Tracking | 9 defect types tracked cumulatively across runs |
| π Run History | Full results table with all parameters and measured outputs |
| π₯ Export | Excel (.xlsx) data export for statistical analysis |
| Element | Location | Purpose |
|---|---|---|
| Part Selector | Top | Switch between 4 automotive parts β resets all results |
| Spec Panel | Below part cards | Shows dimensions, material, weight & flatness specs |
| Objective Banner | Below spec panel | Editable weight target and flatness max β customize your specs |
| PID Cards | Middle section | Set process setpoints and tune controller parameters |
| Oscillographs | Bottom of each PID card | Visual representation of process stability / noise level |
| Speed Stages | Below PID section | Set 3-phase injection speed profile |
| Phase Bar | Animation section | Shows current cycle phase highlighted in real time |
| SVG Animation | Animation section | Live visual of injection unit and mold during cycle |
| PV Displays | PID cards (after run) | Shows actual Process Value measured at end of cycle |
| Defect Grid | Results section | 9 defect cards with risk level and cumulative count |
| Run Table | Results section | Full run history with all parameters and outputs |
Each PID controller manages one critical process variable. The quality of your PID tuning directly affects the process variability β and therefore the scatter of your results.
Range: 250β270Β°C
Affects: polymer melt viscosity, weight
Range: 1000β1400 bar
Affects: cavity fill, flash, flatness
Range: 50β80Β°C
Affects: cooling, warpage, surface
Each PID card has a Setpoint (SP) slider at the top. This is the target value you want the process to reach and hold. The slider range corresponds to the experimental window for that variable.
Below the setpoint slider, three sliders control the PID tuning:
| Parameter | Full Name | Role in the Controller |
|---|---|---|
| Kp | Proportional Gain | Reacts to current error. Too low = slow response. Too high = oscillation. |
| Ki | Integral Gain | Eliminates steady-state error over time. Too high = instability. |
| Kd | Derivative Gain | Anticipates future error. Reduces overshoot. Too high = noise amplification. |
Each PID card displays a real-time oscillograph β a signal trace showing the simulated PV fluctuation. A flat, stable line near center = well-tuned controller. A noisy, oscillating signal = poor tuning and high process variability.
Unlike a simple single speed, real injection machines use a multi-stage speed profile to optimize part quality at each phase of cavity filling. The simulator implements 3 stages:
The simulator calculates an Effective Speed (C) as a weighted average of the 3 stages, reflecting the dominant influence of each phase on the overall process. This is the value used in the DOE model.
| Stage | Volume Range | Slider Range | Typical Effect |
|---|---|---|---|
| S1 β Fill | 0 β 80% | 80β100 mm/s | Too fast β Jetting, Silver Streak. Too slow β Short Shot. |
| S2 β Transition | 80 β 95% | 40β60 mm/s | Too fast β Flash, Weld Lines. Controls V/P switchover quality. |
| S3 β Pack | 95β100% | 5β30 mm/s | Too fast β Sink Marks, Sticking. Too slow β incomplete pack. |
When you click βΆ LAUNCH RUN, the simulator runs a complete injection cycle, animated in 6 sequential phases. Each phase is highlighted in the phase bar and shown in the SVG animation.
| Phase | What Happens | What to Watch |
|---|---|---|
| π Mold Close | Mobile platen moves to close mold. Clamping force applied. | Mold halves come together in animation |
| π Injection | Screw advances, pushing molten plastic through nozzle into mold cavity at set speed & pressure. | Screw moves forward Β· Melt flow visible Β· Cavity starts filling |
| βΈ Hold Pressure | Screw maintains pressure to compensate for shrinkage as material begins to cool. Critical for part weight. | Pulsing indicator at nozzle Β· Partial fill visible |
| βοΈ Cooling | Mold cooling channels remove heat. Part solidifies. Screw retracts to prepare next shot. | Animated cooling lines Β· Screw retracts Β· Part color changes |
| π Mold Open | Clamping force released, mobile platen retracts. Part remains on core side. | Mold halves separate |
| β¬οΈ Ejection | Ejector pins push part out of mold. Part drops. Weight and conformity displayed. | Part appears below mold Β· Weight shown with β or β |
| Button | Function | Notes |
|---|---|---|
| βΆ LAUNCH RUN | Starts one complete injection cycle | Disabled during animation. Results added to table after cycle. |
| β‘ DEMO Γ4 | Automatically runs 4 cycles in sequence with a guided tour of sections | Uses current parameter settings. Ideal for demonstrations. |
| βΊ RESET | Clears all run results and resets the animation | Does NOT change your parameter settings |
After each cycle, two quality measurements are calculated:
| Output | Unit | What it Represents | Conformity |
|---|---|---|---|
| Weight | grams (g) | Mass of the ejected part. Reflects how completely the cavity was filled and packed. Influenced by pressure, temperature, speed. | Must be within Target Β± Tolerance (e.g., 48 Β± 1 g) |
| Flatness | mm | Geometric deviation of the part's reference surface. Reflects warpage and residual stress from cooling and pressure gradients. | Must be below maximum (e.g., < 0.20 mm) |
At the end of each cycle, the PID cards update their PV (Process Value) display, showing the actual value achieved during the run. Compare PV to SP to understand control performance:
Every run is logged in the results table with all parameters and outputs:
| Column | Content |
|---|---|
| Run # | Sequential run number |
| Barrel Β°C (PV) | Actual barrel temperature achieved Β· SP shown in parentheses |
| Press. bar (PV) | Actual injection pressure achieved Β· SP in parentheses |
| S1 / S2 / S3 mm/s | Injection speed at each stage (as set) |
| Mold Β°C (PV) | Actual mold temperature achieved Β· SP in parentheses |
| Weight (g) | Measured part weight β green if within spec, red if out |
| Flatness (mm) | Measured flatness β green if within spec, red if out |
The header area shows a running Conformity Rate (%) β the percentage of runs producing parts that meet both weight AND flatness specifications. This is your key process performance indicator.
The simulator tracks 9 classic injection molding defects, each linked to specific process conditions. Cards show cumulative count and percentage across runs, with colour-coded risk levels:
| Risk Level | Threshold | Card Colour |
|---|---|---|
| β Low | < 20% of runs | Green border |
| β οΈ Medium | 20β50% of runs | Orange border |
| β High | > 50% of runs | Red border + glow |
| Stage | Defect | What it Looks Like | Parameter Direction to Watch |
|---|---|---|---|
| S1 Fill | Short Shot βΌ | Incomplete cavity fill β part is missing material | Pressure too low Β· Speed S1 too slow Β· Temp too low |
| Silver Streak βΏ | Silvery streaks on surface β moisture or gas trapped during filling | S1 speed too high Β· Temperature too high | |
| Jetting β€³ | Worm-like marks from melt jetting across open cavity before wall contact | S1 speed very high Β· Pressure high Β· Mold temp low | |
| S2 Trans. | Weld Line γ° | Visible line where two melt fronts meet β potential weakness | S2 speed too high Β· Temperature too low |
| Flash β‘ | Thin film of plastic at parting line β overflow outside cavity | Pressure too high Β· S2 speed too high | |
| Bubble / Void β | Internal air pocket or surface blister β gas entrapment | S2 speed too high Β· Mold temp too low Β· S3 too slow | |
| S3 Pack | Sink Mark β£ | Surface depression on thick sections β insufficient pack | S3 too fast Β· Pressure insufficient during hold |
| Warpage β | Part bends or twists after ejection β uneven residual stress | Flatness out of spec Β· Cooling imbalance Β· Pressure issues | |
| Sticking β‘ | Part difficult to eject β adheres to mold surface | S3 too fast Β· Mold temp too low Β· Pressure too high |
Click the π₯ Export Excel button in the results section to download all run data as an Excel file. The file is named automatically with the part name and date:
KEEPLEAN_NOx-Sensor-Housing_2025-02-28.xlsx
| Column in Export | Content |
|---|---|
| Run # | Sequential run number |
| Barrel SP / PV | Setpoint and actual barrel temperature |
| Press. SP / PV | Setpoint and actual injection pressure |
| S1 / S2 / S3 mm/s | Injection speed at each stage |
| Mold SP / PV | Setpoint and actual mold temperature |
| Weight (g) | Measured part weight |
| Flatness (mm) | Measured part flatness |
| OK? | OK or NOK conformity verdict |
The simulator has 4 main factors that can be treated as DOE factors:
| Factor | Symbol | Low Level (β) | High Level (+) | Units |
|---|---|---|---|---|
| Barrel Temperature | A | 250 | 270 | Β°C |
| Injection Pressure | B | 1000 | 1400 | bar |
| Injection Speed (eff.) | C | Low | High | mm/s |
| Mold Temperature | D | 50 | 80 | Β°C |
| Design | Runs Required | What You Learn |
|---|---|---|
| One-Factor-at-a-Time (OFAT) | 8β12 | Individual effects only β misses interactions |
| Full Factorial 2Β² (A, B only) | 4 | Effects of Temp + Pressure + their interaction |
| Full Factorial 2Β³ (A, B, C) | 8 | 3 main effects + 3 two-factor interactions |
| Full Factorial 2β΄ (A, B, C, D) | 16 | All 4 factors, all interactions |
| Fractional Factorial 2β΄β»ΒΉ | 8 | Efficient screening β half the runs of full 2β΄ |
Run your DOE using Weight (g) and Flatness (mm) as responses. You can run separate analyses for each or use a multi-response optimization approach.
| Mistake | Consequence | Solution |
|---|---|---|
| Changing PID settings between DOE runs | Uncontrolled variability confounds results | Fix PID at start and keep constant |
| Only running 1 replicate per condition | Cannot estimate process noise | Run 2β3 replicates per factor combination |
| Changing part mid-experiment | Different model β incompatible data | Select part first, keep constant throughout |
| Ignoring defect tracker | Miss root causes of non-conformities | Check defect cards after every few runs |
| Forgetting to export before Reset | All data lost | Export Excel before clicking Reset |
| Objective | Key Parameters to Adjust |
|---|---|
| Increase part Weight | β Pressure Β· β Hold time (S3 slower) Β· β Temperature |
| Improve Flatness | Balanced cooling Β· Moderate pressure Β· Reduce S3 speed |
| Eliminate Short Shot | β Pressure Β· β S1 speed Β· β Temperature |
| Eliminate Flash | β Pressure Β· β S2 speed |
| Eliminate Jetting | β S1 speed Β· β Mold Temperature |
| Reduce variability | Improve PID tuning (Kp, Ki, Kd near optimal) |
| Maximize conformity | Run a DOE β find the sweet spot for all 4 factors |