# 11.14 MODBUS RTU Slave (All function)/(All function OneBaseAddress)

Supported Series: MODBUS RTU CONTROLLER

HMI works as MODBUS MASTER coontecting with SLAVE.

The address in \[All function] start from 0, the address in \[All function OneBaseAddress] start from 1 (offset 1).

**HMI settings**

| **Items**       | **Settings**                                                   | **Note** |
| --------------- | -------------------------------------------------------------- | -------- |
| Protocol        | MODBUS RTU Slave (All function)/( All function OneBaseAddress) |          |
| Connection      | RS485/RS232                                                    |          |
| Baud rate       | 2400\~187500                                                   |          |
| Data bit        | 8                                                              |          |
| Parity          | Even/ Odd/ None                                                |          |
| Stop bit        | 1/2                                                            |          |
| PLC station No. | 0\~255                                                         |          |

**Address list**

| **Type** | **Register** | **Function code & Description**                                                                                                                                                                                           |
| -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Word     |              |                                                                                                                                                                                                                           |
|          | 3            | <p>04 (read input register: read current binary value in one or more input registers)</p><p>06 (write single register: write a binary value to a holding register)</p><p>10 (write values to multiple addresses )</p>     |
|          | 4            | <p>03 (read holding register: read current binary value in one or more holding registers)</p><p>06 (write single register: write a binary value to a holding register)</p><p>10 (write values to multiple addresses )</p> |
|          | W6           | <p>03 (read holding register: read current binary value in one or more holding registers)</p><p>06 (write single register: write a binary value to a holding register)</p><p>10 (write values to multiple addresses )</p> |
|          | W16          | <p>03 (read holding register: read current binary value in one or more holding registers)</p><p>10 (write values to multiple addresses )</p>                                                                              |
| Bit      |              |                                                                                                                                                                                                                           |
|          | 0            | <p>01 (Read coil state)</p><p>05 (Force a single coil to force the on/off state of a logic coil)</p><p>0F (Write multiple bits, ie write continuously)</p>                                                                |
|          | 1            | <p>02 (Read the input state)</p><p>05 (Force a single coil to force the on/off state of a logic coil)</p><p>0F (Write multiple bits)</p>                                                                                  |
|          | W5           | <p>01 (Read coil state to obtain the current state of a set of logic coils)</p><p>05 (Force a single coil to force the on/off state of a logic coil)</p><p>0F (Write multiple bits)</p>                                   |
|          | W15          | <p>01 (Read coil state to obtain the current state of a set of logic coils)</p><p>0F (Write multiple bits)</p>                                                                                                            |

{% hint style="info" %}
✎**Note:**

Modbus can also support getting bit from the word, which could access the address such as 100.1 and other formats. The function codes sent out are the same as those that read and write words.
{% endhint %}

**Station number for more than one slaves**

If there are more than one slaves connected to HMI, please set slave station number during editing address, as below shows.

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJhKA9np41fadbT9Ey%2F-LvJjKz6Y1x4TIL1MA44%2F0.png?generation=1575527212137328\&alt=media)

**Cable wiring**

**1) RS485**

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lup_3URExwDkfqKABSb%2F-M3KZFo6nOr4I-hCXj63%2F-M3KZRz6aoNb3fUgu6mi%2Fimage.png?alt=media\&token=7b0fb6d6-be9c-463e-b16e-31742dce13c3)

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lup_3URExwDkfqKABSb%2F-M3KZFo6nOr4I-hCXj63%2F-M3KZVj7XyIbOui40j_j%2Fimage.png?alt=media\&token=c0f0bbc6-abf3-4fe4-a035-3763de13a285)

**2) RS232**

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lup_3URExwDkfqKABSb%2F-M3KZFo6nOr4I-hCXj63%2F-M3KZZIyEvCiBwCW67Kw%2Fimage.png?alt=media\&token=75c97cbb-62ee-4ea1-bb92-3d40f97bc0a7)

{% hint style="info" %}
✎**Note:**

COM3 is available in PI8000 series and advanced series;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wecon.gitbook.io/pistudio-manual/11.-plc-protocols/modbus-rtu-slave-all-function-all-function-onebaseaddress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
