Write Modbus data

Use ModbusDoctor to easily test the system → Modbus Doctor - KScada

Configuration

In the settings : TCP/IP address : µWiotys IP - Numport : 502 - Timeout : 1000.

To write value into Modbus device previously configured, select your slave number in modbus doctor.

Get adresses infos (Watteco IN’O exemple)

Address

Size

Description

Type

Address

Size

Description

Type

0x2100 (8448 in DEC)

1

output 1 : current state

uint16

0x2101 (8449 in DEC)

1

output 1 : New state (write)

uint16

What you can see on Modbus Doctor:

image-20250328-103548.png
Register 2100 & 2101

The output state sent by sensor is 0.

Write value

We can write TRUE (1) to activate the output 1 :

image-20250328-104010.png
Write 1 in register 2101

On the µWiotys interface, in the Downlink menu of your sensor, you could see the created Downlink.

If the Downlink is sent, it will disappear from the interface and you couldn’t see it anymore.

image-20250328-101657.png

The downlink message is sent through these steps : Modbus client (write Modbus register value)→ µWiotys (generate downlink and send to) → Sensor.

Related content