开源改变世界!!

esp32 在激光模式下运行时中止 #311

推推 grbl 2年前 (2022-10-20) 199次浏览 0个评论
打开
mvturnho 打开了这个问题 on 5 Jan 2020 · 10 条评论
打开

esp32 在激光模式下运行时中止#311

mvturnho 打开了这个问题 on 5 Jan 2020 · 10 条评论

注释

esp32 在激光模式下运行时中止 #311

mvturnho 评论 on 5 Jan 2020  

您使用的是什么版本的固件?
来自 github 的最新 master 分支

问题是否可重复?
是,当使用 SD 卡或laserGrbl telnet 连接中的 gcode 文件时

什么情况下会出现bug?
使用lasergrbl从SD或telnet运行激光雕刻机

我得到了使用的代码:
git clone https://github.com/bdring/Grbl_Esp32.git

然后在可视化代码中使用 platformIO 构建它。

对 cpu_map.h 没有做任何事情,
并在 config.h 中更改了它

#define CPU_MAP_ESP32

#define HOMING_CYCLE_0 (1<<X_AXIS)
#define HOMING_CYCLE_1 (1<<Y_AXIS)

#define HOMING_FORCE_SET_ORIGIN
#define HOMING_FORCE_POSITIVE_SPACE

在使用 webui 的 GRBL 配置中,我更改了以下内容:

”’
标签 | 价值 | 帮助
$11 | 2.010 | 连接偏差,毫米
$20 | 1 | 软限制,布尔值
$21 | 1 | 硬限制,布尔值
$22 | 1 | 归位周期,布尔值
$24 | 300 | 归位进给,毫米/分钟
$25 | 3000 | 归位寻道,毫米/分钟
$32 | 1 | 激光模式,布尔值
$100 | 320 | X 步/毫米
$101 | 160 | Y 步/毫米
$110 | 8000 | X 最大速率,毫米/分钟
$111 | 8000 | Y 最大速率,毫米/分钟
$112 | 5000 | Z 最大速率,毫米/分钟
$120 | 200 | X 加速度,毫米/秒^2
$121 | 200 | Y 加速度,毫米/秒^2
$130 | 311 | X 最大行程,毫米
$131 | 340 | Y 最大行程,mm
”’

归位后,我启动激光并运行了几行,然后在大约 1 分钟后崩溃。
这里是两个后续崩溃的控制台日志

[MSG:Local access point GRBL_ESP started, 192.168.0.1]
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[MSG:HTTP Started]
[MSG:Using cpu_map...CPU_MAP_ESP32_V4]

Grbl 1.1f ['$' for help]
[MSG:Check Limits]
[MSG:'$H'|'$X' to unlock]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:1446 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x4008edbf on core 1

Backtrace: 0x400929a8:0x3ffbe880 0x40092bd9:0x3ffbe8a0 0x4008edbf:0x3ffbe8c0 0x400f9163:0x3ffbe900 0x400dfadd:0x3ffbe920 0x400dfc37:0x3ffbe940 0x400811f2:0x3ffbe960 0x40084dc9:0x3ffbe980 0x40082b11:0x3ffba170 0x4008761a:0x3ffba190 0x400831c3:0x3ffba1b0 0x4008f0f1:0x3ffba1d0

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9

[MSG:Local access point GRBL_ESP started, 192.168.0.1]
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[MSG:HTTP Started]
[MSG:Using cpu_map...CPU_MAP_ESP32_V4]

Grbl 1.1f ['$' for help]
[MSG:'$H'|'$X' to unlock]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[MSG:Caution: Unlocked]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][Parsing.cpp:275] _parseArguments(): arg missing value: 0
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][Parsing.cpp:275] _parseArguments(): arg missing value: 0
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[MSG:Restart ongoing]
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9

[MSG:Local access point GRBL_ESP started, 192.168.0.1]
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:Using cpu_map...CPU_MAP_ESP32_V4]

Grbl 1.1f ['$' for help]
[MSG:'$H'|'$X' to unlock]
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9

[MSG:Local access point GRBL_ESP started, 192.168.0.1]
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:Using cpu_map...CPU_MAP_ESP32_V4]

Grbl 1.1f ['$' for help]
[MSG:Check Limits]
[MSG:'$H'|'$X' to unlock]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][Parsing.cpp:275] _parseArguments(): arg missing value: 0
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][Parsing.cpp:275] _parseArguments(): arg missing value: 0
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[MSG:Caution: Unlocked]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
assertion "pbuf_free: p->ref > 0" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/pbuf.c", line 765, function: pbuf_free
abort() was called at PC 0x40159f03 on core 0

Backtrace: 0x400929a8:0x3ffd2ac0 0x40092bd9:0x3ffd2ae0 0x40159f03:0x3ffd2b00 0x4017cb3b:0x3ffd2b30 0x4017506d:0x3ffd2b50 0x40175b79:0x3ffd2bd0 0x40175bf6:0x3ffd2c00 0x400ea75e:0x3ffd2c20 0x4021cd3f:0x3ffd2c50 0x400e1334:0x3ffd2c70 0x400e9e88:0x3ffd30a0 0x400e9ab4:0x3ffd30c0 0x400df1d9:0x3ffd30e0 0x4008f0f1:0x3ffd3100

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdGuru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x40081206  PS      : 0x00060031  A0      : 0x40084dcc  A1      : 0x3ffbe960
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x3ffc6a10  A5      : 0x3ffc5a44
A6      : 0x00000000  A7      : 0x3ffba7d0  A8      : 0x800811fe  A9      : 0x3ffbe940
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x800925ef  A13     : 0x3ffd0e00
A14     : 0x3ffb9a20  A15     : 0xbaad5678  SAR     : 0x00000005  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000011  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffb
Core 1 was running in ISR context:
EPC1    : 0x40081206  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x40087601

Backtrace: 0x40081206:0x3ffbe960 0x40084dc9:0x3ffbe980 0x4000bfed:0x3ffd0e50 0x4009025d:0x3ffd0e60 0x400fe6ce:0x3ffd0e80 0x4018abf2:0x3ffd0ec0 0x400e08f1:0x3ffd0ef0 0x400d2c8d:0x3ffd0f30 0x400fac9f:0x3ffd0f50 0x4008f0f1:0x3ffd0f70

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac

[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9

[MSG:Local access point GRBL_ESP started, 192.168.0.1]
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[E][WiFiUdp.cpp:219] parsePacket(): could not receive data: 9
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:Using cpu_map...CPU_MAP_ESP32_V4]

Grbl 1.1f ['$' for help]
[MSG:'$H'|'$X' to unlock]
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 12
[E][WebServer.cpp:617] _handleRequest(): request handler not found
[E][WebServer.cpp:617] _handleRequest(): request handler not found


esp32 在激光模式下运行时中止 #311 mvturnho 添加了 漏洞 有些东西不工作标签 2020 年 1 月 5 日
esp32 在激光模式下运行时中止 #311
所有者

婚戒 评论 2020 年 1 月 5 日

我离家大约一个星期。我无法对此进行测试。您可以尝试在禁用蓝牙和 wifi 的情况下进行编译吗?然后通过串口命令从 SD 卡运行文件。

这将有助于隔离问题。

esp32 在激光模式下运行时中止 #311
作者

mvturnho 评论 2020 年 1 月 6 日  

没问题,我今天将对此进行测试并报告给您。

esp32 在激光模式下运行时中止 #311
作者

mvturnho 评论 2020 年 1 月 7 日

好的,我对此进行了测试。
在没有蓝牙和 wifi 的情况下编译固件并从头开始运行 gcode。
效果很好,它完成了整个文件。
然后我从lasergrbl运行串行也完成得很好。

我重新编译了仅启用 wifi 的固件,并通过串行从lasergrbl 运行文件,并且 esp32 停止了。

希望这可以帮助

esp32 在激光模式下运行时中止 #311

我也有同样的问题。
通过串行它可以 100% 工作,但使用 wifi 时它会在 Lasergrbl 和 Laserweb 上停止。

esp32 在激光模式下运行时中止 #311
作者

mvturnho 评论 2020 年 2 月 2 日

@bdring
我能以任何方式帮助解决这个问题吗?

esp32 在激光模式下运行时中止 #311
所有者

婚戒 评论 2020 年 2 月 2 日

当 WiFi 开启时,你还在通过串口发送吗?

esp32 在激光模式下运行时中止 #311

@buildlog
你好。
我通过 Telnet 由 Laserweb 使用相同的 i ssuse。
我通过串行得到这个按摩:

--- Miniterm on COM2  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---    

[MSG:Grbl_ESP32 Ver 1.3a Date 20210816]
[MSG:Compiled with ESP32 SDK:v3.2.3-14-gd3e562907]
[MSG:Using machine:PEN_LASER]
[MSG:Axis count 3]
[MSG:RMT Steps]
[MSG:Init Motors]
[MSG:Global stepper disable pin:GPIO(13)]
[MSG:X  Axis Standard Stepper Step:GPIO(12) Dir:GPIO(26) Disable:None Limits(-300.000,0.000)]
[MSG:Y  Axis Standard Stepper Step:GPIO(14) Dir:GPIO(25) Disable:None Limits(-300.000,0.000)]
[MSG:Laser spindle on Pin:GPIO(27), Enbl:None, Freq:5000Hz, Res:13bits Laser mode:On]

[MSG:Client Started]
[MSG:Connecting haxan_mi]
[MSG:Connecting.]
[MSG:Connecting..]
[MSG:Connecting...]
[MSG:Connecting....]
[MSG:Connected with 192.168.***.***]
[MSG:Start mDNS with hostname:http://grblesp.local/]
[MSG:SSDP Started]
[MSG:HTTP Started]
[MSG:TELNET Started 23]
[MSG:X  Axis limit switch on pin GPIO(32)]
[MSG:Y  Axis limit switch on pin GPIO(4)]

Grbl 1.3a ['$' for help]
assertion "pbuf_free: p->ref > 0" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/pbuf.c", line 765, function: pbuf_free
abort() was called at PC 0x40159c7f on core 1

Backtrace: 0x40093b70:0x3ffd5260 0x40093da1:0x3ffd5280 0x40159c7f:0x3ffd52a0 0x4017c6df:0x3ffd52d0 0x40174c11:0x3ffd52f0 0x4017571d:0x3ffd5370 0x4017579a:0x3ffd53a0 0x400ec20e:0x3ffd53c0 0x4021fc2b:0x3ffd53f0 0x400e10f8:0x3ffd5410 0x400eb570:0x3ffd5840 0x400eb22c:0x3ffd5860 0x400da317:0x3ffd5880 0x400902b9:0x3ffd58a0
  #0  0x40093b70:0x3ffd5260 in reconfigureAllWdts at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:707
  #1  0x40093da1:0x3ffd5280 in commonErrorHandler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:707
  #2  0x40159c7f:0x3ffd52a0 in __kernel_rem_pio2 at /tmp/build/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libm/math/../../../.././newlib/libm/math/k_rem_pio2.c:274 (discriminator 3)
  #3  0x4017c6df:0x3ffd52d0 in netif_poll at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/netif.c:211
  #4  0x40174c11:0x3ffd52f0 in lwip_accept at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/sockets.c:3532
  #5  0x4017571d:0x3ffd5370 in lwip_send at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/sockets.c:3532
  #6  0x4017579a:0x3ffd53a0 in lwip_socket at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/sockets.c:3532
  #7  0x400ec20e:0x3ffd53c0 in _GLOBAL__sub_I__ZN7SSwitchC2Etth at .pio\libdeps\release\TMCStepper\src\source/SERIAL_SWITCH.cpp:15
  #8  0x4021fc2b:0x3ffd53f0 in Spindles::YL620::set_speed_command(unsigned int, Spindles::VFD::ModbusCommand&) at Grbl_Esp32/src/Spindles/YL620Spindle.cpp:114
  #9  0x400e10f8:0x3ffd5410 in WebUI::NotificationsService::sendPushoverMSG(char const*, char const*) at Grbl_Esp32/src/WebUI/NotificationsService.cpp:157
  #10 0x400eb570:0x3ffd5840 in WebUI::WiFiConfig::ConnectSTA2AP() at Grbl_Esp32/src/WebUI/WifiConfig.cpp:179
  #11 0x400eb22c:0x3ffd5860 in String::operator+=(char const*) at Grbl_Esp32/src/WebUI/WifiConfig.cpp:179
      (inlined by) WebUI::WiFiConfig::info() at Grbl_Esp32/src/WebUI/WifiConfig.cpp:75
  #12 0x400da317:0x3ffd5880 in report_realtime_status(unsigned char) at Grbl_Esp32/src/Report.cpp:924
  #13 0x400902b9:0x3ffd58a0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
ets Jun  8 2016 00:22:57

当 gcode 运行时我没有发送任何东西。
telnet设置有问题吗?

谢谢

esp32 在激光模式下运行时中止 #311
所有者

婚戒 评论 2021 年 8 月 29 日

发布您的机器定义

esp32 在激光模式下运行时中止 #311

这可能是我见过的最奇怪的回溯。从调用链的角度来看,report_realtime_status()、WifiConfig::info()、WiFiConfig::ConnectSTA2AP()、NotificationsService::sendPushoverMSG()、YL620::set_speed_command()、TMCStepper SERIAL_SWITCH 和 lwip_socket 链的元素是无关的。我最初怀疑堆栈溢出,但回溯中堆栈地址指示的堆栈深度似乎约为 0x640,这不是很多。

esp32 在激光模式下运行时中止 #311

发布您的机器定义

我使用 Pen_Laser 机器。只需更改 x 限位销和 SpindleType。

#pragma once
// clang-format off

/*
        pen_laser_custom.h
        Part of Grbl_ESP32

        Pen assignments for the Buildlog.net pen laser controller V1 & V2

        For pen mode be sure to uncomment #define USE_PEN_SERVO in config.h
        For solenoid  mode be sure to uncomment #define USE_PEN_SERVO in config.h
        For laser mode, you do not need to change anything
        Note: You can use all 3 modes at the same time if you want

        2019    - Bart Dring
        2020    - Mitch Bradley

        Grbl_ESP32 is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.

        Grbl is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with Grbl_ESP32.  If not, see <http://www.gnu.org/licenses/>.
*/

#define MACHINE_NAME "PEN_LASER"

// Pick a board version
//#define PEN_LASER_V1
#define PEN_LASER_CUSTOM

#define X_STEP_PIN              GPIO_NUM_12
#define X_DIRECTION_PIN         GPIO_NUM_26

#define Y_STEP_PIN              GPIO_NUM_14
#define Y_DIRECTION_PIN         GPIO_NUM_25

#define STEPPERS_DISABLE_PIN    GPIO_NUM_13

#ifdef PEN_LASER_V1
    #define X_LIMIT_PIN     GPIO_NUM_2
#endif
#ifdef PEN_LASER_V2
    #define X_LIMIT_PIN     GPIO_NUM_15
#endif
#ifdef PEN_LASER_CUSTOM
    #define X_LIMIT_PIN     GPIO_NUM_32
#endif
#define Y_LIMIT_PIN             GPIO_NUM_4

// #define USING_SERVO  // uncomment to use this feature

#ifdef USING_SERVO
    #define Z_SERVO_PIN             GPIO_NUM_27
#endif

#define SPINDLE_TYPE SpindleType::LASER
#define LASER_OUTPUT_PIN    GPIO_NUM_27

// defaults
#define DEFAULT_STEP_PULSE_MICROSECONDS 3
#define DEFAULT_STEPPER_IDLE_LOCK_TIME 250 // stay on

#define DEFAULT_STEPPING_INVERT_MASK 0 // uint8_t
#define DEFAULT_DIRECTION_INVERT_MASK 0 // uint8_t
#define DEFAULT_INVERT_ST_ENABLE 0 // boolean
#define DEFAULT_INVERT_LIMIT_PINS 1 // boolean
#define DEFAULT_INVERT_PROBE_PIN 0 // boolean

#define DEFAULT_STATUS_REPORT_MASK 1

#define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
#define DEFAULT_ARC_TOLERANCE 0.002 // mm
#define DEFAULT_REPORT_INCHES 0 // false

#define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
#define DEFAULT_HARD_LIMIT_ENABLE 0  // false

#define DEFAULT_HOMING_ENABLE 0
#define DEFAULT_HOMING_DIR_MASK 0 // move positive dir Z, negative X,Y
#define DEFAULT_HOMING_FEED_RATE 200.0 // mm/min
#define DEFAULT_HOMING_SEEK_RATE 1000.0 // mm/min
#define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
#define DEFAULT_HOMING_PULLOFF 3.0 // mm

#define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
#define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm

#define DEFAULT_LASER_MODE 0 // false

#define DEFAULT_X_STEPS_PER_MM 80.0
#define DEFAULT_Y_STEPS_PER_MM 80.0
#define DEFAULT_Z_STEPS_PER_MM 100.0 // This is percent in servo mode...used for calibration

#define DEFAULT_X_MAX_RATE 5000.0 // mm/min
#define DEFAULT_Y_MAX_RATE 5000.0 // mm/min
#define DEFAULT_Z_MAX_RATE 5000.0 // mm/min

#define DEFAULT_X_ACCELERATION 50.0 // mm/sec^2. 50 mm/sec^2 = 180000 mm/min^2
#define DEFAULT_Y_ACCELERATION 50.0 // mm/sec^2
#define DEFAULT_Z_ACCELERATION 50.0 // mm/sec^2

#define DEFAULT_X_MAX_TRAVEL 300.0 // mm NOTE: Must be a positive value.
#define DEFAULT_Y_MAX_TRAVEL 300.0 // mm NOTE: Must be a positive value.
#define DEFAULT_Z_MAX_TRAVEL 100.0 // This is percent in servo mode...used for calibration
喜欢 (0)

您必须 登录 才能发表评论!