modsim 0.5.1__tar.gz → 0.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {modsim-0.5.1 → modsim-0.5.2}/PKG-INFO +11 -5
- {modsim-0.5.1 → modsim-0.5.2}/README.md +9 -4
- modsim-0.5.2/modsim/__init__.py +1 -0
- {modsim-0.5.1 → modsim-0.5.2}/modsim/main.py +1 -1
- {modsim-0.5.1 → modsim-0.5.2}/pyproject.toml +1 -1
- modsim-0.5.1/modsim/__init__.py +0 -1
- {modsim-0.5.1 → modsim-0.5.2}/LICENSE +0 -0
- {modsim-0.5.1 → modsim-0.5.2}/modsim/__main__.py +0 -0
- {modsim-0.5.1 → modsim-0.5.2}/modsim/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: modsim
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: A Simple Modbus TCP Device Simulator used for modpoll tool
|
|
5
5
|
Home-page: https://github.com/gavinying/modsim
|
|
6
6
|
Author: Ying Shaodong
|
|
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
15
|
Requires-Dist: pymodbus (>=3.6.9,<3.7.0)
|
|
15
16
|
Project-URL: Documentation, https://gavinying.github.io/modsim/
|
|
16
17
|
Project-URL: Repository, https://github.com/gavinying/modsim
|
|
@@ -28,10 +29,10 @@ It works as a remote Modbus-TCP (virtual) device, which has already been populat
|
|
|
28
29
|
It is recommended to use [modpoll](https://github.com/gavinying/modpoll) tool to communicate with it, the example configuration is as following,
|
|
29
30
|
|
|
30
31
|
```
|
|
31
|
-
device,
|
|
32
|
-
poll,coil,0,
|
|
32
|
+
device,modsim01,1,,
|
|
33
|
+
poll,coil,0,16,BE_BE
|
|
33
34
|
ref,coil01-08,0,bool8,rw
|
|
34
|
-
ref,coil09-
|
|
35
|
+
ref,coil09-16,1,bool8,rw
|
|
35
36
|
poll,discrete_input,10000,16,BE_BE
|
|
36
37
|
ref,di01-08,10000,bool8,rw
|
|
37
38
|
ref,di09-16,10001,bool8,rw
|
|
@@ -50,7 +51,7 @@ ref,input_reg11,30012,int32,rw
|
|
|
50
51
|
ref,input_reg12,30014,int32,rw
|
|
51
52
|
ref,input_reg13,30016,float32,rw
|
|
52
53
|
ref,input_reg14,30018,float32,rw
|
|
53
|
-
poll,holding_register,40000,
|
|
54
|
+
poll,holding_register,40000,44,BE_BE
|
|
54
55
|
ref,holding_reg01,40000,uint16,rw
|
|
55
56
|
ref,holding_reg02,40001,uint16,rw
|
|
56
57
|
ref,holding_reg03,40002,uint16,rw
|
|
@@ -65,6 +66,11 @@ ref,holding_reg11,40012,int32,rw
|
|
|
65
66
|
ref,holding_reg12,40014,int32,rw
|
|
66
67
|
ref,holding_reg13,40016,float32,rw
|
|
67
68
|
ref,holding_reg14,40018,float32,rw
|
|
69
|
+
ref,holding_reg15,40020,uint64,rw
|
|
70
|
+
ref,holding_reg16,40024,int64,rw
|
|
71
|
+
ref,holding_reg17,40028,float64,rw
|
|
72
|
+
ref,holding_reg18,40032,float64,rw
|
|
73
|
+
ref,holding_reg19,40036,string16,rw
|
|
68
74
|
```
|
|
69
75
|
|
|
70
76
|
## Quick Start
|
|
@@ -10,10 +10,10 @@ It works as a remote Modbus-TCP (virtual) device, which has already been populat
|
|
|
10
10
|
It is recommended to use [modpoll](https://github.com/gavinying/modpoll) tool to communicate with it, the example configuration is as following,
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
device,
|
|
14
|
-
poll,coil,0,
|
|
13
|
+
device,modsim01,1,,
|
|
14
|
+
poll,coil,0,16,BE_BE
|
|
15
15
|
ref,coil01-08,0,bool8,rw
|
|
16
|
-
ref,coil09-
|
|
16
|
+
ref,coil09-16,1,bool8,rw
|
|
17
17
|
poll,discrete_input,10000,16,BE_BE
|
|
18
18
|
ref,di01-08,10000,bool8,rw
|
|
19
19
|
ref,di09-16,10001,bool8,rw
|
|
@@ -32,7 +32,7 @@ ref,input_reg11,30012,int32,rw
|
|
|
32
32
|
ref,input_reg12,30014,int32,rw
|
|
33
33
|
ref,input_reg13,30016,float32,rw
|
|
34
34
|
ref,input_reg14,30018,float32,rw
|
|
35
|
-
poll,holding_register,40000,
|
|
35
|
+
poll,holding_register,40000,44,BE_BE
|
|
36
36
|
ref,holding_reg01,40000,uint16,rw
|
|
37
37
|
ref,holding_reg02,40001,uint16,rw
|
|
38
38
|
ref,holding_reg03,40002,uint16,rw
|
|
@@ -47,6 +47,11 @@ ref,holding_reg11,40012,int32,rw
|
|
|
47
47
|
ref,holding_reg12,40014,int32,rw
|
|
48
48
|
ref,holding_reg13,40016,float32,rw
|
|
49
49
|
ref,holding_reg14,40018,float32,rw
|
|
50
|
+
ref,holding_reg15,40020,uint64,rw
|
|
51
|
+
ref,holding_reg16,40024,int64,rw
|
|
52
|
+
ref,holding_reg17,40028,float64,rw
|
|
53
|
+
ref,holding_reg18,40032,float64,rw
|
|
54
|
+
ref,holding_reg19,40036,string16,rw
|
|
50
55
|
```
|
|
51
56
|
|
|
52
57
|
## Quick Start
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.2"
|
|
@@ -94,7 +94,7 @@ def setup_server(args: Any) -> Any:
|
|
|
94
94
|
hr_builder.add_64bit_float(123.45)
|
|
95
95
|
hr_builder.add_64bit_float(-123.45)
|
|
96
96
|
# address=72, bytes=?
|
|
97
|
-
hr_builder.add_string("
|
|
97
|
+
hr_builder.add_string("this is a string")
|
|
98
98
|
|
|
99
99
|
# ----------------------------------------------------------------------- #
|
|
100
100
|
# use that payload in the data store
|
modsim-0.5.1/modsim/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.5.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|