[FluidNC Issue#1407] Homing Z problem

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

Issue #1407 | 状态: 已关闭 | 作者: FMD14 | 创建时间: 2024-12-18


Wiki Search Terms

Homing Z

Controller Board

DLC MKS 32 V2.1

Machine Description

Laser corexy et z Neje 30w

Input Circuits

No response

Configuration file

board: MKS-DLC32 V2.1
name: CoreXY Laser NJE 30W
meta: 06/11/2024 FMD14
kinematics:
  corexy:
stepping:
  engine: I2S_STATIC
  idle_ms: 0
  pulse_us: 4
  dirdelayus: 1
  disabledelayus: 0
axes:
  sharedstepperdisable_pin: i2so.0
  x:
    stepspermm: 80
    maxratemmpermin: 25000
    accelerationmmper_sec2: 3200
    maxtravelmm: 520
    soft_limits: true
    homing:
      cycle: 1
      positive_direction: false
      mpos_mm: 0
      feedmmper_min: 300
      seekmmper_min: 5000
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.35:low
      hard_limits: true
      pulloff_mm: 5
      stepstick:
        step_pin: i2so.1
        direction_pin: i2so.2:low
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      limitpospin: NO_PIN
      limitallpin: NO_PIN
  y:
    stepspermm: 80
    maxratemmpermin: 25000
    accelerationmmper_sec2: 3200
    maxtravelmm: 550
    soft_limits: true
    homing:
      cycle: 2
      positive_direction: false
      mpos_mm: 0
      feedmmper_min: 300
      seekmmper_min: 5000
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.36:low
      hard_limits: true
      pulloff_mm: 5
      stepstick:
        step_pin: i2so.5
        direction_pin: i2so.6:low
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      limitpospin: NO_PIN
      limitallpin: NO_PIN
  z:
    stepspermm: 80
    maxratemmpermin: 1200
    accelerationmmper_sec2: 500
    maxtravelmm: 30
    soft_limits: true
    homing:
      cycle: 3
      positive_direction: false
      mpos_mm: 0
      feedmmper_min: 300
      seekmmper_min: 1000
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitnegpin: gpio.34:low
      hard_limits: false
      pulloff_mm: 1
      stepstick:
        step_pin: i2so.3
        direction_pin: i2so.4:low
        disablepin: NOPIN
        ms1pin: NOPIN
        ms2pin: NOPIN
        ms3pin: NOPIN
      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:pu:low
  macro1pin: NOPIN
  macro2pin: NOPIN
  macro3pin: NOPIN
  faultpin: NOPIN
  estoppin: NOPIN
macros:
  macro0: $SD/Run=lasertest.gcode
  macro1: $SD/Run=home.gcode
coolant:
  floodpin: NOPIN
  mist_pin: gpio.04:low
  delay_ms: 0
probe:
  pin: gpio.22
  checkmodestart: true
  toolsetterpin: NOPIN
Laser:
  pwm_hz: 5000
  output_pin: gpio.32
  enable_pin: i2so.7
  disablewiths0: false
  s0withdisable: false
  tool_num: 0
  speed_map: 0=0.000%  1000=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

rbl 3.9 [FluidNC v3.9.3 (wifi) '$' for help]
[MSG:INFO: websocket auto report interval set to 300 ms]
ets Jun  8 2016 00:22:57

rst:0x1 (POWERONRESET),boot:0x17 (SPIFASTFLASHBOOT)
configsip: 0, SPIWP:0xee
clkdrv:0x00,qdrv:0x00,ddrv:0x00,cs0drv:0x00,hddrv:0x00,wpdrv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
[MSG:INFO: uart_channel0 created]
[MSG:RST]
[MSG:INFO: FluidNC v3.9.3 https://github.com/bdring/FluidNC]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.7-dirty]
[MSG:INFO: Local filesystem type is spiffs]
[MSG:INFO: Configuration file:Corexy112024.yaml]
[MSG:INFO: Machine CoreXY Laser NJE 30W]
[MSG:INFO: Board MKS-DLC32 V2.1]
[MSG:INFO: I2SO BCK:gpio.16 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.14 MOSI:gpio.13 MISO:gpio.12]
[MSG:INFO: SD Card cspin:gpio.15 detect:NOPIN freq:8000000]
[MSG:INFO: Stepping:I2S_STATIC Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:0ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable I2SO.0]
[MSG:INFO: Axis X (0.000,520.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.1 Dir:I2SO.2:low Disable:NO_PIN]
[MSG:INFO:  X Neg Limit gpio.35:low]
[MSG:INFO: Axis Y (0.000,550.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.5 Dir:I2SO.6:low Disable:NO_PIN]
[MSG:INFO:  Y Neg Limit gpio.36:low]
[MSG:INFO: Axis Z (0.000,30.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.3 Dir:I2SO.4:low Disable:NO_PIN]
[MSG:INFO:  Z Neg Limit gpio.34:low]
[MSG:INFO: macro0_pin gpio.33:low:pu]
[MSG:INFO: Kinematic system: CoreXY]
[MSG:INFO: Connecting to STA SSID:Freebox-C30E80]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connecting...]
[MSG:INFO: Connected - IP is 192.168.1.52]
[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:I2SO.7 Out:gpio.32 Freq:5000Hz Period:8191]
[MSG:INFO: Mist coolant gpio.4:low]
[MSG:INFO: Probe gpio.22]

Grbl 3.9 [FluidNC v3.9.3 (wifi) '$' for help]
ok
[VER:3.9 FluidNC v3.9.3:]
[OPT:MPHS]
[MSG:Machine: CoreXY Laser NJE 30W]
[MSG:Mode=STA:SSID=Freebox-C30E80:Status=Connected:IP=192.168.1.52:MAC=0C-8B-95-1B-E2-2C]
ok

Grbl 3.9 [FluidNC v3.9.3 (wifi) '$' for help]

User Interface Software

No response

What happened?

$hz

[MSG:INFO: ALARM: Homing Fail Approach]
ALARM:9

ok

Here is the error message the motor runs a little then the error message

!IMG20241218143335

GCode File

No response

Other Information

No response


评论 (10)

#1 – bdring 于 2024-12-18

You did not say what happened other than the alarm

Your config section for the Z tells the machine to move down ( positivedirection: false) 33 mm (maxtravelmm: 30 * seekscaler: 1.1) to find the Z homing switch. It looks like your switch is mounted in positive Z.

yaml
z:
stepspermm: 80
maxratemmpermin: 1200
accelerationmmper_sec2: 500
maxtravelmm: 30
soft_limits: true
homing:
cycle: 3
positive_direction: false
mpos_mm: 0
feedmmper_min: 300
seekmmper_min: 1000
settle_ms: 500
seek_scaler: 1.1
feed_scaler: 1.1


#2 – FMD14 于 2024-12-18

stepspermm: 80
maxratemmpermin: 1200
accelerationmmper_sec2: 500
maxtravelmm: 30
soft_limits: true
homing:
cycle: 3
positive_direction: true
mpos_mm: 0
feedmmper_min: 300
seekmmper_min: 1000
settle_ms: 500
seek_scaler: 1.1
feed_scaler: 1.1

I just changed it’s the same
Can we run the engine without the safety devices?


#3 – MitchBradley 于 2024-12-18

Does the motor run in the correct direction – toward the switch?

If you issue a motion command like G0 Z10, does the z axis move the correct distance and direction (10 mm upward for that command)?


#4 – MitchBradley 于 2024-12-18

You can turn off soft limits with soft_limits: false. Is that what you mean by “without the safety devices”?


#5 – FMD14 于 2024-12-18

No you have to put 300 to move a lot


#6 – MitchBradley 于 2024-12-18

You need to set your configuration correctly. http://wiki.fluidnc.com/en/support/setup/motion#adjust-stepspermm

Read what the wiki says about configuration and adjust everything to match your machine.


#7 – FMD14 于 2024-12-18

my assembly is as follows nema 17 motor two G2 20 teeth pulleys with belt which drives a threaded rod of diameter 5 with a pitch of 1mm. When I exceed 800 mm the motor is not happy with the tmc2208 driver. How to calculate the steps with this assembly? To get 40 mm I have to type g0 z140. How to do it?


#8 – MitchBradley 于 2024-12-18

Go through the process at http://wiki.fluidnc.com/en/support/setup/motion step by step. Read everything carefully and make sure you do everything it says. If the motor is not happy with >800 it means that you are going too fast.



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

喜欢 (0)