Switched and auto squaring

I am having problem figuring out my limit sw. I have nc sw and want to auto square. This is what I have now.
motor0:
limit_neg_pin: NO_PIN
limit_pos_pin: gpio.33:low
limit_all_pin: NO_PIN
hard_limits: false
My sw are normally open. I want to auto square.
Here is the config fire. What do I do. I am normally closed. Do I need a online resister also
Is the limit pos pin up their the signal pin

Confg
Sep 28, 2022

Here is the config file

board: 6 Pack
name: 6 Pack External XYYZ No Square
meta: 2022-09-19 B. Dring for Dean Embrey

stepping:
 engine: I2S_STREAM
 idle_ms: 250
 pulse_us: 4
 dir_delay_us: 1
 disable_delay_us: 0

axes:
 shared_stepper_disable_pin: NO_PIN
 x:
 steps_per_mm: 100.000
 max_rate_mm_per_min: 5000.000
 acceleration_mm_per_sec2: 100.000
 max_travel_mm: 300.000
 soft_limits: false
 homing:
 cycle: 2
 positive_direction: true
 mpos_mm: 0.000
 feed_mm_per_min: 100.000
 seek_mm_per_min: 200.000
 settle_ms: 500
 seek_scaler: 1.100
 feed_scaler: 1.100

 motor0:
 limit_neg_pin: NO_PIN
 limit_pos_pin: gpio.33:low
 limit_all_pin: NO_PIN
 hard_limits: false
 pulloff_mm: 1.000
 standard_stepper:
 step_pin: I2SO.2
 direction_pin: I2SO.1
 disable_pin: I2SO.0

 y:
 steps_per_mm: 100.000
 max_rate_mm_per_min: 5000.000
 acceleration_mm_per_sec2: 100.000
 max_travel_mm: 300.000
 soft_limits: false
 homing:
 cycle: 3
 positive_direction: true
 mpos_mm: 0.000
 feed_mm_per_min: 100.000
 seek_mm_per_min: 200.000
 settle_ms: 500
 seek_scaler: 1.100
 feed_scaler: 1.100

 motor0:
 limit_neg_pin: NO_PIN
 limit_pos_pin: gpio.32:low
 limit_all_pin: NO_PIN
 hard_limits: false
 pulloff_mm: 1.000
 standard_stepper:
 step_pin: I2SO.5
 direction_pin: I2SO.4
 disable_pin: I2SO.7

 motor1:
 limit_neg_pin: NO_PIN
 limit_pos_pin: NO_PIN
 limit_all_pin: NO_PIN
 hard_limits: false
 pulloff_mm: 1.000
 standard_stepper:
 step_pin: I2SO.10
 direction_pin: I2SO.9
 disable_pin: I2SO.8

 z:
 steps_per_mm: 100.000
 max_rate_mm_per_min: 5000.000
 acceleration_mm_per_sec2: 100.000
 max_travel_mm: 300.000
 soft_limits: false
 homing:
 cycle: 1
 positive_direction: true
 mpos_mm: 0.000
 feed_mm_per_min: 100.000
 seek_mm_per_min: 800.000
 settle_ms: 500
 seek_scaler: 1.100
 feed_scaler: 1.100

 motor0:
 limit_neg_pin: NO_PIN
 limit_pos_pin: gpio.35:low
 limit_all_pin: NO_PIN
 hard_limits: false
 pulloff_mm: 1.000
 standard_stepper:
 step_pin: I2SO.13
 direction_pin: I2SO.12
 disable_pin: I2SO.15

probe:
 pin: gpio.34:high
 check_mode_start: true


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:
 card_detect_pin: NO_PIN
 cs_pin: gpio.5

start:
 must_home: true
 deactivate_parking: false
 check_limits: true

arc_tolerance_mm: 0.002
junction_deviation_mm: 0.010
verbose_errors: false
report_inches: false
enable_parking_override_control: false
use_line_numbers: false
planner_blocks: 16

NoSpindle:

I’m lost. Where to start?.. are you homing to positive or negative? Are your limit switches normally open or normally closed? Do you know which GPIO’s are being used on your board?

Bart has done a marvellous job on the wiki for Fluid_NC with many example scripts, please go through that first, especially the homing and limit switch portion, it will provide you with the understanding you need to end up with a working configuration for your machine.

Your current config has the m/c homing in a positive direction, with only a single Y limit switch (no auto-squaring), with normally open switches with external pull-up resistors and no spindle.

1 Like