如何在Codesys上编程以从Beaglebone Black上的一根电线(DS18B20)温度传感器获取读数?

发布于 2025-02-07 06:28:07 字数 362 浏览 3 评论 0原文

我是Codesys(LD编程)的新手。

我制作的程序没有返回从小猎犬骨上连接的传感器中返回的任何读数,尽管它没有显示错误。

唯一的ID

我已经观看了同一任务的教程,但是对于Raspberry Pi,您可以直接在设备中提供传感器的唯一ID。不幸的是,对于Beagle-Bone Black,没有内置的一根电线主功能带有Beaglebone SL的CODESYS控件。因此,我不确定在哪里编写传感器的独特ID。

我制作的LD程序的图片

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.

Picture of the LD program I have made

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请你别敷衍 2025-02-14 06:28:07

不幸的是,就我搜索和测试而言,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:

Project with BeagleBone SL

Here I created a project with the Raspberry Pi:

enter image description here

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文