Pages: [1]   Go Down
Author Topic: modbus  (Read 515 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

has anyone tried to communicate with an arduino using ModBus or TCP/IP?  Are there protocols for this already?
Logged

Australia
Offline Offline
Full Member
***
Karma: 6
Posts: 161
You dont have to touch powerlines for them to kill you, even looking at them for too long will make them angry.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have never used ModBus, but there are plenty of ethernet shields avaliable for use with the arduino, it would just be a case of making them output the data you need, the TCP-IP stack should be included in the shield itself, so it is just a case of making the data become ModBus compatible.
Logged

"Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent di

Ontario
Offline Offline
God Member
*****
Karma: 20
Posts: 835
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a MODBUS master implementation:  http://arduino.cc/playground/Code/ModbusMaster

I didn't look super hard, but Google seems to know quite a a lot about "arduino modbus"
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am using it alot
my work is based of modbusmq

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1271505778
http://bazaar.launchpad.net/~marioquark-yahoo/modbusmq/modbusmq/files

however i found a small bug with using IP address containing zeros (192.168.0.1)
to fix find any strncpy in the code and replace with memcpy
Logged

Pages: [1]   Go Up
Jump to: