开源改变世界!!

Smoothieware:配置文档 #852

推推 grbl 1年前 (2023-01-27) 93次浏览
关闭
guillaume-rico 打开了这个问题 2020 年 1 月 19 日 · 0 条评论
关闭

Smoothieware:配置文档#852

guillaume-rico 打开了这个问题 2020 年 1 月 19 日 · 0 条评论

注释

Smoothieware:配置文档 #852
贡献者

集成 pull-request #850 后,LaserGRBL 将与 smoothieware 兼容。
在文档中,您可以添加我的配置示例吗?
我描述下面的代码:
在 smoothieware 配置文件中,有必要定义两个部分:

  • 激光部分
  • 和一个“开关”部分

激光部分看起来像这样(以 SKR 1.3 板为例,伺服引脚上的 LaserPWM):
laser_module_enable true # false
laser_module_pin 2.0 # this pin will be PWMed to control the laser. Only P2.0 - P2.5
# can be used since laser requires hardware PWM
laser_module_max_power 1 # this is the maximum duty cycle that will be applied to the laser
laser_module_tickle_power 0 # this duty cycle will be used for travel moves to keep the laser
# active without actually burning
laser_module_pwm_period 20 # this sets the pwm frequency as the period in microseconds

“开关”部分看起来像这样(SKR 1.3 板示例,伺服引脚上的 LaserPWM):
switch.laser.enable true # False or true
switch.laser.input_on_command M3 # M-code
switch.laser.input_off_command M5 # M-code
switch.laser.output_pin 2.0 # Pin
switch.laser.output_type hwpwm # PWM output settable with S parameter in the input_on_comand
switch.laser.max_pwm 255 # Set max pwm for the pin default is 255
switch.laser.pwm_period_ms 1 # Set max pwm for the pin default is 255
switch.laser.startup_state false

我的conf文件在附件
config.txt中