You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -198,7 +198,7 @@ Clone the source, and make a virtual environment::
198
198
cd pymodbus
199
199
python3 -m venv .venv
200
200
201
-
Activate the virtual environment, this command needs repeated in every new terminal::
201
+
Activate the virtual environment, this command needs to be repeated in every new terminal::
202
202
203
203
source .venv/bin/activate
204
204
@@ -210,9 +210,9 @@ or the bleeding edge::
210
210
211
211
git checkout dev
212
212
213
-
Some distributions have an old pip, which needs to be upgraded:
214
-
215
-
pip install --upgrade pip
213
+
.. note::
214
+
Please always make your changes in a branch, and never submit a pull request
215
+
from dev.
216
216
217
217
Install required development tools in editable mode::
218
218
@@ -223,7 +223,7 @@ Install all (allows creation of documentation etc) in editable mode::
223
223
pip install -e ".[all]"
224
224
225
225
.. note::
226
-
The use of the ``-e`` (editable) flag is recommended when working on the ``dev`` branch.
226
+
The use of the ``-e`` (editable) flag is recommended when making changes.
227
227
It registers the ``pymodbus`` namespace in your virtual environment using pointers to the
228
228
source directory. This ensures that any changes you make to the core library are
229
229
immediately reflected when running examples or tests.
@@ -263,17 +263,35 @@ need, feel free to submit them so others can benefit.
263
263
Also, if you have a question, please `create a post in discussions q&a topic <https://github.com/pymodbus-dev/pymodbus/discussions/new?category=q-a>`_,
264
264
so that others can benefit from the results.
265
265
266
-
- If you think, that something in the code is broken/not running well, please `open an issue <https://github.com/pymodbus-dev/pymodbus/issues/new>`_,
267
-
read the Template-text first and then post your issue with your setup information.
266
+
If you think, that something in the code is broken/not running well, please `open an issue <https://github.com/pymodbus-dev/pymodbus/issues/new>`_,
267
+
read the Template-text first and then post your issue with your setup information.
Copy file name to clipboardExpand all lines: doc/source/library/simulator/config.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,27 @@ Configuring the pymodbus simulator is done with a json file, or if only
5
5
using the datastore simulator a python dict (same structure as the
6
6
device part of the json file).
7
7
8
+
9
+
Starting the Simulator
10
+
----------------------
11
+
12
+
The simulator is invoked via the command line entry point. The following parameters allow you to select your configuration and control the server behavior:
13
+
14
+
* ``--json_file``:
15
+
Path to the JSON configuration file.
16
+
**Note:** The simulator will validate the existence of this file and fail to start with an error message if it is missing.
17
+
* ``--modbus_server``:
18
+
Selects which server configuration to load from the ``server_list``.
19
+
* ``--modbus_device``:
20
+
Selects which device registers to load from the ``device_list``.
21
+
* ``--http_host`` / ``--http_port``:
22
+
Defines the binding address and port for the Web UI (default port: 8081).
23
+
* ``--log``:
24
+
Sets the logging level (choices: critical, error, warning, info, debug).
25
+
* ``--custom_actions_module``:
26
+
Optional Python file for custom register behaviors.
0 commit comments