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
Copy file name to clipboardExpand all lines: docs/index.md
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,29 @@ This option should be used carefully, as it generates large amounts of output de
30
30
31
31
The ```--reconnect``` option can be used to specify that the application is not terminated when the master disconnects, but waits for a new connection.
32
32
33
-
The client creates four shared memories and names them ```modbus_DO```, ```modbus_DI```, ```modbus_AO``` and `````` by default.
34
-
The prefix modbus_ can be changed via the argument ```--name-prefix```. The suffixes for the register type (DO, DI, AO, AI) cannot be changed and will always be appended to the prefix.
33
+
The client creates four shared memories and names them ```modbus_DO```, ```modbus_DI```, ```modbus_AO``` and ```modbus_AI``` by default.
34
+
The prefix modbus_ can be changed via the argument ```--name-prefix```.
35
+
The suffixes for the register type (DO, DI, AO, AI) cannot be changed and will always be appended to the prefix.
35
36
36
37
By default, the client starts with the maximum possible number of modbus registers (65536 per register type).
37
38
The number of registers can be changed using the ```--xx-registers``` (replace xx with the register type) command line arguments.
38
39
40
+
### Examples
41
+
Start client and listen to all incoming connections on the modbus standard port:
42
+
```
43
+
modbus-tcp-client-shm
44
+
```
45
+
46
+
Start client and listen to all incoming connections on port 10000 and wait for a new connection if the connection is lost:
47
+
```
48
+
modbus-tcp-client-shm -p 10000 -r
49
+
```
50
+
51
+
Start client and listen to incoming connections on ip 127.0.0.1 on port 10000:
52
+
```
53
+
modbus-tcp-client-shm -p 10000 -i 127.0.0.1
54
+
```
55
+
39
56
### Use privileged ports
40
57
Ports below 1024 cannot be used by standard users.
41
58
Therefore, the default modbus port (502) cannot be used without further action.
0 commit comments