dhoomakethu / modbus_sim_cli

Modbus simulation command line version (supports both TCP and RTU)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modbus TCP/RTU device simulation tool

Install

$ python setup.py install

Usage

$ modbus_simulator -h
usage: Modbus Simulator [-h] -c str
                        [--console-log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                        [--enable-file-logging]
                        [--file-log-level {debug,info,warning,error,critical}]
                        [--log-file LOG_FILE] [--version] [-D]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

modbus_simu
~~~~~~~~~~

Modbus simulator CLI version based on Modbus tk

optional arguments:
  -h, --help            show this help message and exit
  -c (str), --simu-config (str)
                        Default configuration file to be used for modbus simulation script
  --console-log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Monitor console log level, overides value from configuration file
  --enable-file-logging
                        Enable file logging
  --file-log-level {debug,info,warning,error,critical}
                        Simulator file log level, overides value from configuration file
  --log-file LOG_FILE   Default simulation log file
  --version             show program's version number and exit
  -D, --debug           Turn on to enable tracing

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

To run

modbus_simulator -c <PATH_TO_Config_File>

sample simulation config

conf.yml

About

Modbus simulation command line version (supports both TCP and RTU)

License:MIT License


Languages

Language:Python 100.0%