开源改变世界

为你的名字翻译 Machine.h #1171

推推 grbl 2年前 (2023-01-31) 210次浏览
关闭
faumi78 打开了这个问题 2022 年 4 月 26 日 · 1条评论
关闭

为你的名字翻译 Machine.h#1171

faumi78 打开了这个问题 2022 年 4 月 26 日 · 1条评论

注释

为你的名字翻译 Machine.h #1171

#pragma once
// 关闭 clang 格式

/*
3axis_xyx.h Grbl_ESP32
的一部分

This is a general XYZ-axis RS-485 CNC machine. The schematic is quite 
easy, you basically need a MAX485 wired through a logic level converter
for the VFD, and a few pins wired through an ULN2803A to the external 
stepper drivers. It's common to have a dual gantry for the Y axis.

Optional limit pins are slightly more difficult, as these require a 
Schmitt trigger and optocouplers.

2020    - Stefan de Bruijn

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/>.

CNC 3 Axes avec 2 moteurs en Y et 2 switch limits separés.
Le homing des 3 axes est séparé et les axes Y gauche et droit se font séparément sur les derniers milimètres.
La config de la machine n'est pas intégré a ce fichier.

*/

#define MACHINE_NAME “Cnc_3Axes_Ysquarred_michel avec 参数”

定义 DEFAULT_HOMING_CYCLE_0 位 (Z_AXIS)

定义 DEFAULT_HOMING_CYCLE_1 位 (X_AXIS)

定义 DEFAULT_HOMING_CYCLE_2 位 (Y_AXIS)

#define DEFAULT_HOMING_SQUARED_AXES 位(Y_AXIS)

#define X_STEP_PIN GPIO_NUM_14 // 标记为 X
#define X_DIRECTION_PIN GPIO_NUM_12 // 标记为 X
#define Y_STEP_PIN GPIO_NUM_33 // 标记为 Y
#define Y_DIRECTION_PIN GPIO_NUM_25 // 标记为 Y
#define Y2_STEP_PIN GPIO_NUM_32 // 标记为 Y2
#define Y2_DIRECTION_PIN Y_NUM_33 // 标记为Y2
#define Y2_DIRECTION_PIN Y_NUM_33 // 标记为Y Z_STEP_PIN GPIO_NUM_26 // 标记为 Z
#define Z_DIRECTION_PIN GPIO_NUM_27 // 标记为 Z
#define STEPPERS_DISABLE_PIN GPIO_NUM_13

#define SPINDLE_TYPE SpindleType::PWM
#define SPINDLE_OUTPUT_PIN GPIO_NUM_17 // 标记为 SpinPWM

#define X_LIMIT_PIN GPIO_NUM_4
#define Y_LIMIT_PIN GPIO_NUM_2
#define Y2_LIMIT_PIN GPIO_NUM_16
#define Z_LIMIT_PIN GPIO_NUM_15

// 设置 $Homing/Cycle0=X 和 $Homing/Cycle=XY

#define PROBE_PIN GPIO_NUM_22 // 标有探针
#define CONTROL_SAFETY_DOOR_PIN GPIO_NUM_35 // 标有门,需要外部上拉
//#define CONTROL_RESET_PIN GPIO_NUM_34 // 标有复位
#define CONTROL_FEED_HOLD_PIN GPIO_NUM_36 // 标有Hold
//#define CONTROL_CYCLE_START_PIN GPIO_39 //_NUM_39

#define INVERT_CONTROL_PIN_MASK B1100 // Pour la securité utilize une boucle fermée c’est a dire un contact NC mais la carte boitier inverse le signal
// #define INVERT_CONTROL_PIN_MASK (0<<CONTROL_PIN_INDEX_SAFETY_DOOR) 其他解决方案倒入逆变器

// #define VFD_DEBUG_MODE

#define DEFAULT_STEPPING_INVERT_MASK 0 // uint8_t $2
#define DEFAULT_DIRECTION_INVERT_MASK 5 // uint8_t $3
#define DEFAULT_INVERT_ST_ENABLE 0 // 布尔值 $4
#define DEFAULT_INVERT_LIMIT_PINS 1 // 布尔值 $5
#define DEFAULT_INVERT_PROBE_PIN $6 // 布尔值

#define DEFAULT_STATUS_REPORT_MASK 1 // $10

#define DEFAULT_JUNCTION_DEVIATION 0.01 // mm $11
#define DEFAULT_ARC_TOLERANCE 0.002 // mm $12
#define DEFAULT_REPORT_INCHES 0 // false $13

#define DEFAULT_SOFT_LIMIT_ENABLE 1 // 假 $20
#define DEFAULT_HARD_LIMIT_ENABLE 0 // 假 $21

#define DEFAULT_HOMING_ENABLE 1 // $22
#define DEFAULT_HOMING_DIR_MASK 1 // $23
#define DEFAULT_HOMING_FEED_RATE 200.0 // mm/min $24
#define DEFAULT_HOMING_SEEK_RATE 4000.0 // mm/min $25
#define DEFAULT_HOMING_DEBOUNCE_DELAY 100 // msec (0-65k) $26
#define DEFAULT_HOMING_PULLOFF 2.0 // 毫米 $27

#define DEFAULT_SPINDLE_RPM_MAX 24000.0 // rpm $30
#define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm $31

#define DEFAULT_LASER_MODE 0 // 假 $32

#define DEFAULT_X_STEPS_PER_MM 100 //$100
#define DEFAULT_Y_STEPS_PER_MM 100 //$101
#define DEFAULT_Z_STEPS_PER_MM 100.0 // 这是伺服模式下的百分比 $102

#define DEFAULT_X_MAX_RATE 3000.0 // 毫米/分钟 $110
#define DEFAULT_Y_MAX_RATE 3500.0 // 毫米/分钟 $111
#define DEFAULT_Z_MAX_RATE 2000.0 // 毫米/分钟 $112

#define DEFAULT_X_ACCELERATION 300.0 // 毫米/秒^2。500 毫米/秒^2 = 1800000 毫米/分钟^2 $120
#define DEFAULT_Y_ACCELERATION 150.0 // 毫米/秒^2 $121
#define DEFAULT_Z_ACCELERATION 300.0 // 毫米/秒^2 $121

#define DEFAULT_X_MAX_TRAVEL 375.0 // mm 注意:必须为正值。$130
#define DEFAULT_Y_MAX_TRAVEL 555.0 // mm 注意:必须为正值。$131
#define DEFAULT_Z_MAX_TRAVEL 173.0 // 这是伺服模式下的百分比 $132

为你的名字翻译 Machine.h #1171
github-动作 机器人 评论了 2022 年 4 月 26 日

亲爱的 faumi78, 由于以下可能性之一,
尝试将您的机器头文件转换为 FluidNc yaml 文件失败:

  1. 您的机器文件有错误。如果您使用
    无法使用最新版本的 Grbl_Esp32 编译的旧机器文件,就会发生这种情况
  2. 转换器程序中存在错误。
    如果您无法解决问题,请在 Discord 上联系我们 – https://discord.gg/MDsRDeNsTE