Getting Started Cameras & Video Detection & Recording Automation & Events Actions Integration & Connectivity Network & Discovery AI & Remote Control MQTT Modbus ZeroMQ System & Administration Use Cases Troubleshooting About & Legal
Home / Documentation / Modbus Set Register Action
Knowledge base

Modbus Set Register

ModbusSetRegisterAction sets one holding register value on a direct ModbusThing. Use it for fixed setpoints, neutral output commands, PWM or servo values, motor speed, brightness, valve targets, and controller modes.

Write one target value to a direct device register

The action updates the local target register value in ModbusThing. The background write loop sends the register block when the target differs from the last read holding-register state.

SET

Fixed setpoint

Write known values such as 1500, 0, or a mode number.

STOP

Neutral command

Create explicit actions such as Stop motor, Center servo, or Reset output.

EVT

Automation

Bind detection or operator events to register changes without writing custom code.

Configuration parameters

ParameterRequiredDescriptionDefault
Title
YesDisplay name of the action.None
Modbus
YesTarget direct ModbusThing.None
Index
YesZero-based index in the ModbusThing writable holding-register buffer.None
Value
YesInteger value written to the target register.1500

Operational notes

IDX

Index must exist

The configured index must exist in the direct device writable buffer. Ensure the ModbusThing count covers it.

DEF

Use startup defaults

Configure defaultRegisterValue as the neutral startup state, then use this action for deliberate changes.

SAFE

Test setpoints safely

Validate values with unloaded or disconnected hardware before using them for physical motion or power outputs.

Related Modbus pages

Related tasks and pages