bdring / FluidNC

The next generation of motion control firmware
Other
1.59k stars 382 forks source link

attivando hard limit la macchina perde la connessione e devo riavviare #837

Closed distebia closed 1 year ago

distebia commented 1 year ago

Controller Board

mks dlc32 v.2.1

Machine Description

mks dlc32 v.2.1

Input Circuits

No response

Configuration file

board: MKS DLC32 2.1
name: MKS DLC32 XYZ CO2+DIODO uso CO2
meta: (08/07/2022) Biagio CO2+DIODO uso CO2

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: 120
#planner_blocks: 16

stepping:
  engine: I2S_STATIC
  idle_ms: 255
  pulse_us: 4
  dir_delay_us: 1
  disable_delay_us: 0
  #segments: 12

axes:
  shared_stepper_disable_pin: i2so.0
  x:
    steps_per_mm: 79.2583
    max_rate_mm_per_min: 20000.000
    acceleration_mm_per_sec2: 2000.000
    max_travel_mm: 1100.000
    soft_limits: true
    homing:
      cycle: 1
      positive_direction: false
      mpos_mm: 0.000
      feed_mm_per_min: 1000.000
      seek_mm_per_min: 5000.000
      settle_ms: 250.000
      seek_scaler: 1.100
      feed_scaler: 1.100

    motor0:
      limit_neg_pin: gpio.36
      limit_pos_pin: NO_PIN
      limit_all_pin: NO_PIN
      hard_limits: true
      pulloff_mm:1.500
      standard_stepper:
        step_pin:  i2so.1
        direction_pin: I2SO.2

  y:
    steps_per_mm: 79.874
    max_rate_mm_per_min: 10000.000
   #acceleration_mm_per_sec2: 300.000
    acceleration_mm_per_sec2: 200.000
    max_travel_mm: 890.000
    soft_limits: true
    homing:
      cycle: 1
      positive_direction: false
      mpos_mm: 0.000
      feed_mm_per_min: 1000.000
      seek_mm_per_min: 5000.000
      settle_ms: 250.000
      seek_scaler: 1.100
      feed_scaler: 1.100

    motor0:
      limit_neg_pin: gpio.35
      limit_pos_pin: NO_PIN
      limit_all_pin: NO_PIN
      hard_limits: true
      pulloff_mm:1.500
      standard_stepper:
        step_pin: I2SO.5
        direction_pin: I2SO.6

  z:
    steps_per_mm: 640.000
    max_rate_mm_per_min: 200.000
    acceleration_mm_per_sec2: 50.000
    max_travel_mm: 170.000
    soft_limits: false
    homing:
      cycle: 0
      positive_direction: true
      mpos_mm: 0.000
      feed_mm_per_min: 200.000
      seek_mm_per_min: 200.000
      settle_ms: 250.000
      seek_scaler: 1.500
      feed_scaler: 1.500

    motor0:
      limit_neg_pin: gpio.34:low
      limit_pos_pin: NO_PIN
      limit_all_pin: NO_PIN
      hard_limits: false
      pulloff_mm:1.000
      standard_stepper:
        step_pin: I2SO.3
        direction_pin: I2SO.4:low

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:
  card_detect_pin: gpio.39
  cs_pin: gpio.15

coolant:
  flood_pin: gpio.4
  mist_pin: NO_PIN
 #mist_pin: gpio.0
  delay_ms: 0

probe:
  pin: gpio.2
  check_mode_start: false

start:
  must_home: false

Laser:
  pwm_hz: 5000
  output_pin: gpio.32
  enable_pin: NO_PIN
  disable_with_s0: false
  s0_with_disable: false
 #speed_map: 0=0.000% 0=11.000% 1000=100.000%
  speed_map: 0=0.000% 0=10.000% 1000=100.000%

Startup Messages

Select a COM port
0: COM1 (\Device\Serial0)
1: COM7 (\Device\Serial2)
Choice: 1
FluidNC v1.2.0 using COM7
Exit: Ctrl-C, Ctrl-Q or Ctrl-], Clear screen: CTRL-W
Upload: Ctrl-U, Reset ESP32: Ctrl-R, Send Override: Ctrl-O
$bye
[MSG:INFO: Restarting]
ok
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:12812
load:0x40080400,len:3032
entry 0x400805e4

[MSG:INFO: FluidNC v3.6.5]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is spiffs]
[MSG:INFO: Configuration file:2_uso_co2.yaml]
[MSG:INFO: Machine MKS DLC32 XYZ CO2+DIODO uso CO2]
[MSG:INFO: Board MKS DLC32 2.1]
[MSG:INFO: I2SO BCK:gpio.16 WS:gpio.17 DATA:gpio.21]
[MSG:INFO: SPI SCK:gpio.14 MOSI:gpio.13 MISO:gpio.12]
[MSG:INFO: SD Card Detect gpio.39]
[MSG:INFO: SD Card cs_pin:gpio.15 detect:gpio.39]
[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 (0.000,1100.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     standard_stepper Step:I2SO.1 Dir:I2SO.2 Disable:NO_PIN]
[MSG:INFO:  X Neg Limit gpio.36]
[MSG:INFO: Axis Y (0.000,890.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     standard_stepper Step:I2SO.5 Dir:I2SO.6 Disable:NO_PIN]
[MSG:INFO:  Y Neg Limit gpio.35]
[MSG:INFO: Axis Z (-170.000,0.000)]
[MSG:INFO:   Motor0]
[MSG:INFO:     standard_stepper Step:I2SO.3 Dir:I2SO.4:low Disable:NO_PIN]
[MSG:INFO:  Z Neg Limit gpio.34:low]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Laser Ena:NO_PIN Out:gpio.32 Freq:5000Hz Period:8191]
[MSG:INFO: Using spindle Laser]
[MSG:INFO: Flood coolant gpio.4]
[MSG:INFO: Probe Pin: gpio.2]
[MSG:INFO: WiFi is disabled]

Grbl 3.6 [FluidNC v3.6.5 (wifi) '$' for help]

User Interface Software

lightburn

What happened?

Salve, ho attivato hard limits: true sia per x che per y per provare una nuova configurazione e, durante la lavorazione, volontariamente vado a fare scattare il sensore per produrre l'errore di hard limits. Lightburn, nella console, mi segnala il problema image ed è corretto ma, provando il reset mi rimane in questo modo image e posso solo spegnere e riaccendere la scheda

Other Information

No response

MitchBradley commented 1 year ago

Send $message/level=debug to see additional information about limit switch activation

distebia commented 1 year ago

Grazie per la risposta...questo comando lo devo lanciare subito dopo l'accensione della scheda e prima della normale lavorazione del progetto?

MitchBradley commented 1 year ago

$message/level is persistent, so after you set it to 'debug', you will get debug messages even after reboots. When you no longer need debug messages, send $message/level=info .

distebia commented 1 year ago

ok, stasera riferisco quanto succede nei finecorsa.

distebia commented 1 year ago

ok $message/level=debug ok $bye [MSG:INFO: Restarting] ok ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1184 load:0x40078000,len:12812 load:0x40080400,len:3032 entry 0x400805e4

[MSG:INFO: FluidNC v3.6.5] [MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e] [MSG:INFO: Local filesystem type is spiffs] [MSG:INFO: Configuration file:2_uso_co2.yaml] [MSG:DBG: Running after-parse tasks] [MSG:DBG: Checking configuration] [MSG:INFO: Machine MKS DLC32 XYZ CO2+DIODO uso CO2] [MSG:INFO: Board MKS DLC32 2.1] [MSG:INFO: I2SO BCK:gpio.16 WS:gpio.17 DATA:gpio.21] [MSG:INFO: SPI SCK:gpio.14 MOSI:gpio.13 MISO:gpio.12] [MSG:INFO: SD Card Detect gpio.39] [MSG:INFO: SD Card cs_pin:gpio.15 detect:gpio.39] [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 (0.000,1100.000)] [MSG:INFO: Motor0] [MSG:INFO: standard_stepper Step:I2SO.1 Dir:I2SO.2 Disable:NO_PIN] [MSG:INFO: X Neg Limit gpio.36] [MSG:DBG: X Neg Limit 0] [MSG:INFO: Axis Y (0.000,890.000)] [MSG:INFO: Motor0] [MSG:INFO: standard_stepper Step:I2SO.5 Dir:I2SO.6 Disable:NO_PIN] [MSG:INFO: Y Neg Limit gpio.35] [MSG:DBG: Y Neg Limit 0] [MSG:INFO: Axis Z (-170.000,0.000)] [MSG:INFO: Motor0] [MSG:INFO: standard_stepper Step:I2SO.3 Dir:I2SO.4:low Disable:NO_PIN] [MSG:INFO: Z Neg Limit gpio.34:low] [MSG:DBG: Z Neg Limit 0] [MSG:INFO: Kinematic system: Cartesian] [MSG:INFO: Laser Ena:NO_PIN Out:gpio.32 Freq:5000Hz Period:8191] [MSG:INFO: Using spindle Laser] [MSG:INFO: Flood coolant gpio.4] [MSG:INFO: Probe Pin: gpio.2] [MSG:INFO: WiFi is disabled]

Grbl 3.6 [FluidNC v3.6.5 (wifi) '$' for help] [MSG:DBG: Z Neg Limit 0]

distebia commented 1 year ago

image

distebia commented 1 year ago

image e devo spegnere e riaccendere il controller

MitchBradley commented 1 year ago

You did not tell us much about your limit switches and how they are connected. Is this a K40 laser? I have seen many reports on other forums about problems with their optical limit switches. You should use a voltmeter to check the signal level at the input pin on the controller board.

MitchBradley commented 1 year ago

I found this in the Lightburn forum. https://forum.lightburnsoftware.com/t/feature-request-or-bug-report-reset-command-for-32bit-boards-ctrl-x/88818

distebia commented 1 year ago

sono image questi sono i miei finecorsa, uno montato a -x e uno montato a -y. I sensori sono alimentati a 5v e gnd dal connettore della scheda. i sensori sono PNP NO e misuro +5v dall'uscita S quando sono impegnati. Entrambi funzionano bene per homing, preciso e ripetibile

distebia commented 1 year ago

ho letto il link sopra e ho verificato con la macchina accesa che sia soft limit che hard limit si comportano allo stesso modo con Lightburn. per ripristinare ora faccio 1- tasto stop, 2- tasto dx del mouse su dispositivi e 3- $H. Dopo l'homing ricomincio la lavorazione senza spegnere e riaccendere il controller.

bdring commented 1 year ago

Can this issue be closed now? This is not a FluidNC issue.