[FluidNC Issue#1540] Problem: PWM spindle output broken in v3.9.8

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

Issue #1540 | 状态: 进行中 | 作者: apemann | 创建时间: 2025-08-08


Wiki Search Terms

Spindle PWM

Controller Board

ESP-WROOM-32

Machine Description

Gantry router XYYZ Nema 23, TB6600 drivers, HS320 VFD

Input Circuits


Configuration file

name: "ESP32 TB6600 V1"
board: "ESP-WROOM-32"

stepping: engine: RMT idle_ms: 250 dirdelayus: 1 pulse_us: 2 disabledelayus: 0

axes: sharedstepperdisable_pin: gpio.13:high

x: stepspermm: 21 maxratemmpermin: 2000 accelerationmmper_sec2: 25 maxtravelmm: 1000 homing: # Change to 2 when limit switches connected cycle: 0 mpos_mm: 10 positive_direction: false

motor0: # Change to gpio.34:low:pu when connected limitallpin: NO_PIN stepstick: direction_pin: gpio.14 step_pin: gpio.12 motor1: null_motor:

y: stepspermm: 26 maxratemmpermin: 2000 accelerationmmper_sec2: 25 maxtravelmm: 1000 homing: # Change to 2 when limit switches connected cycle: 0 mpos_mm: 10 positive_direction: false

motor0: # Change to gpio.35:low:pu when connected limitallpin: NO_PIN stepstick: direction_pin: gpio.15 step_pin: gpio.26 motor1: # Change to gpio.35:low:pu when connected limitallpin: NO_PIN stepstick: direction_pin: gpio.21:low step_pin: gpio.25

z: stepspermm: 200 maxratemmpermin: 2000 accelerationmmper_sec2: 25 maxtravelmm: 1000 homing: # Change to 1 when limit switches connected cycle: 0 mpos_mm: 10 positive_direction: true

motor0: # Change to gpio.32:low:pu when connected limitallpin: NO_PIN stepstick: direction_pin: gpio.33 step_pin: gpio.27 motor1: null_motor:

PWM: pwm_hz: 1000 output_pin: gpio.22 enablepin: NOPIN directionpin: NOPIN disablewiths0: false s0withdisable: true spinup_ms: 0 spindown_ms: 0 speed_map: 0=0% 24000=100% offonalarm: false

spi: miso_pin: gpio.19 mosi_pin: gpio.23 sck_pin: gpio.18

sdcard: cs_pin: gpio.5 carddetectpin: NO_PIN

probe:

pin: gpio.4:low:pu

door:

pin: NO_PIN

Startup Messages

No errors

User Interface Software

No response

What happened?

In the latest firmware, no PWM signals are output from the pin specified as output_pin when sending spindle commands e.g. M3 S12000. Tried different pins and PWM config to be sure.
Tested by disconnecting PWM to AV module and connecting oscilloscope probe directly to output pin (grounded to board).

Switched to v3.8.3 and the problem disappeared, using the same config. I don’t know in which version the regression was introduced as I haven’t had time to test intermediate releases.

There were no error messages. All commands executed successfully, just no PWM signal output.

GCode File

No response

Other Information

No response

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

喜欢 (0)