klipper-config/laser-cnc/lasercnc.cfg

97 lines
1.5 KiB
INI
Raw Normal View History

2022-01-04 12:31:55 +00:00
[stepper_x]
step_pin: gpio11
dir_pin: !gpio10
enable_pin: !gpio12
microsteps: 16
rotation_distance: 40
endstop_pin: ^gpio4
position_endstop: 0
position_max: 235
homing_speed: 50
[tmc2209 stepper_x]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 0
run_current: 0.8
stealthchop_threshold: 0
[stepper_y]
step_pin: gpio6
dir_pin: !gpio5
enable_pin: !gpio7
microsteps: 16
rotation_distance: 40
endstop_pin: ^gpio3
position_endstop: 0
position_max: 235
homing_speed: 50
[tmc2209 stepper_y]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 2
run_current: 0.8
stealthchop_threshold: 0
2022-01-04 17:55:20 +00:00
#No Z Axis
[homing_override]
SET_KINEMATIC_POSITION: Z=0
G28 X Y
# Z Axis is not used
[stepper_z]
step_pin: gpio19
dir_pin: gpio28
enable_pin: !gpio2
microsteps: 16
rotation_distance: 8
endstop_pin: ^gpio25
position_endstop: 0.0
2022-01-04 17:58:22 +00:00
position_max: 0
2022-01-04 17:55:20 +00:00
[tmc2209 stepper_z]
uart_pin: gpio9
tx_pin: gpio8
uart_address: 1
run_current: 0.580
stealthchop_threshold: 999999
2022-01-04 12:31:55 +00:00
[fan]
pin: gpio17
[output_pin laser]
pin: gpio18
pwm: True
hardware_pwm: True
cycle_time: 0.001
shutdown_value: 0
maximum_mcu_duration: 5
2022-01-04 17:55:20 +00:00
[fan controller_fan]
2022-01-04 12:31:55 +00:00
pin: gpio20
[mcu]
serial: /dev/serial/by-id/usb-Klipper_Klipper_firmware_12345-if00
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
2022-01-04 17:55:20 +00:00
max_z_accel: 100
[gcode_macro M3]
gcode:
{% set S = params.S|default(0.0)|float %}
SET_PIN PIN=laser VALUE={S / 255.0}
[gcode_macro M4]
gcode:
{% set S = params.S|default(0.0)|float %}
SET_PIN PIN=laser VALUE={S / 255.0}
[gcode_macro M5]
gcode:
SET_PIN PIN=laser VALUE=0