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
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
+
39
+
steps:
40
+
- name: Checkout repository
41
+
uses: actions/checkout@v3
42
+
43
+
# Initializes the CodeQL tools for scanning.
44
+
- name: Initialize CodeQL
45
+
uses: github/codeql-action/init@v2
46
+
with:
47
+
languages: ${{ matrix.language }}
48
+
# If you wish to specify custom queries, you can do so here or in a config file.
49
+
# By default, queries listed here will override any specified in a config file.
50
+
# Prefix the list here with "+" to use these queries and those in the config file.
51
+
52
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
+
# queries: security-extended,security-and-quality
54
+
55
+
56
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
+
# If this step fails, then you should remove it and run the build manually (see below)
58
+
# - name: Autobuild
59
+
# uses: github/codeql-action/autobuild@v2
60
+
61
+
# ℹ️ Command-line programs to run using the OS shell.
62
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
+
64
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
Copy file name to clipboardExpand all lines: docs/index.md
+82-1Lines changed: 82 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Shared Memory Modbus TCP Client
2
2
3
-
This project is a simple command line based Modbus TCP client for POXIX compatible operating systems that stores the contents of its registers in shared memory.
3
+
This project is a simple command line based Modbus TCP client for POSIX compatible operating systems that stores the contents of its registers in shared memory.
4
+
4
5
5
6
## Basic operating principle
6
7
@@ -29,6 +30,29 @@ This option should be used carefully, as it generates large amounts of output de
29
30
30
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.
31
32
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.
36
+
37
+
By default, the client starts with the maximum possible number of modbus registers (65536 per register type).
38
+
The number of registers can be changed using the ```--xx-registers``` (replace xx with the register type) command line arguments.
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
+
32
56
### Use privileged ports
33
57
Ports below 1024 cannot be used by standard users.
34
58
Therefore, the default modbus port (502) cannot be used without further action.
0 commit comments