Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 Lib
https://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
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now