advertisement
from the Forum department...
Software simulator as Modbus device
Communications systems and equipment. topic
Posted by dan on 16 June, 2009 - 6:29 pm
Hi, all,

New to Modbus.

Trying to make a software simulator as Modbus device and sends back a small database content when requested. Now just trying with a ASCII file. What is best way to store this content as Modbus object?

appreciate your help very much in advance.


Posted by M Griffin on 17 June, 2009 - 3:06 am
Your question is not very clear. What do you mean by "store this content as Modbus object"?

Modbus is a communications protocol. Modbus servers (or slaves) normally represent their data as a data table of registers, coils, and discrete inputs. It may be convenient to store the data in an array. However, it is really up to whatever is most convenient for your implementation.


Posted by Mark on 17 June, 2009 - 1:27 pm
If your Modbus Server (slave) needs to run on Windows, check out Automated Solutions website for a Modbus Slave ActiveX Control that supports RTU, ASCII, and TCP.

Your application just reads/writes register arrays on the ActiveX Control. The ActiveX Control then handles all the Modbus stuff behind the scenes.

http://automatedsolutions.com/products/modbusslave.asp

-Mark
http://automatedsolutions.com


Posted by Harvard on 17 June, 2009 - 3:31 pm
I think you are asking for a ModBus Slave Simulation application that will respond to any ModBus Host poll. If that is the case what application are you using as a Modbus Host? Are you wanting to do this with a Modbus Slave that runs on WIN32? Also, are you wanting to do this with Serial Ports or Ethernet?


Posted by pvb on 18 June, 2009 - 4:34 am
You can implement this with our rlModbus class for example.
http://pvbrowser.de/pvbrowser/sf/manual/rllib/html/classrlModbus.ht ml

or google: rlmodbus

This will work on almost any operating system and using TCP or serial line.

Use our project
http://pvbrowser.org

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
"First things first -- but not necessarily in that order"
-- The Doctor, "Doctor Who"
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive