Can you give an example using modbus poll software insted of python ? becaue i have done the same exact configuratio but i am not able to get any data on Modbus poll
Hello,using putty i can receive data from my sensor but it won't take commands.Im using a usr tcp232 serial to ethernet converter.If i use a moxa it works fine.any ideas?
@@ab565188 are you receiving any error while transferring from putty ? One thing what you can try is capture the signals using a logic analyser and compare what’s the difference while transmitting via moxa and putty It might help you get better picture
hey there, nice video. I‘ve seen on github you are providing two sketches. Client, there is the code for the slave. And Server, there is the code for Master. But it must be Master = Client and Server = Slave …. right ? Best Regards Nils
Hello, I am trying to do the same thing, collecting data for a project. We have a Schneider EM6400NG+ at our college. I want to connect it to rPI-4 with a USB to rs485 port. I want to get info on registers but I can't seem to find them online for that particular model. Any help will be appreciated very much❤.
@@sarathtv Thanks for the quick reply. I got an xls file for the 6400NG model listed under software section of 6400NG+ model. So they both might have the same sheet. I will try connecting it to pi.
@@sarathtv I tried connecting earlier today, I coded similar to you with my register values and I got this output ile "/home/d8/Desktop/SubStation/Sub_Station_test.py", line 20, in <module> decoder_power = BinaryPayloadDecoder.fromRegisters(response_power.registers, byteorder=Endian.Big, wordorder=Endian.Little) AttributeError: 'ModbusIOException' object has no attribute 'registers' Any fix for this? I lookedup online and increased my time to 20sec but no use.
@@haziqrzl4475 that is the print from the voltage conversion function In the code there would be a response code from modbus in case the communication with the meter is not successful
Hi sir, We are also doing our project with Elmeasure 6435 with TTL to RS 485 using Arduino. I want to export data from meter to Arduino. Kindly give some guidance sir.
Hi sir thanks for the video, I have 10 schneider analysers and I use gateway, how I can implement slave number into this code? Because I have 10 analysers in to one IP address.
Hey brother i really appreciate your work, And i also have small doubt. I have danfoss VFD i have to read operating hours that value is in uint32 format how to read that format in esp32 please help me Thank you, i hope your prompt response is much appreciated 🙏🙏
Hey thanks for dropping ur comment. If u need to read a register value which is stored in 32 bit register u will need to give the 4th argument for mbreadHreg as 4 to indicate u need to read 4 bytes of value
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
Nice project. I also do a similar project with esp32 and modbus RTU. In addition, in order to make the user to operate easily, I apply the wifi function of esp32 to make the user to operate by brower interface, including start, stop and export data of gauge.
hello sir , i want to connect my secure elite 300 meter with esp8266 with using rs485 to ttl converter ,can you help me with the code to read the resister address i want to read
Hi I have another video where i am reading Smart meter data using esp8266 over modbus RS485 use this link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-b4HFpmO1g4c.html
You can watch this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GH3zNmhsKu4.html Here I have used a arduino blue pill for modbus communication Source code is shared in the video description
@@gampangingat_id seems like some wrong selection in board You can do one thing Check to which pin the D3 of ur node mcu is mapped and replace it into the code
Hello sir, can you answer my questions? A Modbus master sends a request to a slave to read several registers. The slave responds with the following Modbus message: "040302025874DE". 1. What is the Modbus function code used in the request from the master to read several registers of the slave? 2. What is the address of the first register to read in the master request? 3. How many registers to read in the master request? 4. Complete the following table to decode the Modbus message sent by the slave by responding to the What is the request sent by the Modbus master to read the slave registers from the address of departure 00 64
Hi Thanks for your feedback Please do share this with anyone who might it useful. Also I have few more series of videos In case you want to use a microcontroller rather than rpi
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);".
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
i have two queries 1. can you able to brief the A & B cable connection in energy meter.....2. How to assign the local port, remote port as well as Http port
@@kanarendran the module comes with a default local port using that u can access the configuration page In that page u can modify the port number if u like
Hi sir, Can you please help me to communicate MM300(GE) Motor using ESP8266 over Modbus, just want to know how to correctly declare the address of the shift register, it has 6 number
Dear Sir, 1) kindly share the same format sample code for schneider EM6400NG Smart Meter, i have tried so many ways still i got nothing, myself use the same pymdbus library and payload library but no response, (Error: Attribute has no registers). kindly help me sir
@@kirankumarswain4361 did u add the check ?? while(mb.slave()) { // Check if transaction is active mb.task(); delay(100); } For the second read request??