[Grbl_Esp32 Issue#1486] Translate Machine.h for Engraver

未分类 bolang 3周前 (10-14) 7次浏览 0个评论

Issue #1486 | 状态: 已关闭 | 作者: ZchDude | 创建时间: 2023-06-12


#pragma once
// clang-format off

/*
3axis_v4.h
Part of Grbl_ESP32

Pin assignments for the ESP32 Development Controller, v4.1 and later.
https://github.com/bdring/GrblESP32Development_Controller
https://www.tindie.com/products/33366583/grbl_esp32-cnc-development-board-v35/

2018 – 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 “Engraver”

//#define CUSTOMCODEFILENAME “../Custom/CoreXY.cpp”
#define USETOOLCHANGE //Disable when using CoreXy

#define USEI2SOUT
#define USEI2SSTEPS

//#define DEFAULTSTEPPER STI2S_STATIC
//#define USE_STEPSTICK // makes sure MS1,2,3 !reset and !sleep are set

#define I2SOUTBCK GPIONUM27 // 27 22 Pin 11 on Chip
#define I2SOUTWS GPIONUM12 // 12 32 Pin 12 on Chip
#define I2SOUTDATA GPIONUM13 // 13 21 Pin 14 on Chip https://www.arduino.cc/en/Tutorial/Foundations/ShiftOut how to add more in sequence.. Pin 9 on chip to Pin14 on chip for each after first.

#define XSTEPPIN I2SO(5)
#define XDIRECTIONPIN I2SO(6)
#define YSTEPPIN I2SO(4)
#define YDIRECTIONPIN I2SO(3)
#define ZSTEPPIN I2SO(1)
#define ZDIRECTIONPIN I2SO(2)

#define STEPPERSDISABLEPIN I2SO(15)

// Motor Socket #1
/*
#define XDISABLEPIN I2SO(0)
#define XDIRECTIONPIN I2SO(1)
#define XSTEPPIN I2SO(2)
#define XSTEPPERMS3 I2SO(3)

#define XSTEPPIN GPIONUM21
#define XDIRECTIONPIN GPIONUM22
#define YSTEPPIN GPIONUM4
#define YDIRECTIONPIN GPIONUM16
#define ZSTEPPIN GPIONUM15
#define ZDIRECTIONPIN GPIONUM2
*/
#define XLIMITPIN GPIONUM34
#define YLIMITPIN GPIONUM35
#define ZLIMITPIN GPIONUM32

// OK to comment out to use pin for other features
//#define STEPPERSDISABLEPIN GPIONUM13

#define SPINDLE_TYPE SpindleType::PWM
#define SPINDLEOUTPUTPIN GPIONUM2 // labeled SpinPWM
#define SPINDLEENABLEPIN GPIONUM4 // labeled SpinEnbl

//#define COOLANTMISTPIN GPIONUM21 // labeled Mist
//#define COOLANTFLOODPIN GPIONUM25 // labeled Flood

#define PROBEPIN GPIONUM_25 // labeled Probe
#define CONTROLRESETPIN GPIONUM26 // labeled Reset, needs external pullup
//#define CONTROLFEEDHOLDPIN GPIONUM_27 // labeled Hold, needs external pullup
//#define CONTROLCYCLESTARTPIN GPIONUM_14 // labeled Start, needs external pullup

#define USE_M30

//#define MACROBUTTON0PIN GPIONUM_12 // Pen Switch
//#define MACROBUTTON1PIN GPIONUM_35 // Color Switch
//#define MACROBUTTON2PIN GPIONUM_36 // Paper Switch
#define DEFAULTINVERTLIMIT_PINS 1
#define DEFAULTINVERTPROBE_PIN 1
#define DEFAULTHOMINGENABLE 1
#define USEMACHINEINIT
#define DEFAULTSTEPPULSEMICROSECONDS I2SOUTUSECPER_PULSE

void toolchangeprobetask(void* pvParameters);
// void usertoolchange(void* pvParameters);

/*
#define CONTROLSAFETYDOORPIN GPIONUM_35 // labeled Door, needs external pullup
#define CONTROLRESETPIN GPIONUM34 // labeled Reset, needs external pullup
#define CONTROLFEEDHOLDPIN GPIONUM_36 // labeled Hold, needs external pullup
#define CONTROLCYCLESTARTPIN GPIONUM_39 // labeled Start, needs external pullup
*/


评论 (1)

#1 – github-actions[bot] 于 2023-06-12

Dear ZchDude,
The attempt to convert your machine header-file into a FluidNc yaml file
failed due to one of the following possibilities:
1. Your machine file had an error. This can happen if you use an old machine file that
will not compile with the latest version of Grbl_Esp32
2. There is a bug in the converter program.
If you cannot resolve the problem, please contact us on Discord – https://discord.gg/MDsRDeNsTE


原始Issue: https://github.com/bdring/Grbl_Esp32/issues/1486

喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址