Files
2023-Webservices_And_Applic…/docs/modbus_tcp.md

34 lines
707 B
Markdown

# Modbus-TCP
This is the documentation of the Modbus-TCP task
## Table of contents
- [Table of contents](#table-of-contents)
- [Initialization](#initialization)
- [Usage](#usage)
- [Guide](#Guide)
- [Extra](#Extra)
## Initialization
The Modbus task is initialized in the main function.
```c
// Initialize Modbus task
modbus_init();
```
## Usage
![QmodMaster.exe](./img/QmodMaster.jpg)
## Guide
- Set qmodmaster to tcp mode
- Set IP of device
- Set the device in multiple register mode
- Connect with the board
- Fill in the data as in the example
- Send the data
## Extra
The start addres is ignored and the timeout warnings arne normal because there is no response from my code back to QModMaster.