Contact me: hankecnc@gmail.com

我有常闭限位开关。我要在头文件中更改什么? #1111

推推 grbl 3年前 (2023-01-23) 138次浏览

关闭
PeterGrace 打开了这个问题 2016 年 10 月 18 日 · 1条评论
关闭

我有常闭限位开关。我要在头文件中更改什么?#1111

PeterGrace 打开了这个问题 2016 年 10 月 18 日 · 1条评论

注释

我有常闭限位开关。我要在头文件中更改什么? #1111

我正在寻找一些关于我需要为我的常闭限位开关配置什么的反馈。

我在配置标头中看到:

// Inverts pin logic of the control command pins. This essentially means when this option is enabled
// you can use normally-closed switches, rather than the default normally-open switches.
// NOTE: If you require individual control pins inverted, keep this macro disabled and simply alter
//   the CONTROL_INVERT_MASK definition in cpu_map.h files.
// #define INVERT_ALL_CONTROL_PINS // Default disabled. Uncomment to enable.

我想知道这是否也会反转探针的逻辑?如果是这样,我可能不想要那样。

然后我看到:

// Inverts select limit pin states based on the following mask. This effects all limit pin functions,
// such as hard limits and homing. However, this is different from overall invert limits setting.
// This build option will invert only the limit pins defined here, and then the invert limits setting
// will be applied to all of them. This is useful when a user has a mixed set of limit pins with both
// normally-open(NO) and normally-closed(NC) switches installed on their machine.
// NOTE: PLEASE DO NOT USE THIS, unless you have a situation that needs it.
// #define INVERT_LIMIT_PIN_MASK ((1<<X_LIMIT_BIT)|(1<<Y_LIMIT_BIT)) // Default disabled. Uncomment to enable.

这看起来像一个赢家,但它说“请不要使用这个”,让我觉得我应该修改 cpu_map.h,好的!我去那里看看。我在想这条线是我需要的:

#define LIMIT_MASK ((1<<X_LIMIT_BIT)|(1<<Y_LIMIT_BIT)|(1<<Z_LIMIT_BIT)) // All limit bits

所以我想我的 TL;DR 是——如果我只有 X、Y、Z 的 NC 开关,我应该更改这些设置中的哪些设置?

我有常闭限位开关。我要在头文件中更改什么? #1111
成员

@PeterGrace: 没有。您需要更改 Grbl$设置以在连接到 Grbl 时反转限制引脚。

喜欢 (0)