klipper-config/laser-cnc/lasercnc.cfg

130 lines
2.2 KiB
INI
Raw Permalink Normal View History

2022-01-08 04:13:49 +00:00
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
2022-01-17 15:48:55 +00:00
rotation_distance: 20.30075
2022-01-08 04:13:49 +00:00
endstop_pin: ^PC0
position_endstop: 0
2022-01-09 09:55:03 +00:00
position_max: 594
2022-01-08 04:13:49 +00:00
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.8
2022-01-09 09:55:03 +00:00
stealthchop_threshold: 0
2022-01-08 04:13:49 +00:00
[stepper_y]
step_pin: PB10
dir_pin: !PB2
enable_pin: !PB11
microsteps: 16
2022-01-17 15:48:55 +00:00
rotation_distance: 20.29418
2022-01-08 04:13:49 +00:00
endstop_pin: ^PC1
2022-01-09 09:55:03 +00:00
position_endstop: 407
position_max: 407
2022-01-08 04:13:49 +00:00
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
uart_address: 2
run_current: 0.8
2022-01-09 09:55:03 +00:00
stealthchop_threshold: 0
2022-01-08 04:13:49 +00:00
2022-01-17 15:48:55 +00:00
[homing_override]
gcode:
G28 X Y
2022-01-08 04:13:49 +00:00
[stepper_z]
step_pin: PB0
dir_pin: PC5
enable_pin: !PB1
microsteps: 16
rotation_distance: 8
endstop_pin: ^PC2
2022-01-09 09:55:03 +00:00
position_endstop: 0.0
position_max: 250
2022-01-08 04:13:49 +00:00
[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
uart_address: 1
run_current: 0.580
stealthchop_threshold: 999999
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
2022-01-09 09:55:03 +00:00
[mcu]
2022-01-09 09:56:20 +00:00
serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_35FFD3054254393930531857-if00
2022-01-08 04:13:49 +00:00
2022-01-09 09:55:03 +00:00
[mcu due]
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_857353136323516170E0-if00
[output_pin laser_en]
pin: due:PB25 #D2
pwm: True
hardware_pwm: True
shutdown_value: 0
[output_pin laser_pwr]
pin: due:PC28 #D3
pwm: True
hardware_pwm: True
cycle_time: 0.00006
shutdown_value: 0
[output_pin compressor]
pin: due:PC22 #D8
pwm: True
hardware_pwm: True
shutdown_value: 0
[fan_generic vent]
pin: due:PC21 #D9
hardware_pwm: True
shutdown_speed: 1.0
[virtual_sdcard]
path: ~/.octoprint/uploads/
[respond]
default_type: echo
2022-01-08 04:13:49 +00:00
[gcode_macro M3]
gcode:
{% set S = params.S|default(0.0)|float %}
2022-01-09 09:55:03 +00:00
{% if S == 0.0 %}
SET_PIN PIN=laser_en VALUE=0.0
{% else %}
SET_PIN PIN=laser_en VALUE=1.0
{% endif %}
SET_PIN PIN=laser_pwr VALUE={S / 255.0}
2022-01-08 04:13:49 +00:00
[gcode_macro M4]
gcode:
{% set S = params.S|default(0.0)|float %}
2022-01-09 09:55:03 +00:00
SET_PIN PIN=laser_en VALUE=1.0
SET_PIN PIN=laser_pwr VALUE={S / 255.0}
2022-01-08 04:13:49 +00:00
[gcode_macro M5]
gcode:
2022-01-09 09:55:03 +00:00
SET_PIN PIN=laser_en VALUE=0.0
SET_PIN PIN=laser_pwr VALUE=0.0
[gcode_macro M8]
gcode:
SET_PIN PIN=compressor VALUE=1.0
[gcode_macro M9]
gcode:
SET_PIN PIN=compressor VALUE=0.0