File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ Modbus_TCP_client_shm [OPTION...]
25
25
-m, --monitor output all incoming and outgoing packets to stdout
26
26
-r, --reconnect do not terminate if Master disconnects.
27
27
-h, --help print usage
28
+
29
+
30
+ The modbus registers are mapped to shared memory objects:
31
+ type | name | master-access | shm name
32
+ -----|---------------------------|-----------------|----------------
33
+ DO | Discrete Output Coils | read-write | <name-prefix>DO
34
+ DI | Discrete Input Coils | read-only | <name-prefix>DI
35
+ AO | Discrete Output Registers | read-write | <name-prefix>AO
36
+ AI | Discrete Input Registers | read-only | <name-prefix>AI
28
37
```
29
38
30
39
## Libraries
Original file line number Diff line number Diff line change @@ -89,6 +89,14 @@ int main(int argc, char **argv) {
89
89
options.set_width (120 );
90
90
std::cout << options.help () << std::endl;
91
91
std::cout << std::endl;
92
+ std::cout << " The modbus registers are mapped to shared memory objects:" << std::endl;
93
+ std::cout << " type | name | master-access | shm name" << std::endl;
94
+ std::cout << " -----|---------------------------|-----------------|----------------" << std::endl;
95
+ std::cout << " DO | Discrete Output Coils | read-write | <name-prefix>DO" << std::endl;
96
+ std::cout << " DI | Discrete Input Coils | read-only | <name-prefix>DI" << std::endl;
97
+ std::cout << " AO | Discrete Output Registers | read-write | <name-prefix>AO" << std::endl;
98
+ std::cout << " AI | Discrete Input Registers | read-only | <name-prefix>AI" << std::endl;
99
+ std::cout << std::endl;
92
100
std::cout << " This application uses the following libraries:" << std::endl;
93
101
std::cout << " - cxxopts by jarro2783 (https://github.com/jarro2783/cxxopts)" << std::endl;
94
102
std::cout << " - libmodbus by Stéphane Raimbault (https://github.com/stephane/libmodbus)" << std::endl;
You can’t perform that action at this time.
0 commit comments