注释
成员
|
是的,这是有道理的。 //set slave id according to each mb_tx
ret = modbus_set_slave(this_mb_link->modbus, this_mb_tx->mb_tx_slave_id);
if (ret != 0) {
+ (**this_mb_tx->num_errors)++;
ERR(this_mb_tx->cfg_debug, "mb_tx_num[%d] mb_links[%d] cannot set slave [%d]",
this_mb_tx_num, this_mb_tx->mb_link_num, this_mb_tx->mb_tx_slave_id);
return retOK; //not connected
}
|
贡献者作者
|
好的,听起来不错。我添加计数器的第二个地方。我用它来监视断开的连接并在连接断开时触发紧急停止。我想为 LinuxCNC 项目做更多的事情,但我的编程技能还处于初级阶段。 |
成员
|
@andrewheeler82我建议为此打开一个拉取请求。那么你就有更好的机会让这个变化进入 master |
贡献者作者
|
好我会检查? |


我使用 LinuxCNC 已有 10 多年了。从并行端口开始,现在正在路上使用 Mesa 7i96。我通过 MB2HAL 运行我的 VFD,我注意到两件奇怪的事情。我为此创建了一个补丁,也许 MB2HAL 的开发者可以看看它。它目前对我来说效果很好。
mb2hal.补丁