4felo Posted June 1, 2017 Share Posted June 1, 2017 Finally got multiple arduino slaves being monitored and controlled by Daqfactory. I've been working on this for the past 2 weeks and found no documentation available. I'm able to read analog inputs registers, write to and monitor PWMs registers, read & write to digital pin registers. Communication is through two wire modbus RTU. It's simply fascinating, i can literally monitor an control any of my inputs/outs in real time using cheap arduino unos. Stuff that is done by some really expensive PLCs out there. I'm still making some documentation, but if any of you need assistance post in the forum. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted June 1, 2017 Share Posted June 1, 2017 I'm assuming the no documentation comment is about the Arduino side? Quote Link to comment Share on other sites More sharing options...
svego Posted February 8, 2018 Share Posted February 8, 2018 please share arduino code with others...what board did you use ? Quote Link to comment Share on other sites More sharing options...
4felo Posted February 14, 2018 Author Share Posted February 14, 2018 Sorry it took long, forgot about it. arduino code and daqfactory sample program are attached bellow. Just follow the Readme.txt MAX485_TO_arduino_TO_DAQfactory.rar (Works with MAX 485 and arduino Uno) 1. Download Daq Factory Express and load the DAQFactory Document. 2. Load "SimpleModbs_DEMO' to the arduino, make sure to check for slave ID. 3. Double check the configuration settings in Daq factory. Especially the ***PORT NUMBER.*** There are multiple working libraries for implementing modbusRTU on arduino. 1. ModbusMaster ----- Works with only one slave and Master, modification may be needed to implement multiple nodes.http://playground.arduino.cc/Code/ModbusMaster 2.SimpleModbus (current) 3. Modbusino---- Modification of the simpleModbus Libhttps://github.com/stephane/modbusino 4. Modbus-Master-Slave-for-Arduino ---- Single library that contains code for both master and slave.https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino Quote Link to comment Share on other sites More sharing options...
Aditya Posted June 11, 2020 Share Posted June 11, 2020 can you please share circuit diagram for multiple slaves Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.