Modbus ASCII
Modbus ASCII serial.
| Property | Value |
|---|---|
| Console protocol id | modbus-ascii |
| Site Runtime plugin | modbus-ascii |
| Transport | Serial (RS-232/RS-485), some families also over TCP |
| Read | yes |
| Write | yes — through approved writes |
| Subscribe | — |
| Default group interval | 1000 ms |
| Maturity | Production: complete driver (connection handling, address forms, batching, read and write) |
Create the device
- Open Connectivity → Devices and click Add device.
- Pick Modbus ASCII in the protocol list and make sure the Site Runtime host has the serial port.
- Choose the Site Runtime that can reach the device, fill the connection parameters below and click Create & connect.
- Add a group (poll interval) and tags with the address formats below. See Devices and Groups and tags for the full walk-through.
Connection parameters
Every field the Console shows for this protocol. Required fields must be set before the device can be saved.
| Parameter | Type | Default | Range / options | Required | Description |
|---|---|---|---|---|---|
Connection Timeout (ms)timeout | int | 3000 | 1000 – 30000 | yes | |
Maximum Retry Timesmax_retries | int | 0 | 0 – 5 | yes | The maximum number of retries after a failed attempt to send a read command |
Retry Interval (ms)retry_interval | int | 0 | 0 – 10000 | yes | |
Endiannessendianess | map | ABCD | ABCD, BADC, DCBA, CDAB | yes | Tag byte order, ABCD corresponds to 1234 |
Start Addressaddress_base | map | PLC Addresses (Base 1) | Protocol Addresses (Base 0), PLC Addresses (Base 1) | yes | Address starts from 1 or 0 |
Send Interval (ms)interval | int | 20 | 0 – 3000 | yes | |
Serial Devicedevice | string | — | max 30 chars | yes | |
Stop Bitsstop | map | 1 | 1, 2 | yes | |
Parityparity | map | none | none, odd, even, mark, space | yes | |
Baud Ratebaud | map | 9600 | 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200 | yes | |
Data Bitsdata | map | 8 | 5, 6, 7, 8 | yes |
Tag addresses and data types
Supported data types: INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, BIT, STRING, BYTES. The Console validates each tag address against the pattern for its data type before it is saved:
| Data types | Address pattern (regular expression) |
|---|---|
INT16 UINT16 INT64 UINT64 DOUBLE | ^[0-9]+![3-4][0-9]+(#B|#L|)$ |
INT32 UINT32 FLOAT | ^[0-9]+![3-4][0-9]+(#BB|#BL|#LL|#LB|)$ |
BIT | ^[0-9]+!([0-1][0-9]+|[3-4][0-9]+\.([0-9]|[0-1][0-5]))$ |
STRING | ^[0-9]+![3-4][0-9]+\.[0-9]+(H|L|)$ |
BYTES | ^[0-9]+![3-4][0-9]+\.[0-9]+$ |