[FluidNC Issue#1533] Problem: Either Homing in wrong direction OR button movement in wrong direction

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

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


Wiki Search Terms

homing, endstop

Controller Board

DLC32

Machine Description

The ANT CNC / CoreXY

Input Circuits


Configuration file

board: MKS-DLC32 V2.1
name: K40 Laser
meta: (01.01.2022) by Skorpi
kinematics: 
  corexy:
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: true
      mpos_mm: 0
      seekmmper_min: 800
      feedmmper_min: 200
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitpospin: gpio.36
      hard_limits: false
      pulloff_mm: 2
      stepstick:
        step_pin: I2SO.1
        direction_pin: I2SO.2
  y:
    stepspermm: 80.09
    maxratemmpermin: 18000
    accelerationmmper_sec2: 1500
    maxtravelmm: 155
    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:
      limitpospin: gpio.35
      hard_limits: false
      pulloff_mm: 2
      stepstick:
        step_pin: I2SO.5
        direction_pin: I2SO.6
  z:
    stepspermm: 631
    maxratemmpermin: 900
    accelerationmmper_sec2: 300
    maxtravelmm: 20
    soft_limits: true
    homing:
      cycle: 0
      positive_direction: true
      mpos_mm: 0
      seekmmper_min: 150
      feedmmper_min: 50
      settle_ms: 500
      seek_scaler: 1.1
      feed_scaler: 1.1
    motor0:
      limitpospin: gpio.34
      hard_limits: false
      pulloff_mm: 2
      stepstick:
        step_pin: I2SO.3
        direction_pin: I2SO.4
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:
  startup_line0: M3S100&G4P1&M3S0;
  startup_line1:
  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

pwm: pwm_hz: 50 output_pin: gpio.32 speed_map: 0=5.00% 100=10.00%

Startup Messages

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:config.yaml]
[MSG:INFO: Machine K40 Laser]
[MSG:INFO: Board MKS-DLC32 V2.1]
[MSG:INFO: I2SO BCK:gpio.16 WS:gpio.17 DATA:gpio.21Min Pulse:2us]
[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:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable I2SO.0]
[MSG:INFO: Axis X (-135.000,0.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.1 Dir:I2SO.2 Disable:NO_PIN]
[MSG:INFO:  Pos Limit gpio.36]
[MSG:INFO: Axis Y (0.000,155.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.5 Dir:I2SO.6 Disable:NO_PIN]
[MSG:INFO:  Pos Limit gpio.35]
[MSG:INFO: Axis Z (-20.000,0.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:I2SO.3 Dir:I2SO.4 Disable:NO_PIN]
[MSG:INFO:  Pos Limit gpio.34]
[MSG:INFO: macro0_pin gpio.33:low:pu]
[MSG:INFO: Kinematic system: CoreXY]
[MSG:INFO: Connecting to STA SSID:Gargoyle]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is 192.168.2.202]
[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: PWM Spindle Ena:NOPIN Out:gpio.32 Dir:NOPIN Freq:50Hz Period:1048575]
[MSG:INFO: Probe gpio.22]
ok

User Interface Software

No response

What happened?

I cant set right Y axis. I have an endstop on the top side of the machine. When having set positive_direction: false homing is performed properly, but movement via buttons is in the wrong direction and vice-versa..

GCode File

No response

Other Information

No response


评论 (5)

#1 – MitchBradley 于 2025-07-28

“Movement via buttons” could mean a lot of things, since you did not respond to the “User Interface Software” question. Go through the flowchart at http://wiki.fluidnc.com/en/support/setup/motion to get the motion dialed in before working on homing.


#2 – tomasz90 于 2025-07-28

@MitchBradley I meant fluidnc web interface. How this chart can help me? Swapping direction of a motor will swap axes in corexy setup… Clicking y top button on the web interface will trigger moving down and clicking y down button will trigger moving up.


#3 – MitchBradley 于 2025-07-28

Get the directions right before homing. Perhaps this will help http://wiki.fluidnc.com/en/config/kinematics#getting-the-directions-right


#4 – tomasz90 于 2025-07-28

1. When adding to either of one motor :low in

stepstick:
        direction_pin: I2SO.2:low

It is changing axes, X is Y and Y is X.

2. When adding to both x and y sections same param :low it is causing, that the problem is appearing on X axis instead of Y.


#5 – tomasz90 于 2025-07-28

Ok I fixed the issue by swapping cables… :neutral_face: I thought that in corexy no matter if swapping cable or direction in software. I am closing.


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

喜欢 (0)