Klipper kilka pytań.

Oprogramowanie sterownika drukarki i do łączenia komputera z drukarką
Robin
Postów w temacie: 18
Posty: 110
Rejestracja: 19 mar 2020, 16:27
Lokalizacja: Wrocław
x 20

Re: Klipper kilka pytań.

Post autor: Robin »

Nie da się wszystkiego na raz, nie wszystko da się prosto naprawić.

Czym chciałbyś na początek się zająć?
Warto popracować - bo pewnie jak zauważyłeś Klipper ma więcej zalet niż wad.

Czy tak rozwiązałeś zasilanie? https://gpailler.github.io/2018-03-02-o ... sucontrol/
Ja zasilanie rozwiązałem tak:
Włącznik główny (trwałe wyłączenie zasilania), przycisk chwilowy ON

-moduł steruje 230V zasilacza, rpi zaslanie jest przez przetwornice 12v/5v. Po naciśnięciu przycysku ON staruje rpi i podtrzymuje przekażnik.
przycisk można już puścić.
- wyłączenie następuje po wywołaniu polecenia shutdown lub z menu na wyświetaczu.
Mógłbym dołożyć przycisk OFF ale obecne rozwiązanie mnie urządza

https://pl.aliexpress.com/item/40001446 ... web201603_
Spekuluje - w twoim przypadku wystarczyłoby zasilacz rpi podłączyć do 230v zasilacza gł.
Dodatkowy przycisk chwilowy podłączony do styków włączających podawałby zasilanie sieciowe bezpośrednio.
Po starcie rpi zasilanie potrzymane będzie prze przekaźnik.Wyłączenie następowałoby bez zmian.
Na początek mogłoby tak działać. Gwałtownie wyłączenie zasilania nie jest dobre dla systemu i drugiej kolejności można zdefiniować dodatkowy pin zamykający system bezpiecznie.

Jestem nowy na forum i nie wiem jak dołączać rysunki, które wiele by wyjaśniały
Awatar użytkownika
Zepco
Postów w temacie: 2
Posty: 1555
Rejestracja: 25 kwie 2017, 22:23
Lokalizacja: Kielce
Drukarka: PRUSA i3 MK2S
x 294

Re: Klipper kilka pytań.

Post autor: Zepco »

Robin pisze: Jestem nowy na forum i nie wiem jak dołączać rysunki, które wiele by wyjaśniały

Instrukcja jak umieszczać zdjęcia
Prusa i3 MK2S
Anet A8 - rozebrana na części...
3DGence One
Awatar użytkownika
Krychol rc
Konto z ograniczeniami
Postów w temacie: 25
Posty: 199
Rejestracja: 09 paź 2017, 12:24
x 4

Re: Klipper kilka pytań.

Post autor: Krychol rc »

Robin doskonale wiem o co Ci chodzi i w Twoim wariancie z przetwornicą i z zasilaczem z 230/5 u mnie, jednakże to nie pozwoli mi uruchomić drukarki zdalnie co mnie niestety nie satysfakcjonuje ponieważ często puszczam wydruki zdalnie (np. w pracy, jeśli stół jest pusty i nie znajduje się na nim żaden wydruk) - po to właśnie był mi octoprint bo równie dobrze mogłem drukować od samego początku z karty SD ;)

Teoretycznie mam jeszcze jedną malinę starą Pi 1B i mogłaby służyć jako załączanie i wyłączanie systemu tylko czy to już nie przerost formy nad treścią ?

Tak więc u mnie obecnie malina ma cały czas zasilanie i steruje ona przekaźnikiem zasilacza drukarki co nigdy nie było problemem w przypadku Marlina.
Awatar użytkownika
Krychol rc
Konto z ograniczeniami
Postów w temacie: 25
Posty: 199
Rejestracja: 09 paź 2017, 12:24
x 4

Re: Klipper kilka pytań.

Post autor: Krychol rc »

Sorry za post pod postem ale nie mogę już edytować.

Co do zalet i wad jakie zauważyłem po tych kilku dniach:

Zalety:
-szybka konfiguracja w cfg
-możliwość pauzowania i anulowania wydruku z wyświetlacza drukarki
-po powrocie do oryginalnej 8-bitowej płytki lepsza praca extrudera na LV8729 i mikrokroku 128

Wady:
-problematyczne łączenie to jest największa wada jeśli trzeba będzie faktycznie uruchamiać najpierw drukarkę później malinę
-brak możliwości wyłączenia danego silnika, wyłącza wszystkie na raz (chyba, że ja gdzieś robię błąd)
-mimo włączonej opcji oświetlenia nie pojawiła się w menu a nie zawsze żeby na chwilę włączyć oświetlenie chce się biec do komputera czy telefonu
-mimo definicji niektórych opcji w cfg niektóre opcje nie działają jak należy (np. wczoraj dopisałem w mcu linijkę baud 250000 a łączyła się na 115200 a dzisiaj przy uruchomieniu nagle było 250000)
Robin
Postów w temacie: 18
Posty: 110
Rejestracja: 19 mar 2020, 16:27
Lokalizacja: Wrocław
x 20

Re: Klipper kilka pytań.

Post autor: Robin »

OctoPod posiada terminal?
Może wystarczy z terminala wpisać RESTART, RESTART_FIRMWARE?
Pomyślę może znajdę jakieś obejście.
Robin
Postów w temacie: 18
Posty: 110
Rejestracja: 19 mar 2020, 16:27
Lokalizacja: Wrocław
x 20

Re: Klipper kilka pytań.

Post autor: Robin »

Krychol rc pisze: -mimo włączonej opcji oświetlenia nie pojawiła się w menu a nie zawsze żeby na chwilę włączyć oświetlenie chce się biec do komputera czy telefonu
..jak nie masz ?! jest w orginalnym menu "Control" >"caselightonoff "
Moenu można dopisać lub zmienić w printer.cfg najlepiej zrobić to w tym pliku bo aktualizacja nie zniszczy ci Twojego własnego.

Kod: Zaznacz cały

[menu __control __caselightonoff]
type: input
name: Case light: {1:3s}
parameter: output_pin.caselight.value
transform:
    choose('OFF','ON')
    choose(0,1)
input_min: 0
input_max: 1
input_step: 1
gcode: SET_PIN PIN=caselight VALUE={2}
Krychol rc
Awatar użytkownika
Krychol rc
Konto z ograniczeniami
Postów w temacie: 25
Posty: 199
Rejestracja: 09 paź 2017, 12:24
x 4

Re: Klipper kilka pytań.

Post autor: Krychol rc »

Rozumiem, że jak to dopiszę w cfg powinno się pojawić na wyświetlaczu ?
Sprawdzę później ponieważ teraz puściłem 8h wydruk.
Co do OctoPoda osiada i zrobiłem już przyciski customowe z przypisanymi RESTART i RESTART_FIRMWARE lecz np. jak wyłączę zasilanie drukarki w Octoprincie nadal widnieje przycisk Disconnect (czyli tak jakby się nie rozłączył) i przed ponownym połączeniem trzeba kliknąć disconnect właczyć zasilanie z PSU Control i dopiero zrobić connect a następnie jak się nie połączy sama dać którąś komendę z powyższych :/
Robin
Postów w temacie: 18
Posty: 110
Rejestracja: 19 mar 2020, 16:27
Lokalizacja: Wrocław
x 20

Re: Klipper kilka pytań.

Post autor: Robin »

Jak to najprościej wytłumaczyć...?
Jeśli funkcja w menu.cfg istnieje i definiujesz w printer.cfg nową o takiej samej nazwie to nowa przykryje starą.
Jeśli definiujesz zupełnie nową to rozszerzy się ilość dostępnych funkcji.
Funkcje przypięte są do kart menu i dlatego należy przedefiniować również kartę.
Załączę moje przedefiniowane menu - większość działa, a jak nie działa to znaczy, że jeszcze nie było sprawdzone.
Może trochę rozjaśni.. na pewne przyszłe pytania, prawdopodobnie nie znam odpowiedzi -uczę się :)

Kod: Zaznacz cały


# Overwrite the main menu, add a 'calibration' submenu
[menu __main]
type: list
name: Main Menu
items:

	__poweroff
	__Tool0
	__Tool1
    __control
    __tune
    __temp
    __filament
    __prepare
    __calibration
    __octoprint
    __sdcard

# [menu __control] 

[menu __control]
type: list
name: Control
items:
    .__shutdown
    .__home
    .__disable
    .__fanonoff
    .__fanspeed
    .__caselightonoff
    .__move_10mm
    .__move_1mm
    .__move_01mm

# This sends a power off command to Octoprint that gets picked up by the 'action commands' plug in
[menu __control __shutdown]
type: command
name: Printer Off
gcode: SET_PIN PIN=shutdown VALUE=0

[menu __poweroff]
type: command
name: Printer Off
gcode: SET_PIN PIN=shutdown VALUE=0

[menu __Tool0]
type: command
name: Hotend Left
gcode: T0

[menu __Tool1]
type: command
name: Hotend Rigth
gcode: T1

[menu __calibration]
type: list
name: Calibration
items:
    __calibration_home_all_axes
    __calibration_qgl
    __calibration_bed_mesh_calibrate
    __calibration_probe_calibrate
    __calibration_probe_accuracy
    __general_firmware_restart

[menu __calibration_accept]
type: command
name: Accept
gcode: ACCEPT

[menu __calibration_abort]
type: command
name: Abort
gcode: ABORT
action: back

[menu __calibration_qgl]
type: command
name: Quad Gantry Level
gcode:
    QUAD_GANTRY_LEVEL 

[menu __calibration_probe_accuracy]
type: command
name: Test accuracy
gcode:
    G28
    G0 X150 Y150 Z10 F6000
    PROBE_ACCURACY 

[menu __calibration_save_config]
type: command
name: Save config
gcode: SAVE_CONFIG

[menu __general_firmware_restart]
type: command
name: Restart firmware
gcode: FIRMWARE_RESTART

[menu __calibration_home_all_axes]
type: command
name: Home XYZ
gcode: G28

[menu __calibration_probe_calibrate]
type: list
show_back: False
name: Adjust Z offset
enter_gcode:
    G28
    G0 X150 Y150 Z10 F6000
items:
    __calibration__toolhead_zpos
    __calibration_probe_calibrate_testz_minus, __calibration_probe_calibrate_testz_plus 
    __calibration_probe_calibrate_testz_minus_minus, __calibration_probe_calibrate_testz_plus_plus
    __calibration_probe_calibrate_testz_minus_1, __calibration_probe_calibrate_testz_plus_1
    __calibration_probe_calibrate_testz_minus_point_1, __calibration_probe_calibrate_testz_plus_point_1
    __calibration_accept
    __calibration_save_config
    __calibration_abort

[menu __calibration__toolhead_zpos]
type: item
width: 16
name: "Z = {0:.3f}"
cursor: \x20
parameter: toolhead.zpos

[menu __calibration_probe_calibrate_testz_minus]
cursor: \x20
type: command
width: 7
name: "   -"
gcode: TESTZ Z=-

[menu __calibration_probe_calibrate_testz_plus]
cursor: \x20
type: command
name: "   +"
width: 7
gcode: TESTZ Z=+

[menu __calibration_probe_calibrate_testz_minus_minus]
cursor: \x20
type: command
name: "   --"
width: 7
gcode: TESTZ Z=--

[menu __calibration_probe_calibrate_testz_plus_plus]
cursor: \x20
type: command
name: "   ++"
width: 7
gcode: TESTZ Z=++

[menu __calibration_probe_calibrate_testz_minus_1]
cursor: \x20
type: command
name: "  -1.0"
width: 7
gcode: TESTZ Z=-1

[menu __calibration_probe_calibrate_testz_plus_1]
cursor: \x20
type: command
name: "  +1.0"
width: 7
gcode: TESTZ Z=+1

[menu __calibration_probe_calibrate_testz_minus_point_1]
cursor: \x20
type: command
name: "  -0.1"
width: 7
gcode: TESTZ Z=-0.1

[menu __calibration_probe_calibrate_testz_plus_point_1]
cursor: \x20
type: command
name: "  +0.1"
width: 7
gcode: TESTZ Z=+0.1

[menu __calibration_bed_mesh_calibrate]
type: deck
name: Generate bed mesh
width: 18
show_back: False
enter_gcode:
    G28
    BED_MESH_CALIBRATE
    SAVE_CONFIG
items:
    __calibration_card_bed_mesh

[menu __calibration_card_bed_mesh]
type: card
name: Calibration card
content:
    "{0}"
    ""
    "   Will reboot"
    "  when complete"
items:
    __calibration_bed_mesh_calibrate_text_1
    
[menu __calibration_bed_mesh_calibrate_text_1]
type: item
name: "  [In progress]"
cursor: \x20

[menu __temp]
type: list
name: Temperature
items:
    .__hotend0_current, .__hotend0_target
    .__hotend1_current, .__hotend1_target
    .__hotbed_current, .__hotbed_target
    .__preheat_abs
    .__preheat_pla
    .__preheat_petg
    .__cooldown

[menu __temp __hotend0_current]
type: item
enable: extruder.is_enabled
name: "Ex0:{0:4.0f} T"
parameter: extruder.temperature

[menu __temp __hotend0_target]
type: input
enable: extruder.is_enabled
name: "{0:4.0f}"
parameter: extruder.target
input_min: 0
input_max: 280
input_step: 1
input_step2: 10
gcode: M104 T0 S{0:.0f}

[menu __temp __hotend1_current]
type: item
enable: extruder1.is_enabled
name: "Ex1:{0:4.0f} T"
parameter: extruder1.temperature

[menu __temp __hotend1_target]
type: input
enable: extruder1.is_enabled
name: "{0:4.0f}"
parameter: extruder1.target
input_min: 0
input_max: 280
input_step: 1
input_step2: 10
gcode: M104 T1 S{0:.0f}

[menu __temp __hotbed_current]
type: item
enable: heater_bed.is_enabled
name: "Bed:{0:4.0f} T"
parameter: heater_bed.temperature

[menu __temp __hotbed_target]
type: input
enable: heater_bed.is_enabled
name: "{0:4.0f}"
parameter: heater_bed.target
input_min: 0
input_max: 115
input_step: 1
input_step2: 10
gcode: M140 S{0:.0f}

[menu __temp __preheat_abs]
type: list
name: Preheat ABS
items:
    .__all
    .__hotend
    .__hotbed

[menu __temp __preheat_abs __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Preheat all
gcode:
    M140 S105
    M104 S235

[menu __temp __preheat_abs __hotend]
type: command
enable: extruder.is_enabled
name: Preheat hotend
gcode: M104 S235

[menu __temp __preheat_abs __hotbed]
type: command
enable: heater_bed.is_enabled
name: Preheat hotbed
gcode: M140 S105

[menu __temp __preheat_pla]
type: list
name: Preheat PLA
items:
    .__all
    .__hotend
    .__hotbed

[menu __temp __preheat_pla __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Preheat all
gcode:
    M140 S60
    M104 S200

[menu __temp __preheat_pla __hotend]
type: command
enable: extruder.is_enabled
name: Preheat hotend
gcode: M104 S200

[menu __temp __preheat_pla __hotbed]
type: command
enable: heater_bed.is_enabled
name: Preheat hotbed
gcode: M140 S60

[menu __temp __preheat_petg]
type: list
name: Preheat PETG
items:
    .__all
    .__hotend
    .__hotbed

[menu __temp __preheat_petg __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Preheat all
gcode:
    M140 S80
    M104 S220

[menu __temp __preheat_petg __hotend]
type: command
enable: extruder.is_enabled
name: Preheat hotend
gcode: M104 S220

[menu __temp __preheat_petg __hotbed]
type: command
enable: heater_bed.is_enabled
name: Preheat hotbed
gcode: M140 S80

[menu __temp __cooldown]
type: list
name: Cooldown
items:
    .__all
    .__hotend
    .__hotbed

[menu __temp __cooldown __all]
type: command
enable: extruder.is_enabled,heater_bed.is_enabled
name: Cooldown all
gcode:
    M104 T0 S0
    M104 T1 S0
    M140 S0

[menu __temp __cooldown __hotend]
type: command
enable: extruder.is_enabled
name: Cooldown hotend
gcode: M104 S0

[menu __temp __cooldown __hotbed]
type: command
enable: heater_bed.is_enabled
name: Cooldown hotbed
gcode: M140 S0

[menu __filament __load]
type: command
name: Load Filament
gcode:
    LOAD_FILAMENT

[menu __filament __unload]
type: command
name: Unload Filament
gcode:
    UNLOAD_FILAMENT

[menu __filament __feed]
type: input
name: Feed Filament: {0:.1f}
parameter: 0
input_step: 1
gcode: 
	M83
	G1 E{0:.1f} F200



### menu prepare ###
[menu __prepare]
type: list
enable: !toolhead.is_printing
name: Prepare
items:
    .__bed_calib
    .__bedprobe
    .__hotend_pid_tuning
    .__hotbed_pid_tuning
    .__host_restart
    .__firmware_restart


[menu __prepare __bed_calib]
type: command
enable: !toolhead.is_printing
name: Gantry Level
gcode: G28
	QUAD_GANTRY_LEVEL
	
	
	
### menu filament ###

[menu __filament]
type: list
name: Filament
items:
    __temp __hotend0_current, __temp __hotend0_target
    __temp __hotend1_current, __temp __hotend1_target
    .__unload
    .__load
    .__feed
niektóre funkcje wymagają makra - wrzycam w całości

Kod: Zaznacz cały

[respond]
default_type: echo

[gcode_macro T0]
gcode:
    ACTIVATE_EXTRUDER EXTRUDER=extruder

[gcode_macro T1]
gcode:
    ACTIVATE_EXTRUDER EXTRUDER=extruder1
	
[homing_override]
gcode:
    BED_MESH_CLEAR
    G90 ; Use absolute position mode
    G1 Z10 F600 ; Move up 10mm
    G28 X 
    G28 Y
    G1 X150 Y140 F6000 ; Change the X and Y coordinates to the center of your print bed
    G28 Z
    G1 Z30 F600; Move up 30mm
    G1 X10 Y10 F6000 ; Change the X and Y coordinates to the left front corner your print bed
set_position_z: 0.0

[quad_gantry_level]
#   Use QUAD_GANTRY_LEVEL to level a gantry.
gantry_corners:
	-43,42
	395,390
points:
	20,20
	20,230
	320,230
	320,20
#   Probe points
speed: 50
horizontal_move_z: 10
retries: 5
retry_tolerance: 0.075
max_adjust: 16


#   Auto Adjustment Routine
[gcode_macro G32]
gcode:
    BED_MESH_CLEAR
    {% if "z" not in printer.toolhead.homed_axes %} ; G28 Home if needed
        G28
    {% endif %}
    M117 Gantry Leveling
    QUAD_GANTRY_LEVEL       ; Level Gantry
    M117 Nozzle Clean
    NOZZLE_CLEAN            ; Clean Nozzle
    M117 Homing
    G28                     ; Home Z with Cleaned Nozzle before printing
    G1 Z10 F3000            ; lift nozzle
############PRINT START/STOP###############
[gcode_macro print_start]
gcode:
	G21  ; set units to mm
	G90  ; use absolute coordinates
	G92 E0.0  ; reset e count
    M140 S{printer.heater_bed.target }                       
    M109 S{printer[printer.toolhead.extruder].target }
    M83                     ; Relative E
    G32                     ; level and clean
    PRIME_LINE
    M117 Printing
#    BED_MESH_PROFILE LOAD=hot  ; load bed mesh
#	G1 X170 Y150 F6000  ; move gantry away from home

[gcode_macro print_end]
gcode:
	G91  							;relative positioning
	G1 E-5.00 F3600  				;retract 5mm of filament
	G1 Z+1.00 X-20.0 Y-20.0 F20000  ;short quick move to disengage from print
	G1 Z+10.00  F20000  			;move Z-Axis 10mm away from part

	G90  				;absolute positioning
	G1 X10 Y300  		; move gantry close to back corner

	G91  				; relative positioning
	G1 E-8.00 F500  	;retract additional filament to prevent oozing

	G90 				;absolute positioning
	M104 S0  			;turn off hotend
	M140 S0  			;turn off heatbed
	M106 S0  			; shut off blower
    M84
	   
#   GET_BED_MESH
[gcode_macro get_bed_mesh]
gcode:
    BED_MESH_CLEAR                  ; Clear bed mesh data
    BED_MESH_PROFILE REMOVE=hot     ; Remove saved mesh
    G32                             ; Auto Adjust
    BED_MESH_CALIBRATE              ; Run Bed Mesh
    BED_MESH_PROFILE SAVE=hot       ; Save Bed Mesh
    SAVE_CONFIG
	
	
[gcode_macro PRIME_LINE]
gcode: 
    SAVE_GCODE_STATE NAME=BEFORE_PRIME
    M117 Prime Line
    {% if "z" not in printer.toolhead.homed_axes %}
        G28                             ;Only G28 Home if needed
    {% endif %}
    G92 E0                              ;Reset Extruder
    G1 Z5.0 F3000                       ;Move Z Axis up
    G1 X1 Y30 Z0.24 F5000.0             ;Move to start position (1,30,.24)
    G1 X1 Y230.0 Z0.24 F1500.0 E20      ;Draw the first 200mm line
    G1 X1.5 Y230.0 Z0.24 F5000.0        ;Move to side a little
    G1 X1.5 Y30 Z0.24 F1500.0 E20       ;Draw the second line
    G92 E0                              ;Reset Extruder
    G1 Z5.0 F3000                       ;Move Z Axis up
    RESTORE_GCODE_STATE NAME=BEFORE_PRIME
	
############ CLEAN NOZZLE ############
[gcode_macro NOZZLE_CLEAN]
gcode:
    SAVE_GCODE_STATE NAME=BEFORE_CLEAN
    {% if "z" not in printer.toolhead.homed_axes %}
        G28                     ; Only G28 Home if needed
    {% endif %}
	G1 Z10 F3000                ; lift nozzle
	G1 X0 Y3 F9000           ; move to nozzle brush
	{% if printer[printer.toolhead.extruder].temperature < 170 and printer[printer.toolhead.extruder].target > 170 %}
		M109 S{printer[printer.toolhead.extruder].target}   
	{% elif printer[printer.toolhead.extruder].temperature < 170 %}
        M109 S170               ; Wait for min E temp
    {% endif %}
    M83                         ; set extruder to relative
    G1 E3 F300                  ; extrude a little to soften tip
    G1 E-4 F300                 ; retract filament 4mm
	G1 Z3.5 F3000               ; move nozzle into brush
	G1 X130 F9000               ; scrub
	G1 X5 F9000                ; scrub
	G1 X130 F9000               ; scrub
	G1 X5 F9000                ; scrub
	G1 X130 F9000               ; scrub
	G1 X5 F9000                ; scrub
	G1 X130 F9000               ; scrub
    G1 X5 F9000                ; scrub
	G1 Z10 F3000                ; lift z 10mm
    RESTORE_GCODE_STATE NAME=BEFORE_CLEAN
##########CHANGE FILAMENT##############
#	Set Temps for  Loading
[gcode_macro loading_temp]
gcode:
	M140 S90  ;set bed temperature and do not wait
	M109 S220  ;set print head temperature and wait

#	Set Temps for ABS Warmup
[gcode_macro warmup_temp]
gcode:
	M140 S90  ;set bed temperature and do not wait
	M109 S190  ;set print head temperature and wait

#	Macro to unload Filament
[gcode_macro unload_filament]
gcode:
    loading_temp
	  M83                            ; set extruder to relative
    G1 E20 F300                    ; extrude a little to soften tip
	G1 E-25 F300
	G1 E-400 F1200
	G1 E-600 F1200
	warmup_temp
	M82

#   Load Filament (Afterburner)
[gcode_macro LOAD_FILAMENT]
gcode:
	M83                            ; set extruder to relative
	G28							;home
	loading_temp  			;set print head temperature and wait
	G1 Z15 F12000				;lift nozzle to 15mm
	G1 X320 Y320 F12000			;move to purge bucket
	G1 E600 F1200
	G1 E400 F300
	warmup_temp  			       ;set print head temperature and wait
	nozzle_clean				;Scrub Nozzle
	G1 Z15 F12000				;lift nozzle to 15mm
	M82

###########CHANGE TOOL#################
#	Macro to end use tool
[gcode_macro end_tool]
gcode: 
	G92 E0 ;reset extruder distance
	G1 F800 E-5 ;short retract
	G1 F2400 X300 Y300 ;move near prime tower
	G1 F2000 E-10 ;long retract for filament removal
	G92 E0 ;reset extruder distance
	G90


#	Macro to use tool0
[gcode_macro use_tool0]
gcode: 
	T0
	G92 E0
	G1 F800 E5 ;short retract
	G1 F2000 E5 ;long retract for filament removal
	G92 E0

#	Macro to use tool
[gcode_macro use_tool1]
gcode: 
	T1
	G92 E0
	G1 F800 E5 ;short retract
	G1 F2000 E5 ;long retract for filament removal
	G92 E0
	
#   Set chamber temp macro (OctoPrint)
[gcode_macro M141]
gcode:
    SET_TEMPERATURE_FAN_TARGET temperature_fan=electronics_bay target={S}
default_parameter_S: 0

#   Lighting Control
[gcode_macro lights_on]
gcode:
    SET_PIN PIN=caselight VALUE=1

[gcode_macro lights_off]
gcode:
    SET_PIN PIN=caselight VALUE=0

#   Chamber Ventilation Control
[gcode_macro vent_on]
gcode:
    M141 S20
    M117 Chamber Vent On

[gcode_macro vent_off]
gcode:
    M141 S70

#   Filament Sensor Testing
#[filament_switch_sensor test]
##switch_pin: !P1.29
#runout_gcode:
 #M118 Runout Event Detected
 #M600 X50 Y10 Z20
 
[gcode_macro M600]
default_parameter_X: 50
default_parameter_Y: 10
default_parameter_Z: 10
gcode:
 G91
 G1 Z{Z}
 G90
 G1 X{X} Y{Y} F3000
 G0 E-50 F4800
Krychol rc
Awatar użytkownika
Krychol rc
Konto z ograniczeniami
Postów w temacie: 25
Posty: 199
Rejestracja: 09 paź 2017, 12:24
x 4

Re: Klipper kilka pytań.

Post autor: Krychol rc »

Dziękuję za naprawdę rzeczową pomoc, jutro sprawdzę wszystko w wolnej chwili między wydrukami, jak na razie nie mam kolejnych pytań sprawdzę obecne :)
Robin
Postów w temacie: 18
Posty: 110
Rejestracja: 19 mar 2020, 16:27
Lokalizacja: Wrocław
x 20

Re: Klipper kilka pytań.

Post autor: Robin »

Krychol rc pisze:Sorry za post pod postem ale nie mogę już edytować.
-mimo definicji niektórych opcji w cfg niektóre opcje nie działają jak należy (np. wczoraj dopisałem w mcu linijkę baud 250000 a łączyła się na 115200 a dzisiaj przy uruchomieniu nagle było 250000)
Nie zawracaj tym Sobie głowy.

"Łączność" działa tak:
Octoprint <----- wirtualny port szeregowy /tmp/printer ------> Klipper <---------fizyczne USB -----------------> płyta drukarki.

Podawane prędkości dotyczą połączenia Octo-klipper, dlatego masz Conected pomimo wyłączonej płyty. Dlatego też są dwa restarty.
Prędkość 112500 w zupełności wystarcza (mniej przesyłanych danych, płytka napewną się łaczy na 25000 ale nie wiem jak to udowodnić).
Pod warunkiem, że masz dobrej jakości i krótki kabel - inaczej będą "zwiechy".
ODPOWIEDZ

Wróć do „Firmware'y i hosty”