[FluidNC Issue#1442] Problem: HOMING SWITCH axis A

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

Issue #1442 | 状态: 已关闭 | 作者: qulet | 创建时间: 2025-01-28


Wiki Search Terms

FluidNC Limit Switch and Homing Setup

Controller Board

ESP- WROM 32 4x TB6600 Stepper Motor Driver 4x limit switch optoisolator

Machine Description

Router bramowy

Input Circuits

LTV847 optoisolator to esp32 pin

Configuration file

name: "ESP32 V4"
board: "ESP32"
meta: "N_ver"

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

axes: sharedstepperdisablepin: NOPIN homing_runs: 2 x: stepspermm: 1261.95 maxratemmpermin: 1088.8 accelerationmmper_sec2: 230 maxtravelmm: 1000 homing: cycle: 2 allowsingleaxis: true positive_direction: true mpos_mm: 10 seekmmper_min: 800 feedmmper_min: 500 seek_scaler: 1.5 feed_scaler: 1.5 motor0: limitnegpin: gpio.34:high hard_limits: true pulloff_mm: 10 stepstick: direction_pin: gpio.32 step_pin: gpio.33

y: stepspermm: 1261.95 maxratemmpermin: 1099.8 accelerationmmper_sec2: 230 maxtravelmm: 1000 homing: cycle: 2 allowsingleaxis: true positive_direction: true mpos_mm: -10 seekmmper_min: 800 feedmmper_min: 500 seek_scaler: 1.5 feed_scaler: 1.5 motor0: limitnegpin: gpio.39: high hard_limits: true pulloff_mm: 10 stepstick: direction_pin: gpio.27 step_pin: gpio.26

z: stepspermm: 1600 maxratemmpermin: 800 accelerationmmper_sec2: 192.1875 maxtravelmm: 200 homing: cycle: 1 allowsingleaxis: true positive_direction: true mpos_mm: -10 seekmmper_min: 400 feedmmper_min: 200 seek_scaler: 1.5 feed_scaler: 1.5 motor0: limitnegpin: gpio.36: high hard_limits: true pulloff_mm: 10 stepstick: direction_pin: gpio.25 step_pin: gpio.12

a: stepspermm: 1114.6 maxratemmpermin: 1345.2 accelerationmmper_sec2: 448.4787 maxtravelmm: 100000 homing: cycle: 3 allowsingleaxis: true positive_direction: true mpos_mm: -100000 seekmmper_min: 1345.2 feedmmper_min: 800 seek_scaler: 1.5 feed_scaler: 1.5 motor0: limitnegpin: gpio.35:high hard_limits: true pulloff_mm: 10 stepstick: direction_pin: gpio.21 step_pin: gpio.22

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

sdcard: cs_pin: gpio.5 carddetectpin: NO_PIN frequency_hz: 8000000 coolant: flood_pin: gpio.14:low:pu

probe: pin: gpio.15:low:pu

user_outputs: digital0pin: NOPIN

10V: forward_pin: gpio.2:low:pu reversepin: NOPIN pwm_hz: 5000 output_pin: gpio.13 enablepin: NOPIN directionpin: NOPIN disablewiths0: false s0withdisable: true spinup_ms: 0 spindown_ms: 0 tool_num: 0 speed_map: 0=0.000% 1000=0.000% 12000=50% 24000=100.000% offonalarm: falseue000=25% 24000=100%

Startup Messages

$G
[GC:G0 G54 G17 G21 G90 G94 M5 M9 T0 F0 S0]
ok
[MSG:DBG: /macrocfg.json not found]
[MSG:DBG: 404.htm not found]
[MSG:DBG: /preferences2.json not found]
[MSG:DBG: 404.htm not found]
$SS

[MSG:DBG: /preferences.json not found]
[MSG:DBG: 404.htm not found]
[MSG:INFO: FluidNC v3.8.3 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:4axisv410V.yaml]
[MSG:DBG: Running after-parse tasks]
[MSG:DBG: Checking configuration]
[MSG:INFO: Machine ESP32 V4]
[MSG:INFO: Board ESP32]
[MSG:INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19]
[MSG:INFO: SD Card cspin:gpio.5 detect:NOPIN freq:8000000]
[MSG:INFO: Stepping:RMT Pulse:2us Dsbl Delay:0us Dir Delay:1us Idle Delay:250ms]
[MSG:INFO: Axis count 4]
[MSG:INFO: Axis X (-990.000,10.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.33 Dir:gpio.32 Disable:NO_PIN]
[MSG:INFO:  X Neg Limit gpio.34:low]
[MSG:INFO: Axis Y (-1010.000,-10.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.26 Dir:gpio.27 Disable:NO_PIN]
[MSG:INFO:  Y Neg Limit gpio.39:low]
[MSG:INFO: Axis Z (-210.000,-10.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.12 Dir:gpio.25 Disable:NO_PIN]
[MSG:INFO:  Z Neg Limit gpio.36:low]
[MSG:INFO: Axis A (-1000010.000,-10.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     stepstick Step:gpio.22 Dir:gpio.21 Disable:NO_PIN]
[MSG:INFO:  A Neg Limit gpio.35]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Connecting to STA SSID:OrangeSwiatlowodD290]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connecting...]
[MSG:INFO: Connecting....]
[MSG:INFO: Connected - IP is 192.168.1.22]
[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: 10V Spindle Ena:NOPIN Out:gpio.13 Dir:NOPIN Fwd:gpio.2:low:pu Rev:NO_PIN Freq:5000Hz Period:8191]
[MSG:INFO: Flood coolant gpio.14:low:pu]
[MSG:INFO: Probe gpio.15:low:pu]
ok

User Interface Software

No response

What happened?

How should the “homing switch” be configured for the rotary axis “A” so that after executing $HA, the next press (triggering the switch) does not stop the axis movement while the CNC program is being executed?

GCode File

No response

Other Information

No response


评论 (2)

#1 – breiler 于 2025-01-28

Try setting hard_limits to false for that axis


#2 – qulet 于 2025-02-01

Thank you very much for the tip. Now the A axis works as I wanted. I’m closing the topic.


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

喜欢 (0)