[FluidNC Issue#1513] Problem: G0 is turning off the spindle PWM

未分类 bolang 4个月前 (10-14) 38次浏览

Issue #1513 | 状态: 已关闭 | 作者: AntonioFromBrazil | 创建时间: 2025-06-19


Wiki Search Terms

G0 command is turning off the spindle PWM. This is boring since some softwares such inkscape/lasertools generate G0 commands to move axis… Is there anyway to avoid that ? Thanks

Controller Board

I am using a custom controller with ESP32 wroom. The spindle PWM is working ok. The problem is only that it is undesired turned off with G0 move axes command…

Machine Description

The apllication is a homemade styrofoam cutter. The spindle PWM is used to warm up the niquelcrome wire

Input Circuits


Configuration file

name: styrofoam cutter
board: ESP32 Dev Controller V4
stepping:
  engine: RMT
  idle_ms: 250
  dirdelayus: 0
  pulse_us: 30
  disabledelayus: 0
axes:
  x:
    stepspermm: 200
    maxratemmpermin: 600
    accelerationmmper_sec2: 10
    maxtravelmm: 300
    homing:
      cycle: 1
      mpos_mm: 5
      positive_direction: false
    motor0:
      limitallpin: gpio.17:pu
      limitnegpin: NO_PIN
      limitpospin: NO_PIN
      pulloff_mm: 5
      stepstick:
        step_pin: gpio.12
        direction_pin: gpio.14
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      hard_limits: false
  y:
    stepspermm: 200
    maxratemmpermin: 600
    accelerationmmper_sec2: 10
    maxtravelmm: 200
    homing:
      cycle: 1
      mpos_mm: 5
      positive_direction: false
    motor0:
      limitallpin: gpio.4:pu
      limitnegpin: NO_PIN
      limitpospin: NO_PIN
      pulloff_mm: 5
      stepstick:
        step_pin: gpio.26
        direction_pin: gpio.15
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      hard_limits: false
  z:
    stepspermm: 200
    maxratemmpermin: 600
    accelerationmmper_sec2: 10
    maxtravelmm: 200
    homing:
      cycle: 1
      mpos_mm: -5
      positive_direction: true
    motor0:
      limitallpin: gpio.16:pu
      limitnegpin: NO_PIN
      limitpospin: NO_PIN
      stepstick:
        step_pin: gpio.27
        direction_pin: gpio.33
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      hard_limits: false
      pulloff_mm: 5
  homing_runs: 1
  sharedstepperdisable_pin: gpio.13:pu
  sharedstepperresetpin: NOPIN
spi:
  miso_pin: gpio.19
  mosi_pin: gpio.23
  sck_pin: gpio.18
sdcard:
  cs_pin: gpio.5
  carddetectpin: NO_PIN
coolant:
  flood_pin: gpio.25
  mist_pin: gpio.21
start:
  must_home: false
  deactivate_parking: false
Laser:
  pwm_hz: 1000
  disablewiths0: true
  s0withdisable: true
  output_pin: gpio.2
  enable_pin: gpio.0
  offonalarm: true
  speed_map: 0=0.000% 0=0.0% 100=100.000%

Startup Messages

$SS
[MSG:INFO: FluidNC v3.9.7 https://github.com/bdring/FluidNC]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty]
[MSG:INFO: Local filesystem type is littlefs]
[MSG:INFO: Configuration file:configCortadorV3.yaml]
[MSG:INFO: Machine Controlador do cortador de isopor Versão 3]
[MSG:INFO: Board ESP32 Dev Controller V4]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cspin:gpio.5:pd detect:NOPIN freq:8000000]
[MSG:INFO: Stepping:RMT Pulse:30us Dsbl Delay:0us Dir Delay:0us Idle Delay:250ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.13:pu]
[MSG:INFO: Axis X (5.000,175.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.12 Dir:gpio.14 Disable:NO_PIN]
[MSG:INFO:  All Limit gpio.17:pu]
[MSG:INFO: Axis Y (5.000,185.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.26 Dir:gpio.15 Disable:NO_PIN]
[MSG:INFO:  All Limit gpio.4:pu]
[MSG:INFO: Axis Z (-15.000,-5.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.27 Dir:gpio.33 Disable:NO_PIN]
[MSG:INFO:  All Limit gpio.16:pu]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Connecting to STA SSID:Hortencia148]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is 192.168.15.99]
[MSG:INFO: WiFi on]
[MSG:INFO: Start mDNS with hostname:http://fluidnc.local/]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
[MSG:INFO: Laser Ena:gpio.0 Out:gpio.2 Freq:1000Hz Period:255]
[MSG:INFO: Flood coolant gpio.25]
[MSG:INFO: Mist coolant gpio.21]
ok

User Interface Software

Candle

What happened?

na

GCode File

na

Other Information

na


评论 (4)

#1 – bdring 于 2025-06-19

That is normal behavior for a laser. You want it off for rapid moves.

Change to the PWM spindle.


#2 – AntonioFromBrazil 于 2025-06-19

Is there anyway to keep the spindle PWM on during G0 movements ? Tks


#3 – bdring 于 2025-06-19

Don’t use the laser config. Use a PWM config.

http://wiki.fluidnc.com/en/config/config_spindles#pwm


#4 – AntonioFromBrazil 于 2025-06-19

Bingo…. Now the PWM is running despite Gn commands !!! Thanks a lot


原始Issue: https://github.com/bdring/FluidNC/issues/1513

喜欢 (0)