Arduino Asked by A.H. Shukry on September 25, 2021
We are building a circuit based on ATMega328* that :
The circuit should be connected as a ModBus Device (Slave) to an existing
Modbus network with several other devices on an RS485 interface.
The circuit should communicate all these calculated values and alarms
as well as some other info, like peak/max values with date and
time stamps that were recorded at their time of occurrence, to the
Modbus Master. We have the freedom of allocating the register numbers
and their formats etc. (Modbus Map) to the controller’s vendor (SAUTER).
For example we tell them Register 30001 is the current sensor x,
30002 is voltage sensor y, etc.
We think that sending time stamps (of certain events) will be based on
"agreed-upon" coding of register values (MM, DD, YYYY, etc.) and the
same for alarms (to be sent as hex codes).
We have searched for libraries and got really confused from the
multitude of libraries out there, as well as the lack of documentation -:)
Can you please kindly help us :
select the proper Arduino Modbus Slave Library that :
We found the "yaacov" library on Github but it assigns registers directly to "Pins".
Also we looked at its "issues" and one of them was very serious : in which frames
coming from the Master with corrupted CRC gets responded to and causes collision
with other slaves. We dont like that ! as it indicates that the library was not tested
in true industrial environment.
We also found that the Library at :
https://electronhacks.com/2014/04/arduino-modbus-plc-rtu/
somewhat fits to our requirements, however it lacks the RS485 support, and more
important, it has no documentation.
We really appreciate any kind support.
Thank you.
With my post approaching one month without a single reply :smiley-confuse: ! (for whichever reason) I would like to post for those who may need this library :
The library is based on the original one written by Jason Vreeland [CodeRage] Released 3/7/2010 under GNU license
and was used (and possibly modified) by "jhottell" on electronhacks.com :
https://electronhacks.com/2014/04/arduino-modbus-plc-rtu/
The major difference is the use of RS485.
I have written code and tested it on an "UNO" which worked perfectly with more than one ModBus Slave Simulator under windows, including DAQ Factory which is a professional package used in actual industry.
Answered by A.H. Shukry on September 25, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP