CSV File Automatic Importer

GTo get to the importer, right-click on the title-bar to get the system menu, select "CSV Importer". Basically the simulator watches a folder for a new file, and when it exists, it loads it automatically, it was designed for playback - and auto-opens a file every 15 minutes - for that, the filename must be equal to the current date and time. The filename is HHMM.csv - and must live in a folder for the date in format YYYYMMDD.

It is possible to load one file manually, one at a time by browsing the file in, and then clicking OK, and not enabling the auto-importer function checkbox. It's probably this that you want to use. It can only load a specific number of columns (registers), you will get the idea when you see the attached file. It is not possible to change the number of columns, but I believe you can add more complete rows so long as you do not exceed the total holding registers. The top row of CSV is ignored by the import, it is basically there for convenience.


Command-line Interface

Makes it possible to run 2 simulators on different ports or protocols at the same time without re-configuring each time. The command-line feature also allows a level of automated testing for me.

  • Set TCP/IP mode and port#

mod_rssim modtcp:512

will select modbus TCP/IP and port 512 (note how the port number follows the modtcp parameter) 

  • Set Modbus RTU

mod_rssim modrtu

will select RTU mode, you can also add a serial port setting 

  • Set up serial port

mod_rssim port:com3 baud=38400 rts=on

will select com3, and use RTS on, the serial options are the same as for the mode command. rts can be on off hs or tg but normally modbus devices use the 1st 2 forms.

  • Select Protocol

The available protocols are modrtu modtcp abslave abmaster

For examples of the format, simply type "mode ?" in a command-prompt

  • More examples:

mod_rssim port:com2
just change the comm port number by itself leave all other settings

mod_rssim 19200,n,e,8,p
use the older DOS parameter set which have a 'p' at the end.

Note1: It's not advisable (nor necessary) to have multiple TCP simulator sessions, since the concept of memory block separation is described in the Modbus Advanced Emulation Settings screen.

Note2: Settings given from the command-line are saved for future sessions of the simulator, just as if you had used the menus.