Wiki Search Terms
FluidNC Limit Switch and Homing Setup
Controller Board
esp32 dev board connected to Woodpecker GRBL 0.9j
Machine Description
cnc3018
Input Circuits
100 ohm resistor in series with NC switch
Configuration file
board: custom
name: cnc/laser 3018
meta:
stepping:
engine: RMT
idle_ms: 255
pulse_us: 4
dirdelayus: 0
disabledelayus: 0
segments: 12spi:
misopin: NOPIN
mosipin: NOPIN
sckpin: NOPIN
sdcard:
cspin: NOPIN
carddetectpin: NO_PIN
frequency_hz: 8000000
kinematics:
Cartesian:
axes:
sharedstepperdisable_pin: gpio.2
sharedstepperresetpin: NOPIN
homing_runs: 2
x:
stepspermm: 800.000000
maxratemmpermin: 1000.000000
accelerationmmper_sec2: 25.000000
maxtravelmm: 2950.000000
soft_limits: true
motor0:
limitnegpin: gpio.33
limitpospin: NO_PIN
limitallpin: NO_PIN
hard_limits: false
pulloff_mm: 3.000000
stepstick:
step_pin: gpio.18
direction_pin: gpio.17
disablepin: NOPIN
ms1_pin: gpio.19:high
ms2pin: NOPIN
ms3pin: NOPIN
resetpin: NOPIN
homing:
cycle: 2
allowsingleaxis: true
positive_direction: false
mpos_mm: 0.000
seekmmper_min: 200
feedmmper_min: 50
seek_scaler: 1.1
feed_scaler: 1.5
settle_ms: 250
y:
stepspermm: 800.000000
maxratemmpermin: 1000.000000
accelerationmmper_sec2: 25.000000
maxtravelmm: 1000.000000
soft_limits: false
motor0:
limitnegpin: NO_PIN
limitpospin: NO_PIN
limitallpin: NO_PIN
hard_limits: false
pulloff_mm: 1.000000
stepstick:
step_pin: gpio.0
direction_pin: gpio.5
disablepin: NOPIN
ms1pin: NOPIN
ms2pin: NOPIN
ms3pin: NOPIN
resetpin: NOPIN
z:
stepspermm: 800.000000
maxratemmpermin: 1000.000000
accelerationmmper_sec2: 25.000000
maxtravelmm: 1000.000000
soft_limits: false
motor0:
limitnegpin: NO_PIN
limitpospin: NO_PIN
limitallpin: NO_PIN
hard_limits: false
pulloff_mm: 1.000000
stepstick:
step_pin: gpio.16
direction_pin: gpio.4
disablepin: NOPIN
ms1pin: NOPIN
ms2pin: NOPIN
ms3pin: NOPIN
resetpin: NOPIN
pwm:
pwm_hz: 5000
directionpin: NOPIN
output_pin: gpio.15
enablepin: NOPIN
disablewiths0: false
s0withdisable: true
spinup_ms: 300
spindown_ms: 0
tool_num: 0
speed_map: 0=0.000% 10000=100.000%
offonalarm: false
control:
safetydoorpin: NO_PIN
resetpin: NOPIN
feedholdpin: NO_PIN
cyclestartpin: NO_PIN
macro0pin: NOPIN
macro1pin: NOPIN
macro2pin: NOPIN
macro3pin: NOPIN
faultpin: NOPIN
estoppin: NOPIN
coolant:
floodpin: NOPIN
mistpin: NOPIN
delay_ms: 0
probe:
pin: NO_PIN
toolsetterpin: NOPIN
checkmodestart: true
hard_stop: false
macros:
startup_line0:
startup_line1:
Macro0:
Macro1:
Macro2:
Macro3:
after_homing:
after_reset:
after_unlock:
start:
must_home: false
deactivate_parking: false
check_limits: true
parking:
enable: false
axis: Z
targetmposmm: -5.000000
ratemmper_min: 800.000000
pulloutdistancemm: 5.000000
pulloutratemmpermin: 250.000000
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
digital4pin: NOPIN
digital5pin: NOPIN
digital6pin: NOPIN
digital7pin: NOPIN
user_inputs:
analog0pin: NOPIN
analog1pin: NOPIN
analog2pin: NOPIN
analog3pin: NOPIN
digital0pin: NOPIN
digital1pin: NOPIN
digital2pin: NOPIN
digital3pin: NOPIN
digital4pin: NOPIN
digital5pin: NOPIN
digital6pin: NOPIN
digital7pin: NOPIN
arctolerancemm: 0.002000
junctiondeviationmm: 0.010000
verbose_errors: true
report_inches: false
enableparkingoverride_control: false
uselinenumbers: true
planner_blocks: 16
Startup Messages
[MSG:INFO: Restarting]
[MSG:INFO: WiFi Disconnected]
WebSocket disconnect 0
[MSG:INFO: uart_channel0 created]
[MSG:RST]
[MSG:INFO: FluidNC v3.9.4 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 cnc/laser 3018]
[MSG:INFO: Board custom]
[MSG:INFO: Stepping:RMT Pulse:4us Dsbl Delay:0us Dir Delay:0us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.2]
[MSG:INFO: Axis X (0.000,2950.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.18 Dir:gpio.17 Disable:NO_PIN]
[MSG:INFO: X Neg Limit gpio.33]
[MSG:INFO: Axis Y (-1000.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.0 Dir:gpio.5 Disable:NO_PIN]
[MSG:INFO: Axis Z (-1000.000,0.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.16 Dir:gpio.4 Disable:NO_PIN]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Connecting to STA SSID:kotovasia_chup]
[MSG:INFO: Connecting.]
[MSG:INFO: Connecting..]
[MSG:INFO: Connected - IP is 192.168.1.113]
[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.15 Dir:NOPIN Freq:5000Hz Period:8191]Grbl 3.9 [FluidNC v3.9.4 (wifi) '$' for help]
User Interface Software
WebUI
What happened?
When returning to the x-axis, it returns home to the switch at high speed, stops, but does not roll back to measure at low speed. The cycle returns home, infinitely.
Connections:
100 ohm resistor in series with the trip switch.
GCode File
No response
Other Information
No response
评论 (6)
#2 – MitchBradley 于 2025-01-26
We are unable to offer support for custom controller boards. It requires too much of our time, with no return, benefiting only one person.
#3 – bdring 于 2025-01-26
There is a flowchart for switch setup on the wiki. Follow it and report back with yourcresults.
#4 – kotovasia5120 于 2025-01-26
Thanks for the answer. Wiki is not always easy to navigate. I did not see this page.
As a result, I saw in the debug that when the limit switch was triggered, it was triggered not once, but many times per second.
It was necessary to enable :pu for the contact since the limit switch is NC.
> There is a flowchart for switch setup on the wiki. Follow it and report back with yourcresults.
#5 – MitchBradley 于 2025-01-26
If you have ideas for how the wiki navigation could be better, please request wiki edit permission and improve it.
#6 – bdring 于 2025-01-26
It is in the navbar on the left side. It is the first page suggested if you search for homing and second page suggested if you search for limit switches.
I added a link in the FAQ.
#1 – kotovasia5120 于 2025-01-26
At the moment only one limit switch is installed
could this be the problem?