Hello innovators!
If you have Modbus data and you want to make it accessible from the internet, this video could be a perfect solution for you.
The goal of this project is to publish Modbus TCP data to MQTT so we can access it from anywhere and any application.
This is a Modbus IOT (internet of things) project.
Before you start, there are a few things you have to prepare:
1. get access to a MQTT broker. We will use Miqottt.com as a FREE MQTT broker. All you need to do is easily register, login and create a topic.
2. a Modbus device or simulator. We will use ModbusHD. You can get it from this link: https://youtu.be/gmmLis3Vk6Y
3. Visual Studio 2022 as an IDE for creating a project.
4. an application to check MQTT data. We will use MQTT Explorer.
These are the steps:
00:00 - intro
00:10 - create a new VB WinForm project
04:26 - login to Miqottt.com to get MQTT topic
05:04 - configure Modbus Register address
08:32 - install package: EasyModbus, M2Mqtt
10:07 - Scripting
19:53 - test Modbus with ModbusHD
20:32 - scripting MQTT client
24:41 - test MQTT with MQTT Explorer
Thanks, and have a nice day!
0 komentar:
Post a Comment