moggieuk / Happy-Hare

MMU software driver for Klipper (ERCF, Tradrack, Prusa)
GNU General Public License v3.0
405 stars 98 forks source link

MMU_TEST_TRACKING raises the servo before stepping 1mm to verify track #238

Open ningpj opened 4 months ago

ningpj commented 4 months ago

This must be an oversight - MMU_TEST_TRACKING raises the servo after the initial 100mm load before stepping 1mm at a time to verify encoder/filament tracking. The servo should be engaged for the duration of this test (Tradrack with Binky encoder & gate sensor, no led effects, no cutter or user macro overrides).

HH v2.5.1-15-ge6cdbddf



// TRACE: Processing idle_timeout 'printing' event
// TRACE: Initial load into encoder. Stepper: 'gear' moved 70.0mm, encoder measured 21.2mm (delta 48.8mm). Pos: @70.0, (21.2mm)
// TRACE: (mmu_gate sensor detects filament)
// [T0] > (*) >> En >........ [Ex ... Nz] 21.2mm (e:21.2mm)
// DEBUG: Loading bowden tube
// TRACE: Course loading move into bowden. Stepper: 'gear' moved 78.8mm, encoder measured 78.8mm (delta 0.0mm). Pos: @100.0, (100.0mm)
// TRACE: (mmu_gate sensor detects filament)
// [T0] > (*) >> En >>>>>.... [Ex ... Nz] 100.0mm (e:100.0mm)
// Load of 100.0mm filament successful (encoder measured 100.0mm)
// TRACE: Running macro: _MMU_ACTION_CHANGED ACTION='Idle' OLD_ACTION='Loading'
// DEBUG: Setting servo to up (filament released) position at angle: 145
// Gear/Encoder : 01.00 / 00.00 mm +
// Gear/Encoder : 02.00 / 00.00 mm ++
// Gear/Encoder : 03.00 / 00.00 mm +++
// Gear/Encoder : 04.00 / 00.00 mm ++++

// MMU: Happy Hare v2.5.1 running Tradrack v1.0e with 9 gates (OPERATIONAL)
// Servo in UP position, Encoder reads 14592.8mm
// Print state is PRINTING. Selector is HOMED. Tool T0 selected on Gate #0
// Gear stepper is at 100% and is not synced to extruder
//
// Load Sequence:
// - Filament loads into gate by homing a maximum of 70.0mm ('gate_homing_max') to ENCODER
// - Bowden is loaded with a fast 1114.0mm ('calibration_bowden_length') move, then homes to extruder using COLLISION detection (at 40% current)
// - Extruder (synced) loads by moving 70.5mm ('toolhead_extruder_to_nozzle - toolhead_ooze_reduction') to the nozzle
//
// Unload Sequence:
// - Tip is sometimes formed by SLICER and tip forming extruder current is 100%
// - Extruder (optionally synced) unloads by moving 80.5mm ('toolhead_extruder_to_nozzle + toolhead_unload_safety_margin') less reported park position to exit extruder
// - Bowden is unloaded with a short 15.0mm ('encoder_move_step_size') validation move before 1049.0mm ('calibration_bowden_length - gate_unload_buffer - encoder_move_step_size') fast move
// - Filament is stored by homing a maximum of 70.0mm ('gate_homing_max') to ENCODER and parking 44.0mm ('gate_parking_distance') in the gate
//
// Selector touch (stallguard) is ENABLED - blocked gate recovery is possible
// Persistence: Gate status, TTG map & EndlessSpool groups state is persisted across restarts
// MMU has an encoder. Non essential move validation is ENABLED
// Runout/Clog detection is AUTOMATIC (8.2mm runout), EndlessSpool is ENABLED
// SpoolMan is DISABLED. Sensors: MMU_GATE (Detected),
// Logging: Console 1(INFO), Logfile 3(TRACE), Visual 1(ON), Statistics 1(ON)
//
// Gates: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
// Tools: |T0 |T1 |T2 |T3 |T4 |T5 |T6 |T7 |T8 |
// Avail: | B | B | B | B | B | B | B |   |   |
// Selct: | * |-------------------------------- T0
//
// [T0] > (*) >> En >>>>>>>>> [Ex >>> Nz] LOADED 0.0mm (e:14592.8mm)
//
// TTG Map & EndlessSpool Groups:
// T0 in EndlessSpool Group A : 0(*) [SELECTED]
// T1 in EndlessSpool Group B : 1(*)
// T2 in EndlessSpool Group C : 2(*)
// T3 in EndlessSpool Group D : 3(*)
// T4 in EndlessSpool Group E : 4(*)
// T5 in EndlessSpool Group F : 5(*)
// T6 in EndlessSpool Group G : 6(*)
// T7 in EndlessSpool Group H : 7( )
// T8 in EndlessSpool Group I : 8( )
//
// Gates / Filaments:
// Gate 0: Status: Buffer, Material: ABS, Color: black
// Gate 1: Status: Buffer, Material: ABS, Color: blue
// Gate 2: Status: Buffer, Material: ABS, Color: red
// Gate 3: Status: Buffer, Material: ABS, Color: gray
// Gate 4: Status: Buffer, Material: ABS, Color: yellow
// Gate 5: Status: Buffer, Material: ABS, Color: deddda
// Gate 6: Status: Buffer, Material: ABS, Color: green
// Gate 7: Status: Empty, Material: ABS, Color: orange
// Gate 8: Status: Empty, Material: n/a, Color: n/a

​
moggieuk commented 2 months ago

Ooops! I will fix :-)