开源改变世界!!

问题:运动突然停止 #801

推推 grbl 2年前 (2023-02-05) 189次浏览
关闭
lagnat 打开了这个问题 4天前 · 2 条评论
关闭

问题:运动突然停止#801

lagnat 打开了这个问题 4天前 · 2 条评论

评论

问题:运动突然停止 #801
拉格纳特 评论了 4天前

控制板

6 件装,BQ TMC5160s

机器描述

龙门、XXYZ、Makita 修剪铣刀主轴

输入电路

没有反应

配置文件

board: 6 Pack
name: 6 Pack TMC5160 XXYZ
meta: 
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: NO_PIN
  shared_stepper_reset_pin: NO_PIN
  x: 
    steps_per_mm: 160.000000
    max_rate_mm_per_min: 4000.000000
    acceleration_mm_per_sec2: 100.000000
    max_travel_mm: 800.000000
    soft_limits: false
    homing: 
      cycle: 1
      allow_single_axis: true
      positive_direction: false
      mpos_mm: 0.000000
      feed_mm_per_min: 200.000000
      seek_mm_per_min: 3000.000000
      settle_ms: 250
      seek_scaler: 1.000000
      feed_scaler: 1.500000

    motor0: 
      limit_neg_pin: gpio.25:low
      limit_pos_pin: gpio.2:low
      limit_all_pin: NO_PIN
      hard_limits: true
      pulloff_mm: 4.400000
      tmc_5160: 
        step_pin: I2SO.2
        direction_pin: I2SO.1:low
        disable_pin: I2SO.0
        r_sense_ohms: 0.075000
        run_amps: 2.500000
        hold_amps: 1.250000
        microsteps: 8
        toff_disable: 0
        toff_stealthchop: 5
        use_enable: false
        cs_pin: I2SO.3
        spi_index: -1
        run_mode: CoolStep
        homing_mode: CoolStep
        stallguard: 16
        stallguard_debug: false
        toff_coolstep: 3
        tpfd: 4

    motor1: 
      limit_neg_pin: gpio.39:low
      limit_pos_pin: NO_PIN
      limit_all_pin: NO_PIN
      hard_limits: true
      pulloff_mm: 5.000000
      tmc_5160: 
        step_pin: I2SO.5
        direction_pin: I2SO.4:low
        disable_pin: I2SO.7
        r_sense_ohms: 0.075000
        run_amps: 2.500000
        hold_amps: 1.250000
        microsteps: 8
        toff_disable: 0
        toff_stealthchop: 5
        use_enable: false
        cs_pin: I2SO.6
        spi_index: -1
        run_mode: CoolStep
        homing_mode: CoolStep
        stallguard: 16
        stallguard_debug: false
        toff_coolstep: 3
        tpfd: 4

  y: 
    steps_per_mm: 160.000000
    max_rate_mm_per_min: 4000.000000
    acceleration_mm_per_sec2: 100.000000
    max_travel_mm: 550.000000
    soft_limits: false
    homing: 
      cycle: 1
      allow_single_axis: true
      positive_direction: false
      mpos_mm: 0.000000
      feed_mm_per_min: 200.000000
      seek_mm_per_min: 3000.000000
      settle_ms: 250
      seek_scaler: 1.000000
      feed_scaler: 1.500000

    motor0: 
      limit_neg_pin: NO_PIN
      limit_pos_pin: NO_PIN
      limit_all_pin: gpio.26:low
      hard_limits: true
      pulloff_mm: 5.000000
      tmc_5160: 
        step_pin: I2SO.18
        direction_pin: I2SO.17:low
        disable_pin: I2SO.16
        r_sense_ohms: 0.075000
        run_amps: 2.500000
        hold_amps: 1.250000
        microsteps: 8
        toff_disable: 0
        toff_stealthchop: 5
        use_enable: false
        cs_pin: I2SO.19
        spi_index: -1
        run_mode: CoolStep
        homing_mode: CoolStep
        stallguard: 0
        stallguard_debug: false
        toff_coolstep: 3
        tpfd: 4

  z: 
    steps_per_mm: 400.000000
    max_rate_mm_per_min: 1500.000000
    acceleration_mm_per_sec2: 100.000000
    max_travel_mm: 300.000000
    soft_limits: false
    homing: 
      cycle: 1
      allow_single_axis: true
      positive_direction: true
      mpos_mm: 0.000000
      feed_mm_per_min: 200.000000
      seek_mm_per_min: 1000.000000
      settle_ms: 250
      seek_scaler: 1.000000
      feed_scaler: 1.500000

    motor0: 
      limit_neg_pin: NO_PIN
      limit_pos_pin: NO_PIN
      limit_all_pin: gpio.16:low
      hard_limits: true
      pulloff_mm: 1.000000
      tmc_5160: 
        step_pin: I2SO.21
        direction_pin: I2SO.20:low
        disable_pin: I2SO.23
        r_sense_ohms: 0.075000
        run_amps: 2.500000
        hold_amps: 1.250000
        microsteps: 8
        toff_disable: 0
        toff_stealthchop: 5
        use_enable: false
        cs_pin: I2SO.22
        spi_index: -1
        run_mode: CoolStep
        homing_mode: CoolStep
        stallguard: 0
        stallguard_debug: false
        toff_coolstep: 3
        tpfd: 4

kinematics: 
  Cartesian: 

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

control: 
  safety_door_pin: NO_PIN
  reset_pin: NO_PIN
  feed_hold_pin: NO_PIN
  cycle_start_pin: NO_PIN
  macro0_pin: NO_PIN
  macro1_pin: NO_PIN
  macro2_pin: NO_PIN
  macro3_pin: NO_PIN

coolant: 
  flood_pin: NO_PIN
  mist_pin: NO_PIN
  delay_ms: 0

probe: 
  pin: gpio.27:low
  check_mode_start: true

macros: 
  startup_line0: 
  startup_line1: 
  macro0: 
  macro1: 
  macro2: 
  macro3: 

start: 
  must_home: false
  deactivate_parking: false
  check_limits: true

parking: 
  enable: false
  axis: Z
  target_mpos_mm: -5.000000
  rate_mm_per_min: 800.000000
  pullout_distance_mm: 5.000000
  pullout_rate_mm_per_min: 250.000000

user_outputs: 
  analog0_pin: NO_PIN
  analog1_pin: NO_PIN
  analog2_pin: NO_PIN
  analog3_pin: NO_PIN
  analog0_hz: 5000
  analog1_hz: 5000
  analog2_hz: 5000
  analog3_hz: 5000
  digital0_pin: NO_PIN
  digital1_pin: NO_PIN
  digital2_pin: NO_PIN
  digital3_pin: NO_PIN

arc_tolerance_mm: 0.002000
junction_deviation_mm: 0.010000
verbose_errors: false
report_inches: false
enable_parking_override_control: false
use_line_numbers: false
planner_blocks: 16
Relay: 
  direction_pin: NO_PIN
  output_pin: NO_PIN
  enable_pin: I2SO.27
  disable_with_s0: false
  s0_with_disable: true
  spinup_ms: 2000
  spindown_ms: 1000
  tool_num: 0
  speed_map: 0=0.000000% 0=100.000000% 1=100.000000%
  off_on_alarm: true

NoSpindle:

启动消息

INFO: FluidNC v3.6.6
INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e
INFO: Local filesystem type is spiffs
INFO: Configuration file:config.yaml
INFO: Machine 6 Pack TMC5160 XXYZ
INFO: Board 6 Pack
INFO: I2SO BCK:gpio.22 WS:gpio.17 DATA:gpio.21
INFO: SPI SCK:gpio.18 MOSI:gpio.23 MISO:gpio.19
INFO: SD Card cs_pin:gpio.5 detect:NO_PIN
INFO: Stepping:I2S_static Pulse:4us Dsbl Delay:0us Dir Delay:1us Idle Delay:255ms
INFO: Axis count 3
INFO: Axis X (0.000,800.000)
INFO:   Motor0
INFO:     tmc_5160 Step:I2SO.2 Dir:I2SO.1:low CS:I2SO.3 Disable:I2SO.0 Index:-1 R:0.075
INFO:  X Neg Limit gpio.25:low
INFO:  X Pos Limit gpio.2:low
INFO:   Motor1
INFO:     tmc_5160 Step:I2SO.5 Dir:I2SO.4:low CS:I2SO.6 Disable:I2SO.7 Index:-1 R:0.075
INFO:  X2 Neg Limit gpio.39:low
INFO: Axis Y (0.000,550.000)
INFO:   Motor0
INFO:     tmc_5160 Step:I2SO.18 Dir:I2SO.17:low CS:I2SO.19 Disable:I2SO.16 Index:-1 R:0.075
INFO:  Y All Limit gpio.26:low
INFO: Axis Z (-300.000,0.000)
INFO:   Motor0
INFO:     tmc_5160 Step:I2SO.21 Dir:I2SO.20:low CS:I2SO.22 Disable:I2SO.23 Index:-1 R:0.075
INFO:  Z All Limit gpio.16:low
INFO: X Axis driver test passed
INFO: X2 Axis driver test passed
INFO: Y Axis driver test passed
INFO: Z Axis driver test passed
INFO: Kinematic system: Cartesian
INFO: Relay Spindle Ena:I2SO.27 Out:NO_PIN Dir:NO_PIN
INFO: Using spindle Relay
INFO: Probe Pin: gpio.27:low
INFO: STA SSID is not set
INFO: AP SSID FluidNC IP 192.168.0.1 mask 255.255.255.0 channel 1
INFO: AP started
INFO: WiFi on
INFO: Captive Portal Started
INFO: HTTP started on port 80
INFO: Telnet started on port 23

用户界面软件

UGS

发生了什么?

我一直在运行相同的 gcode 几十次,大部分时间,经过不同的时间长度后,所有 3 个轴的运动都会停止。我有 1 次 y 停下来但 x 继续前进一秒钟然后 x 停下来,但这种情况只发生过一次。

发生这种情况时,我必须断开 UGS 并重新连接,因为它没有响应。位置没有丢失。我可以再次发送 gcode,它最终会赶上它停止的地方,然后继续前进。有时它会再次停止,有时它会完成。

我试过在主轴悬空的情况下运行 gcode,没有问题。考虑到这个问题很容易重现,我预计它会在空气中失败,但我进行了 4 次测试中的 3 次而没有问题。我要再运行几次这个测试。

我最后的观察是,运动会在运动命令的末尾停止,而不会在运动命令的中间停止。就好像 UGS 只是在等待 OK,而 OK 并没有到来。此时我没有一种简单的方法来手动发送命令以查看 fluidnc 是否有响应。

正如建议的那样,我尝试摆弄tpfd但除此之外的任何东西4,步进器都不会表现。

我也尝试将电流降低到1.0但这也无济于事。

请在此处查看问题:https ://www.youtube.com/watch?v=AYaaO5UpeZQ

其他信息

没有反应

问题:运动突然停止 #801 lagnat 更改了标题 问题:运动突然停止 问题:运动突然停止 4天前
问题:运动突然停止 #801
抢劫 评论了 2天前  

你好@lagnat

仅供参考,我遇到了同样的问题,然后我切换到另一台计算机,一切正常。比较两台电脑后,我发现“让电脑进入睡眠状态”设置了超时。我设置为“从不”,并解决了问题。

我希望这对你有帮助!

问题:运动突然停止 #801
作者
拉格纳特 评论了 昨天

这个问题最终变得相当简单。由于我还不知道的原因,串行连接正在断开。UGS 有一个缺陷,它无法检测串行连接何时丢失,因此看起来好像 fluidnc 有问题。当流体完成为已经缓冲的任何内容生成步骤时,运动停止。