Forum Home › Forums › Communicating with Devices › Modbus › arduino
Tagged: Arduino UNO, modbus
- This topic has 25 replies, 8 voices, and was last updated 7 years, 3 months ago by
ArnyLogan.
-
AuthorPosts
-
April 13, 2018 at 11:28 am #3487
MikhailModeratorWhat mgsmodbus allows you to do, in short?
April 13, 2018 at 5:33 pm #3494Pieter
ParticipantArduino library to use arduino as modbus device.
“The library gives the program the possibility to be a master, a slave or both on a TCP network.
The Modbus functions 1, 2, 3, 4, 5, 6 15 and 16 are implemented.”I have used this library successfully with kepserver enterprise and Kepware to communicate with Rockwell Factory talk view SE and panel views.
April 14, 2018 at 1:47 pm #3500
MikhailModeratorThank you!
Does it work with Arduino Nano and Uno?April 15, 2018 at 12:52 am #3503Pieter
ParticipantI have used it with arduino mega and uno using w5100 ethernet shield.
I have not tested it with nano.April 19, 2018 at 6:40 pm #3558Pieter
ParticipantI suppose it would work with a nano aswell via serial coms.
I have one sonewhere, will find it and test.April 20, 2018 at 10:18 am #3562
MikhailModeratorThank you.
April 28, 2018 at 11:33 pm #3635Pieter
ParticipantUpdate: I can confirm that the Nano v3, and the Uno aswell as the Nano loaded with optiboot can work with Rapid scada via modbus RTU.
I can not remember where I downloaded the modbus slave library.
I suppose any modbus slave library should work.
I will try to locate it in github.
MGSmodbus does not support rtu.April 30, 2018 at 3:18 pm #3643
MikhailModeratorUseful, thank you 🙂
April 30, 2018 at 7:06 pm #3648Pieter
ParticipantI found it. I used this modbus slave labrary here.
It was a bit difficult to set it up first because I was used to mgsmodbus.
July 12, 2018 at 2:49 pm #3990Ninse
ParticipantHi everybody!!!
The slave library provided by Pieter works just fine, i am doing some test with an Arduino UNO and communicating with the MODBUS RTU (via serial/COM3) and the board broadcast information to the Rapid Scada Communicator….
The Problem now (not a very big deal) is getting a Device Templete for Arduino…
Do Somebody have one??? it would be very helpfull!!!, even a screenshoot!!
Thanks a lot
Diego
-
This reply was modified 7 years, 4 months ago by
Ninse.
August 16, 2018 at 6:36 pm #4143ArnyLogan
ParticipantHi..i dont think you need to use RS485 for this. Just connect a PC straight up to your freshly programmed arduino, and run some sort of MODBUS master or test software, using the register number as listed in the code. Remember, in the SCADA software do not use the whole address number, for instance, to access pin 2, you would be reading a COIL on Slave 1 at address 2, not address 10002. Some SCADA packages use ZERO offsets, so subtract 1, so the address for pin 2 would be 1.
-
This reply was modified 7 years, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.