klipper-config/laser-cnc/lasercnc-crealityboard.cfg

76 lines
1.3 KiB
INI

# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PD7
dir_pin: !PC5
enable_pin: !PD6
microsteps: 16
rotation_distance: 20
endstop_pin: ^PC2
position_endstop: 0
position_max: 594
homing_speed: 50
[stepper_y]
step_pin: PC6
dir_pin: PC7
enable_pin: !PD6
microsteps: 16
rotation_distance: 20
endstop_pin: ^PC3
position_endstop: 0
position_max: 407
homing_speed: 50
[homing_override]
gcode:
G28 X Y
SET_KINEMATIC_POSITION Z=0
[stepper_z]
step_pin: PB3
dir_pin: PB2
enable_pin: !PA5
microsteps: 16
rotation_distance: 8
endstop_pin: ^PC4
position_endstop: 0.0
position_max: 250
[output_pin laser]
pin: due:PC28
pwm: True
hardware_pwm: True
cycle_time: 0.001
shutdown_value: 0
maximum_mcu_duration: 1
[mcu]
serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH06OETN-if00-port0
[mcu host]
serial: /tmp/klipper_host_mcu
[mcu due]
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_7573630323635171A112-if00
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
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