Modbus Coil vs Discrete Input (2026 Engineering Guide)

Just like 16-bit registers split into Holding Registers vs Input Registers, Modbus 1-bit Boolean I/O is divided into two separate memory tables: Coils (0xxxx) and Discrete Inputs (1xxxx). Polling a safety switch with Function Code 01 instead of Function Code 02—or attempting to force a Discrete Input with FC 05—is a common commissioning snag on new PLC and RTU integrations.

With ModbusSimulator, you can simulate all four Modbus tables simultaneously in Master and Modbus Slave Simulator modes on Windows 10/11—free for 30 days with zero hardware required.

1. Modbus Coil vs Discrete Input Comparison

Property Coil (0xxxx) Discrete Input (1xxxx)
Access PermissionRead / WriteRead-Only
Data Width1-bit Boolean (ON = 1 / 0xFF00, OFF = 0 / 0x0000)1-bit Boolean (1 = Active, 0 = Inactive)
Modicon 5-Digit Range00001 – 09999 (6-digit: 000001–065536)10001 – 19999 (6-digit: 100001–165536)
Read Function CodeFC 01 (0x01) Read CoilsFC 02 (0x02) Read Discrete Inputs
Write Function CodesFC 05 (0x05), FC 15 (0x0F)None (cannot be written by Master)
Typical Field SignalsRelay outputs, pump/fan start commands, alarm resets, valvesLimit switches, float level sensors, breaker status, E-stop contacts

2. Why 00001 and 10001 Both Transmit Wire Address 0x0000

In the Modbus PDU sent over TCP or RS-485, the leading prefix digit (0 or 1) is stripped before transmission. Your SCADA driver selects the function code from the prefix and sends a 0-based 16-bit offset:

  • 00001 → Driver sends FC 01 (or FC 05/15 for writes) with PDU address 0x0000.
  • 10001 → Driver sends FC 02 with PDU address 0x0000.
  • Bit Packing Order: When reading 10 coils starting at 0x0000, byte 0 holds coils 00001 (LSB, bit 0) through 00008 (MSB, bit 7), and byte 1 holds coils 00009–00010 in bits 0–1 with bits 2–7 zero-padded.

Review the full four-table map in Modbus Register Types Explained.

3. Writing Coils Safely: Why FC 05 Uses 0xFF00 (Not 0x0001)

A classic pitfall when writing custom Modbus Master scripts is sending 0x0001 to turn ON a single coil with FC 05. Per the Modbus specification, FC 05 requires 0xFF00 for ON and 0x0000 for OFF—any other value is ignored or returns Exception Code 03 (Illegal Data Value). For multi-coil writes via FC 15, bits are packed LSB-first just like FC 01 responses.

Test Coils & Discrete Inputs Live on Windows 10/11

Upgrade from legacy ModRSsim2 or Radzio Modbus Simulator—toggle Coils, simulate Discrete Inputs, and inspect live FC 01/02/05/15 hex frames.

Download Free 30-Day Trial

Frequently Asked Questions

What is the difference between a Modbus Coil and a Discrete Input?

Coils (0xxxx, FC 01/05/15) are 1-bit read/write Boolean points for outputs and commands, whereas Discrete Inputs (1xxxx, FC 02) are 1-bit read-only Boolean points for physical field input contacts.

Why do Coil 00001 and Discrete Input 10001 both send wire offset 0x0000?

The leading digit only identifies the memory table in Modicon 5-digit PLC documentation; the Modbus wire PDU uses 0-based offset 0x0000 and relies on FC 01 vs FC 02 to address the right table.

How does Modbus pack 8 Coils or Discrete Inputs into each response byte?

The lowest addressed point maps to bit 0 (LSB) of the first byte and the eighth point maps to bit 7 (MSB), with unused high bits in the final byte padded with zeros.

How can I test Modbus Coils and Discrete Inputs without a physical PLC?

Use ModbusSimulator in Slave/Server mode on Windows 10/11 to toggle 0xxxx Coils and 1xxxx Discrete Inputs over TCP or RTU during a 30-day free trial.