如何在Codesys上编程以从Beaglebone Black上的一根电线(DS18B20)温度传感器获取读数?
我是Codesys(LD编程)的新手。
我制作的程序没有返回从小猎犬骨上连接的传感器中返回的任何读数,尽管它没有显示错误。
唯一的ID
我已经观看了同一任务的教程,但是对于Raspberry Pi,您可以直接在设备中提供传感器的唯一ID。不幸的是,对于Beagle-Bone Black,没有内置的一根电线主功能带有Beaglebone SL的CODESYS控件。因此,我不确定在哪里编写传感器的独特ID。
I am new to Codesys(LD programming).
The program I have made is not returning any readings from the sensor connected on my beagle-bone though it shows no errors.
Unique ID
I have watched tutorials for the same task but for Raspberry pi, there you can give the Unique ID of the sensor in device directly. Unfortunately for beagle-bone black there is no inbuilt One wire master function comes with the CODESYS control for beaglebone sl. So i am unsure where to write the unique ID of the sensor.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,就我搜索和测试而言,beaglebone似乎并不兼容,因为当您包含Raspberry Pi时,OneWire连接器不会像在树上一样出现。您需要此连接器来连接OneWire_Master和传感器,然后配置以用于程序中。
在这里,我用 beaglebone sl 创建了一个项目,您的是黑色模型,但是我们可以在您的项目照片中看到相同的内容:
strong>覆盆子pi :
也许3S/CODESYS将来会开发并在BeagleBone中包含一个连接器,请尝试这个论坛,那里有人可能还有一些其他信息...
Unfortunately, as far as I've searched and tested, the Beaglebone doesn't seem to be OneWire compatible, because the OneWire connector doesn't appear in the tree like it does when you include a Raspberry Pi. You need this connector to attach the OneWire_Master and Sensors, and then configure for use in the program.
Here I created a project with Beaglebone SL, yours is the Black model, but we can see the same thing in your project photo:
Here I created a project with the Raspberry Pi:
Maybe 3S/Codesys will develop and include a connector in the future to the Beaglebone, try this forum, someone there may have some additional information...