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.

Link to comment
Share on other sites

  • 8 months later...

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
 

Link to comment
Share on other sites

  • 2 years later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.