Donations :

Support This Project
Code : Support
Get Modbus simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

32days since
I'll be jobless.

on CodeGuru.com



on SoftPedia

FAQ

  • Q: What is a MODBUS RTU?
    A: It's a PLC, if that does not make sense, visit www.modicon.com .
  • Q: Where do I get the protocol documentation?
  • A: Visit www.modicon.com, and search for PI-MBUS 300. The docs are copyright, but free, hence I do not publish them.
  • Q: I found a bug.
  • A: Log it in the Bug tracker here Sourceforge if you don't you cannot win.
  • Q: How do I do XYZ? 
  • A: Some program features are not documented at this time, look around. If you get stuck, e-mail me.
  • Q: MODBUS function 5 returns the old register's value
  • A: There is however one variation on the MODBUS documentation, for function force single coil 0x05 -the simulator responds with the value before modifying the actual coil, not after modifying the coil. This was wrong, but was easiest to implement, and there is now a setting for this. (See Emulation settings - Hotkey <CTRL>-M)
  • Q: Where is the help file?
  • A: The help-file is all in HTML, Just press F1 anywhere, and your browser will open a locally generated help-file.
  • Q: How do I go about using Matlab's modbus driver with the simulator? 
  • A: The Matlab driver starts at address 1, not 40001, so Holding registers 1,2,3 in Matlab are modbus registers 1,2,3.
  • Q: Can the simulator work as a Master?
  • A: No it does not simulate modbus masters, there are plans for a master which can be used to certify a slave-controller in the future. This development is going to depend on a separate licensed system if it ever is released. I do get this question quite often, and the proper answer is very complicated indeed because a master requires quite a lot of configuration before it will poll slaves in a usefull fashion. I believe that may explain why I never wrote a full master and only have a master that implements integration-tests at the moment.

  • Q: Where is the Source?
  • A: From the SVN repository on Sourceforge, here's how : if you have a client already, skip step 1.
    1. Install subversion client from http://subversion.tigris.org/, select your operating system and install the client
    2. Open command prompt, and go to folder you want to retrieve source to
    3. Paste the next line into the prompt and hit enter
    svn co https://modrssim.svn.sourceforge.net/svnroot/modrssim modrssim

    It will open and compile under Visual Studio 6 or 9.

  • Q: Why does the simulator not allow me to connect over TCP after 10 retries?
  • A: This was a simulation option emulating non-graceful socket close (no FIN-ACK) to simulate broken WANs, if I can get funding I may make this a settable option.

Visit the Links page for additional resources.