I'm struggling. Tried all day yesterday to figure out downtown get modbus tcp/ip up and going. Either it can't be done or the resources are slim to none.
Hi Sir hope you are doing well. Sir please can you help me I'm a student and having issues in master slave model using Arduino mega and rs485 as a master and other equipment as a slave by master sends data successfully but slave having issue in data sending data will not received in master side. Arduino mega is Master.
nice tutorial, I had tested it with atmega128A and its work nicely. Already going around to get modbus tutorial but none of them compatible with my board except your code. thanks in advance
it should work if there is enought memory? are there any error codes upon compile? If you change the right tx/rx pins why would there be a difference? Clock speed should not matter as long as the atmel processor is fast enought for the set baudrate?
Merhaba Ulaş Bey, Arduino ile modbus konusunda yardıma ihtiyacım var. Sensörden aldığım 1 bilgisini modbus değerine yazmak istiyorum. max485 ve ttl to usb dönüştürücü aldım. Çeşitli kütüphaneler buldum ama sadece bir kütüphane ile dizi şeklinde yazdırabiliyorum. Ben örneğin arduinonun 5. pinindeki sensörden aldığım bilgiyi modbus 400 adresine yazdırmak istiyorum. Bu konu hakkında yardımcı olabilir misiniz ?
hello Hulas. I`m working with your code with an arduino 1 but I`ve a problem, arduino uses com10 and modbusMAT1.1 said: "com 10 does exist" , the same ij port 2...somebody had the same error???
Merhaba rs485 SimpleModbusSlave çalışan bir sistemim var.Ani elektrik gidip gelince tüm hat bad veriyor.Elektrik kapatıp 10 sn sonra açınca düzeliyor.Bunun için ne yapabilrim.
Hello everybody. First it is good tutorial. But this tutorial is not working. i have Ardiuno Uno. Can you tell me how to equal register of Ardiuno Uno and Ardiuno Mega? if you know please tell me
hye. i read and also watched some materials on this topic.but i could not see and relate it to real life example.what i read and watched were some address of coils, start and stop bit. Can you make an example say one master is requesting a temperature value from a slave. what will be the start, stop,address and function sent by master and responded by slave.
This is not a real example ofcourse. Actually this is what before real. If you understand basic level then the next levels just take your time. If you want to read temp value which analog value, then you need holding register which function number is 03. Just one thing, do not look the picture like reading temp or any other paramaters. Modbus protocol does not care what you read just sending or receiving data is suitable or ok. by the way, thanks for your comment : )
EDIT: i needed to restart computer after changing ports .....i already changed my mega port to COM8 but Modbusmat now doesnt even Open the port ( i tried my sketch with arduino uno COM7 and i know it works)
it is assigned to the integer which is used for slave id. normally you need an interface yo choose the slave id of the device. you can assign any value it depends on you for this
Simple. You should change the representation. For ınstance when you send 100 in RTU you send just 100 . But in ascii you should convert 100 to hex which is 64 then send first 6 after 4 which makes 100 will be send. But ascii is old If I were you I try to find a way to use RTU.
Thanks for answer! OK, I'm working with de device (energy meter) ED39din its work with the RTU, MODBUS and IEEE protocol. However, actually i have a problem and the handbook say "The energy counters can only be reset using the special Modbus command on the serial line." I need to reset the counters but i can not. In this link you can see the handbook goo.gl/JRVrNy
Merhaba Ulaş bey, Ben arduino kullanarak Fotek marka bir dijital termostat'dan modbus ile sıcaklık bilgisi okumak istiyorum. Bunu nasıl yapabileceğim konusunda yardımcı olabilirmisiniz? Teşekkür ederim.