Тёмный

Modbus using ESP8266 NodeMCU 

sarath tv
Подписаться 395
Просмотров 9 тыс.
50% 1

In this video you will learn how to communicate over modbus using NodeMCU ESP8266
NOTE : In the video at 5.01 i mentioned the pins connected to D0 of ESP8266 as RE/DI but the correct pins are RE and DE not DI.
Links::
Github Link github.com/sarathtv/Modbus_ES...
Arduino library : github.com/emelianov/modbus-e...
Software serial library : docs.arduino.cc/learn/built-i...
Hardware Details
ESP8266
MAX485 To TTL converter
Trim pot
Led
Music by Bensound.com/royalty-free-music

Опубликовано:

 

10 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@substandard649
@substandard649 Год назад
Thank you. This was really useful and the best modbus guide I have found anywhere. Just a minor tweak would be to make the background music quieter, it was very hard to hear what you were saying, and that information was valuable!
@sarathtv
@sarathtv Год назад
Thanks you. I am amateur in video editing,sorry for that background music.will take care of it 🙌
@sanjaybhatikar
@sanjaybhatikar Год назад
Nice video, thank you.
@sarathtv
@sarathtv Год назад
Thank you for your feedback 🙂
@pedropanta4029
@pedropanta4029 Год назад
Hello friend, Could you help me to use this library to configure a NodeMCU as slave and communicate with a PLC by Modbus RTU?
@sarathtv
@sarathtv Год назад
Yeah I would like to give it a try Can you share the details via mail sarathtv2@gmail.com Share the requirements and any documentation if possible
@Maxi-pn3wd
@Maxi-pn3wd Год назад
hello sarath tv,thanks for sharing the video,it is very good. I have a question about server: if (!mb.slave()) { while(mb.slave()) { mb.task(); } delay(10); } mb.slave() is a variable that is set to false or true depending on whether it is available to communicate with a slave or not? and if so, what exactly does mb.task() do? is something internal to the library that always has to be executed every time you want to send something. and in the client I do not understand what function "mb.Hreg(POT_VAL_REG, 0);" performs. I understand that 10 records of the holding register type are already defined with "mb.addHreg(POT_VAL_REG);".
@sarathtv
@sarathtv Год назад
Hi @Maxi-pn3wd The mb.slave() works like this - Master mode: Returns slave id for active request or 0 if no request in-progress. and the task() is a Processing routine. it Should be periodically called from loop(). mb.Hreg(POT_VAL_REG, 0) is a local write api ie it loads the the holding register with address "POT_VAL_REG" with a value 0. I am just initializing the register with zero. addHreg is for adding register to the device. Hope i could clarify your doubts. You can verify these from the the original library github.com/emelianov/modbus-esp8266/blob/master/documentation/API.md
@Maxi-pn3wd
@Maxi-pn3wd Год назад
@@sarathtv thank you very much for the answer and sharing this video!!! greetings
@sarathtv
@sarathtv Год назад
@@Maxi-pn3wd you are welcome I have few more videos on micro controller based modbus communication Do check those out if interested
@jizonas3243
@jizonas3243 8 месяцев назад
hi ! could you help me to send a string using this
@sarathtv
@sarathtv 8 месяцев назад
Hi generally modbus is used to transfer numerical values If you need to transfer a string you can use a series of registers and set the content as your string has characters and let the master ask for all registers. Then the master can reconstruct the string from this information. I haven’t personally tried to send strings
@aymenaamir9586
@aymenaamir9586 Год назад
Can you share the arduino code for this?
@sarathtv
@sarathtv Год назад
Hi The link for the code is shared in description itself
@varunn8055
@varunn8055 Год назад
I am getting an error for this code Can you please guide me out
@sarathtv
@sarathtv Год назад
Hi What’s the error you are getting
@MCSTNDTCAFAG
@MCSTNDTCAFAG Год назад
Good video but the music, way too loud makes, it hard to understand what you are saying. Thanks anyway.
@sarathtv
@sarathtv Год назад
Thanks for your feedback.i will take care of this for future videos.
Далее
지민 (Jimin) 'Who' Official MV
03:28
Просмотров 13 млн
Python Modbus
16:31
Просмотров 19 тыс.
Log data from modbus meter to Raspbery pi (SDM630)
11:17