Wiki Search Terms
Hi,
I have a new fluidnc 6x board and I cannot get the limit switches to activate. I have confirmed that they are wired and switching at the board inputs.
I am using the n/c side of all switches, and one shows triggered, and the others are inactive. I have tried jumpers at the board terminals to no avail.
my config file and the start up shows info only, no errors.
any help would be appreciated,
thanks Dennis
Controller Board
fluidnc 6x integrated ESP32
Machine Description
MPCNC Primo for laser use. N/C limit switches on X0, X1, Y0, Y1 negative and Z0 positive
Input Circuits
switches are wired to common ground which is grounded to the power supply and many of the ground terminals.
gpio inputs are as listed in the config file. switches use the n/c side of the switch.
Configuration file
name: Primo_Laser
meta: Primo-Laser
stepping:
engine: I2S_STREAM
idle_ms: 250
pulse_us: 4
dirdelayus: 0
disabledelayus: 0
start:
deactivate_parking: true
axes:
x:
stepspermm: 40
maxratemmpermin: 500
accelerationmmper_sec2: 200
maxtravelmm: 1450
soft_limits: true
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limitallpin: NO_PIN
limitnegpin: gpio.33:high
limitpospin: NO_PIN
hard_limits: false
pulloff_mm: 2
standard_stepper:
step_pin: i2so.2
direction_pin: i2so.1
disablepin: NOPIN
motor1:
limitallpin: NO_PIN
limitnegpin: gpio.13:high
limitpospin: NO_PIN
hard_limits: false
pulloff_mm: 2
standard_stepper:
step_pin: i2so.5
direction_pin: i2so.4
disablepin: NOPIN
y:
stepspermm: 40
maxratemmpermin: 500
accelerationmmper_sec2: 200
maxtravelmm: 1450
soft_limits: true
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limitallpin: NO_PIN
limitnegpin: gpio.32:high
limitpospin: NO_PIN
hard_limits: false
pulloff_mm: 10
standard_stepper:
step_pin: i2so.10
direction_pin: i2so.9
disablepin: NOPIN
motor1:
limitallpin: NO_PIN
limitnegpin: gpio.39:high
limitpospin: NO_PIN
hard_limits: false
pulloff_mm: 10
standard_stepper:
step_pin: i2so.13
direction_pin: i2so.12
disablepin: NOPIN
z:
stepspermm: 80
maxratemmpermin: 100
accelerationmmper_sec2: 200
maxtravelmm: 100
soft_limits: true
homing:
cycle: 2
mpos_mm: 10
motor0:
limitallpin: NO_PIN
limitnegpin: NO_PIN
limitpospin: gpio.14:high
hard_limits: false
pulloff_mm: 10
standard_stepper:
step_pin: i2so.18
direction_pin: i2so.17
disablepin: NOPIN
i2so:
bck_pin: gpio.22
data_pin: gpio.21
ws_pin: gpio.17
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
carddetectpin: NO_PIN
cs_pin: gpio.5
uart1:
txd_pin: gpio.27
rxd_pin: gpio.26
rts_pin: gpio.25
baud: 115200
mode: 8N1
control:
safetydoorpin: gpio.16:high
resetpin: NOPIN
feedholdpin: NO_PIN
cyclestartpin: NO_PIN
macro0pin: NOPIN
macro1pin: NOPIN
macro2pin: NOPIN
macro3pin: NOPIN
faultpin: NOPIN
estoppin: NOPIN
Laser:
output_pin: gpio.2
s0withdisable: true
enable_pin: gpio.4
Startup Messages
Grbl 3.9 [FluidNC v3.9.8 (wifi) '$' for help]
$Gpio/Dump
0 GPIO0 I1
1 U0TXD
2 GPIO2 O0 ledchssig_out0
3 U0RXD
4 GPIO4 O0
5 GPIO5 O32
6 SPICLK
7 GPIO7 O0 I1 SPIQ_out
8 GPIO8 O0 I0 SPID_out
9 GPIO9 O0 I1 SPIHD_out
10 GPIO10 O0 I0 SPIWP_out
11 GPIO11 O0 I1 SPICS0_out
12 MTDI
13 MTCK
14 MTMS
15 MTDO
16 GPIO16 I1
17 GPIO17 O131072 I2S0OWSout
18 GPIO18 O0 I0 HSPICLK_out
19 GPIO19 O0 I0 HSPIQ_out
21 GPIO21 O0 I2S0ODATAout23
22 GPIO22 O0 I2S0OBCKout
23 GPIO23 O0 I0 HSPID_out
25 GPIO25 O0 U1RTS_out
26 GPIO26 I1
27 GPIO27 O134217728 I1 U1TXD_out
32 GPIO32
33 GPIO33
34 GPIO34
35 GPIO35
36 GPIO36
37 GPIO37
38 GPIO38
39 GPIO39
Input Matrix
1 SPIQ_in 7
2 SPID_in 8
3 SPIHD_in 9
4 SPIWP_in 10
8 HSPICLK_in 18
9 HSPIQ_in 19
10 HSPID_in 23
17 U1RXD_in 26
ok
User Interface Software
same issue with fluid term and open builds ui.
What happened?
when accessing either user interface program on the switch check screen, the switches are showing all inactive except one, the X1 limit, showing as triggered.
I have tried all variations of pullup, pull down, no pull, invert, and get on change in state.
GCode File
No response
Other Information
Start up screen shows info only, no errors
评论 (2)
#2 – bdring 于 2025-09-08
You are using some 6x controller outputs as switch inputs. That is potentially damaging to the 5V output chip, especially when connected to an N.C. switch. Since you are switching to grounded and the outputs are not active or have pullups enabled, it is unlikely anything broke.
The FluidNC and the ESP32 can use those pins as inputs, so there are no errors in your start messages.
Fix that and report back
#1 – MitchBradley 于 2025-09-08
Show a photo of how they are wired. The description is pretty clear, but sometimes a picture reveals something else.