[FluidNC Issue#1529] Problem: Can not set properly param steps_per_mm for tiny lead screw

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

Issue #1529 | 状态: 已关闭 | 作者: tomasz90 | 创建时间: 2025-07-23


Wiki Search Terms

stepspermm

Controller Board

DLC32

Machine Description

The ANT CNC

Input Circuits


Configuration file

board: MKS-DLC32 V2.1
name: K40 Laser
meta: (01.01.2022) by Skorpi
kinematics: {}
stepping:
  engine: I2S_STATIC
  idle_ms: 255
  pulse_us: 4
  dirdelayus: 1
  disabledelayus: 0
axes:
  sharedstepperdisable_pin: i2so.0
  x:
    stepspermm: 80.09
    maxratemmpermin: 12000
    accelerationmmper_sec2: 300
    maxtravelmm: 135
    soft_limits: true
    homing:
      cycle: 1
      positive_direction: false
      mpos_mm: 0
      seekmmper_min: 800
      feedmmper_min: 200
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.36
      hard_limits: false
      pulloff_mm: 2
      stepstick:
        step_pin: I2SO.1
        direction_pin: I2SO.2:low
      limitpospin: NO_PIN
      limitallpin: NO_PIN
  y:
    stepspermm: 80.09
    maxratemmpermin: 18000
    accelerationmmper_sec2: 1500
    maxtravelmm: 155
    soft_limits: true
    homing:
      cycle: 1
      positive_direction: true
      mpos_mm: 0
      seekmmper_min: 800
      feedmmper_min: 200
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.35
      hard_limits: false
      pulloff_mm: 2
      stepstick:
        step_pin: I2SO.5
        direction_pin: I2SO.6:low
      limitpospin: NO_PIN
      limitallpin: NO_PIN
  z:
    stepspermm: 5000
    maxratemmpermin: 12000
    accelerationmmper_sec2: 500
    maxtravelmm: 1000
    soft_limits: true
    homing:
      cycle: 0
      positive_direction: true
      mpos_mm: 0
      seekmmper_min: 800
      feedmmper_min: 1000
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.34
      hard_limits: false
      pulloff_mm: 10
      stepstick:
        step_pin: I2SO.3
        direction_pin: I2SO.4
      limitpospin: NO_PIN
      limitallpin: NO_PIN
i2so:
  bck_pin: gpio.16
  data_pin: gpio.21
  ws_pin: gpio.17
spi:
  miso_pin: gpio.12
  mosi_pin: gpio.13
  sck_pin: gpio.14
sdcard:
  cs_pin: gpio.15
  carddetectpin: NO_PIN
control:
  safetydoorpin: NO_PIN
  resetpin: NOPIN
  feedholdpin: NO_PIN
  cyclestartpin: NO_PIN
  macro0_pin: gpio.33:low:pu
  macro1pin: NOPIN
  macro2pin: NOPIN
  macro3pin: NOPIN
macros:
  macro0: $SD/Run=lasertest.gcode
  macro1: $SD/Run=home.gcode
coolant:
  floodpin: NOPIN
  mistpin: NOPIN
  delay_ms: 0
probe:
  pin: gpio.22
  checkmodestart: true
Laser:
  pwm_hz: 5000
  output_pin: gpio.32
  enable_pin: I2SO.7
  disablewiths0: false
  s0withdisable: false
  tool_num: 0
  speed_map: 0=0.000% 0=12.500% 1700=100.000%
user_outputs:
  analog0pin: NOPIN
  analog1pin: NOPIN
  analog2pin: NOPIN
  analog3pin: NOPIN
  analog0_hz: 5000
  analog1_hz: 5000
  analog2_hz: 5000
  analog3_hz: 5000
  digital0pin: NOPIN
  digital1pin: NOPIN
  digital2pin: NOPIN
  digital3pin: NOPIN
start:
  must_home: false

Startup Messages

ERROR: Critical error in main_init: Stepping rate 1000000 steps/sec exceeds the maximum rate
125000]

User Interface Software

No response

What happened?

I have small lead screw 4.76mm which I need to set for about 5000 steps per mm. I am not able to do it, because I am getting the following error: ERROR: Critical error in main_init: Stepping rate 1000000 steps/sec exceeds the maximum rate
125000]
Board is not booting. Right now when I set 500 steps per mm Z axis is moving 1mm when I move it by 10mm in the web interface.

GCode File

No response

Other Information

Image


评论 (2)

#1 – tomasz90 于 2025-07-23

Solved by decreasing maxratemmpermin


#2 – MitchBradley 于 2025-07-23

You could also try setting pulse_us to 1. That increases the maximum pulse rate to 500000 pulses per second. Earlier versions of FluidNC could not pulse that fast on I2S, but recent versions can.

Another parameter you might be able to adjust is the microstepping level of your drivers. Since you did not tell use what drivers you are using, I cannot say for sure how to do that. It is rarely necessary to use high microstepping levels for fine pitch screws.


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

喜欢 (0)