Commit graph

8 commits

Author SHA1 Message Date
root
a93018b38f Config: Update KNCM settings with measured wiper position
- variable_cleaning_height: 0.6mm (measured Z position)
- variable_bed_corner_to_wiper_offset: -4.7mm (measured X position, corner mount outside bed area)
- User measured final wiping position: X:-4.7 Y:319.6 Z:0.6
2026-03-14 13:03:22 +00:00
root
37b38c713a Fix: KNCM_settings.cfg - single-line dictionary for Klipper parser
- variable_cleaning_temperatures must be on one line
- Klipper config parser doesn't support multi-line dictionaries
- Fixes parsing error on line 63
2026-03-14 12:51:52 +00:00
root
e22df9b5ab Feat: Replace custom KNCM with official Open-Elegoo-Community version
Replaced our custom nozzle cleaning macros with the official
Klipper Nozzle Clean Macro (KNCM) from Open-Elegoo-Community.

Changes:
- Added KNCM/nozzle_clean.cfg (official macro code)
- Updated KNCM_settings.cfg with official variable-based config
- Updated KNCM/KNCM_settings.cfg (copy for include path)
- Removed custom CLEAN_NOZZLE, SMART_PARK, LINE_PURGE macros

Benefits of official KNCM:
- Proper wiper position calculation (not hardcoded X0 Y0!)
- Variable-based configuration (easy to customize)
- Filament-specific cleaning temperatures
- Sinusoidal wiping pattern for better cleaning
- PurgeShake to remove strings before wiping
- Actively maintained by Open-Elegoo-Community

Neptune 4 Plus specific settings:
- printer_bed_y_max: 330
- wiping_axis: Y (bed moves)
- cleaning_height: 30 (CALIBRATE THIS!)
- bed_corner_to_wiper_offset: 40.5 (MEASURE THIS!)

Reference: https://github.com/Open-Elegoo-Community/klipper-nozzle-clean-macro
2026-03-13 16:38:54 +00:00
root
a3eaeddc1d Fix: Add SDCARD_RESET_FILE macro to prevent config error
Some Klipper versions expect this macro to be defined.
Added a simple placeholder macro to prevent:
'Option gcode in section gcode_macro SDCARD_RESET_FILE must be specified'
2026-03-13 14:47:49 +00:00
root
62ad32b3e7 Fix: SET_PIN VALUE must be 0 or 1 for digital pins (not 0-255)
Digital output pins (pwm: False) only accept values 0 or 1,
not 0-255 like PWM pins.

Fixed macros:
- Frame_Light_ON: VALUE=255 → VALUE=1
- Frame_Light_OFF: VALUE=0 (correct)
- Part_Light_ON: VALUE=255 → VALUE=1
- Part_Light_OFF: VALUE=0 (correct)
2026-03-13 14:44:23 +00:00
root
454b80b514 Fix: Remove gcode_variable (not supported in older Klipper)
The 'gcode_variable' section is not available in all Klipper versions.
Removed it and simplified KNCM_settings.cfg to use direct defaults.

Also reverted to 'probe:z_virtual_endstop' which is correct when
[mcu rpi] is defined in printer.cfg.

Changes:
- KNCM_settings.cfg: Removed [gcode_variable printer_settings]
- user_settings_clean.cfg: endstop_pin: probe:z_virtual_endstop
- optimized_user_settings.cfg: endstop_pin: probe:z_virtual_endstop
2026-03-13 12:59:09 +00:00
root
d442625ba1 Fix: Set correct bed Y max for Neptune 4 Plus (330mm)
Updated KNCM_settings.cfg with printer_variables:
- variable_printer_bed_y_max: 330 (N4Plus)
  Was: 229 (N4 - wrong!)

Added all KNCM variables for customization:
- Clean position (X, Y, Z)
- Park position (X, Y, Z)
- Purge line settings (start, end, Y, Z, amount)

Macros now use variables for consistent positioning:
- CLEAN_NOZZLE uses variable_clean_*
- SMART_PARK uses variable_park_*
- LINE_PURGE uses variable_purge_*

This ensures macros use correct bed dimensions for N4 Plus.
2026-03-13 12:41:13 +00:00
root
8df3056248 Feat: Add KNCM_settings.cfg with nozzle cleaning macros
Created KNCM_settings.cfg with essential macros:
- CLEAN_NOZZLE: Wipe nozzle on brush/cloth
- SMART_PARK: Park nozzle at front for easy access
- LINE_PURGE: Print purge line at start
- Frame_Light_ON/OFF: Control frame LED (PD14)
- Part_Light_ON/OFF: Control part light (PD13)

Also added [output_pin] definitions for lights:
- frame_light: PD14
- part_light: PD13

This fixes: 'Unknown pin chip name rpi' error caused by
missing KNCM_settings.cfg include.

The file was previously included but didn't exist in the repo.
2026-03-13 12:38:07 +00:00