<< Click to Display Table of Contents >> Navigation: Modbus Universal MasterOPC Server > Description of the Mod_RSSim Simulator > Simulator GUI > Launch from a Command Line |
This option is added to provide ability to launch simultaneously two simulators on different ports or protocols without annoying repetitions of actions "launch -> configure".
mod_rssim modtcp:512
Modbus TCP/IP and port 512 are chosen (note how the port number follows the parameter modtcp)
mod_rssim modrtu
RTU is chosen; you can add settings of a serial port as well.
mod_rssim port:com3 baud=38400 rts=on
COM3 and use of RTS on is chosen. 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 first 2 forms.
The available protocols are: modrtu, modtcp, abslave and abmaster.
For examples of the format, simply type "mode ?" in a command prompt.
More examples are:
mod_rssim port:com2
Changes the communication port number, and keep all other settings
mod_rssim 19200,n,e,8,p
The older DOS parameter set is used, which have a ’p’ at the end.
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 (see Extra Parameters of MODBUS Emulation ).
Settings changed from the command-line take effect for any future sessions of the simulator that get launched without parameters too.