Menu

Modbus Coils

Modbus coil overview covering read/write bit points, common function codes, and how coils differ from other Modbus data families.

Categories:

What They Are

Modbus coils are single-bit read/write points. They are typically used for commands, enables, relay outputs, and other binary states that an external system can both read and write.

In practical Modbus work, coils are where binary command intent often shows up. Start and stop bits, mode enables, relay controls, and simple on-off outputs are all commonly represented as coils because the protocol treats them as writable bit-level points rather than as 16-bit register values.

How They Differ From Other Modbus Data Families

Data FamilyAccessTypical Use
CoilsRead/writeCommands, relays, enable bits
Discrete InputsRead-onlyStatus contacts and alarm states
Holding RegistersRead/writeSetpoints and 16-bit values
Input RegistersRead-onlyMeasurements and counters

Common Function Codes

Function CodeOperation
01Read coils
05Write single coil
15Write multiple coils

Why Coil Writes Fail

Failure PatternWhat Usually HappenedPractical Result
Point is not actually a coilThe register map labeled a status bit looselyReads may work elsewhere, but writes fail
Write is blocked by device logicThe point is writable in theory, but interlocks or mode state prevent itCommand tests look inconsistent
Addressing convention is off by oneThe tool and map use different numbering stylesThe wrong bit is written or no action occurs
Multi-write assumption is wrongDevice expects single-coil writes or narrower behaviorBatch writes fail while single writes pass

Commissioning Notes

Good coil commissioning proves more than read visibility. It should confirm the exact addressed bit, the write path the device supports, and one known-good state change that can be observed safely in the field. That keeps a command point from being mistaken for a read-only status bit or a protected internal state.