Skip to content

Commit

Permalink
Update kcm.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
coprint authored Jan 27, 2025
1 parent a3b662a commit a2d3f76
Showing 1 changed file with 57 additions and 27 deletions.
84 changes: 57 additions & 27 deletions kcm.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
[mcu cp_kcm]
serial: /dev/serial/by-path/platform-xhci-hcd.3.auto-usb-0:1.2.1:1.0
[mcu cp_Driver]
serial: /dev/serial/by-path/platform-xhci-hcd.3.auto-usb-0:1.2.1:1.0
restart_method: command
baud: 250000


[duplicate_pin_override]
pins: cp_Driver:PC4,cp_Driver:PC5,cp_Driver:PC10, cp_Driver:PC12,cp_Driver:PC11



[temperature_sensor cp_Driver_temp]
sensor_type: temperature_mcu
sensor_mcu: cp_Driver
min_temp: -100
max_temp: 900

[gcode_macro T_ALL]
gcode:
Expand All @@ -10,6 +23,7 @@ gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=ex4 MOTION_QUEUE=extruder



[gcode_macro T0]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=ex1 MOTION_QUEUE=extruder
Expand All @@ -21,22 +35,25 @@ gcode:
# SYNC_EXTRUDER_MOTION EXTRUDER=ex6 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex7 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex8 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex9, ex10, ex11, ex12
#When ecm2 is active, uncomment the lines ex9, ex10, ex11, ex12
# SYNC_EXTRUDER_MOTION EXTRUDER=ex9 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex10 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex11 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex12 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex13, ex14, ex15, ex16
#When ecm3 is active, uncomment the lines ex13, ex14, ex15, ex16
# SYNC_EXTRUDER_MOTION EXTRUDER=ex13 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex14 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex15 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex16 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex17, ex18, ex19, ex20
#When ecm4 is active, uncomment the lines ex17, ex18, ex19, ex20
# SYNC_EXTRUDER_MOTION EXTRUDER=ex17 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex18 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex19 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex20 MOTION_QUEUE=




[gcode_macro T1]
gcode:
SYNC_EXTRUDER_MOTION EXTRUDER=ex1 MOTION_QUEUE=
Expand All @@ -48,17 +65,17 @@ gcode:
# SYNC_EXTRUDER_MOTION EXTRUDER=ex6 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex7 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex8 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex9, ex10, ex11, ex12
#When ecm2 is active, uncomment the lines ex9, ex10, ex11, ex12
# SYNC_EXTRUDER_MOTION EXTRUDER=ex9 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex10 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex11 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex12 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex13, ex14, ex15, ex16
#When ecm3 is active, uncomment the lines ex13, ex14, ex15, ex16
# SYNC_EXTRUDER_MOTION EXTRUDER=ex13 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex14 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex15 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex16 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex17, ex18, ex19, ex20
#When ecm4 is active, uncomment the lines ex17, ex18, ex19, ex20
# SYNC_EXTRUDER_MOTION EXTRUDER=ex17 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex18 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex19 MOTION_QUEUE=
Expand All @@ -76,17 +93,17 @@ gcode:
# SYNC_EXTRUDER_MOTION EXTRUDER=ex6 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex7 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex8 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex9, ex10, ex11, ex12
#When ecm2 is active, uncomment the lines ex9, ex10, ex11, ex12
# SYNC_EXTRUDER_MOTION EXTRUDER=ex9 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex10 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex11 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex12 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex13, ex14, ex15, ex16
#When ecm3 is active, uncomment the lines ex13, ex14, ex15, ex16
# SYNC_EXTRUDER_MOTION EXTRUDER=ex13 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex14 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex15 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex16 MOTION_QUEUE=
#When ecm1 is active, uncomment the lines ex17, ex18, ex19, ex20
#When ecm4 is active, uncomment the lines ex17, ex18, ex19, ex20
# SYNC_EXTRUDER_MOTION EXTRUDER=ex17 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex18 MOTION_QUEUE=
# SYNC_EXTRUDER_MOTION EXTRUDER=ex19 MOTION_QUEUE=
Expand Down Expand Up @@ -122,46 +139,59 @@ gcode:






[extruder_stepper ex1]


extruder:extruder
step_pin:cp_kcm:PC11
dir_pin: !cp_kcm:PC10
enable_pin: !cp_kcm:PC12

step_pin:cp_Driver:PC11
dir_pin: !cp_Driver:PC10
enable_pin: !cp_Driver:PC12
microsteps: 16
rotation_distance: 7.807
rotation_distance: 7.8886460365729


[extruder_stepper ex2]


extruder:extruder
step_pin: cp_kcm:PA8
dir_pin: !cp_kcm:PC9
enable_pin: !cp_kcm:PC8

step_pin: cp_Driver:PA8
dir_pin: !cp_Driver:PC9
enable_pin: !cp_Driver:PC8

microsteps: 16
rotation_distance: 7.955
rotation_distance: 7.8897573746164


[extruder_stepper ex3]


extruder:extruder
step_pin: cp_kcm:PB15
dir_pin: !cp_kcm: PC6
enable_pin: !cp_kcm:PC7

step_pin: cp_Driver:PB15
dir_pin: !cp_Driver: PC6
enable_pin: !cp_Driver:PC7
microsteps: 16
rotation_distance: 7.807
rotation_distance: 7.8059465343747



[extruder_stepper ex4]


extruder: extruder
step_pin: cp_kcm:PB14
dir_pin: !cp_kcm:PB12
enable_pin: !cp_kcm:PB13

step_pin: cp_Driver:PB14
dir_pin: !cp_Driver:PB12
enable_pin: !cp_Driver:PB13
microsteps: 16
rotation_distance: 7.807
rotation_distance: 7.8429902512632





0 comments on commit a2d3f76

Please sign in to comment.