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 Line Set Coil Action
Knowledge base

Modbus Line Set Coil

ModbusLineSetCoilAction writes one coil value on one slave device managed by a ModbusLineThing. Use it for precise relay, output, or command-bit control on a shared RS485 bus or Modbus TCP gateway.

Write one coil on a selected slave device

Unlike ModbusSetCoilsAction, this action targets a specific slave ID and one coil address through ModbusLineThing. The device must be present, enabled, online, and configured with the target coil in its map.

ID

Slave specific

Targets one slave on a shared Modbus line.

COIL

Single output

Writes exactly one coil to true or false.

RULE

Automation ready

Useful for rules such as Open gate, Enable pump, or Reset relay.

Multi-device relay control

BUS

Shared bus relay board

Use when the output belongs to one slave on a line, for example slave 7, coil 3.

NAME

Clear action names

Create separate actions such as Open gate, Close gate, Enable pump, and Disable pump.

EVT

Rule-driven control

Attach to Event Manager when one detected condition should set one coil on one slave.

Configuration parameters

ParameterRequiredDescriptionDefault
Title
YesDisplay name of the action.None
Modbus line
YesTarget ModbusLineThing.None
Device
YesSlave device ID inside the selected line.None
Address
YesRaw Modbus coil address to write.None
On / Off
YesValue written to the selected coil.false

Operational notes

ONL

Device must be online

The selected slave must be present and online. Disabled devices are skipped by line actions.

MAP

Map must include the coil

If the UI does not offer the coil, run discovery or manually add it to the device map.

FB

Confirmation depends on readability

If the coil is readable, the next poll confirms the value. Write-only outputs may show local feedback only.

Related Modbus pages

Related tasks and pages