Update 'laser-cnc/lasercnc-crealityboard.cfg'

This commit is contained in:
Siwat Sirichai 2022-01-09 16:51:39 +07:00
parent 37b4cb6b93
commit c4599af067
1 changed files with 46 additions and 8 deletions

View File

@ -45,26 +45,64 @@ max_z_accel: 100
[mcu] [mcu]
serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH06OETN-if00-port0 serial: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AH06OETN-if00-port0
[mcu uno] [mcu due]
serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__0043_7583931393035140B1C0-if00 serial: /dev/serial/by-id/usb-Arduino__www.arduino.cc__Arduino_Due_Prog._Port_857353136323516170E0-if00
[output_pin laser] [output_pin laser_en]
pin: uno:PD3 pin: due:PB25 #D2
pwm: True pwm: True
hardware_pwm: True hardware_pwm: True
cycle_time: 0.001
shutdown_value: 0 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
[gcode_macro M3] [gcode_macro M3]
gcode: gcode:
{% set S = params.S|default(0.0)|float %} {% set S = params.S|default(0.0)|float %}
SET_PIN PIN=laser VALUE={S / 255.0} {% 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}
[gcode_macro M4] [gcode_macro M4]
gcode: gcode:
{% set S = params.S|default(0.0)|float %} {% set S = params.S|default(0.0)|float %}
SET_PIN PIN=laser VALUE={S / 255.0} SET_PIN PIN=laser_en VALUE=1.0
SET_PIN PIN=laser_pwr VALUE={S / 255.0}
[gcode_macro M5] [gcode_macro M5]
gcode: gcode:
SET_PIN PIN=laser VALUE=0 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