FoundryNet / Error codes / Modbus Exception 01
Modbus error code

Exception 01 (0x01) — Illegal Function

The server received a function code it does not implement — or does not implement for the addressed unit. It is a statement about the function, not about the address or the value.

Start free Modbus → canonical

Diagnosis

When you hit this


Resolution

How to fix it

  1. Confirm the function the device implements
    Check the register map in the device manual: coils are FC01, discrete inputs FC02, holding registers FC03, input registers FC04. A register listed as read-only is almost always FC04, not FC03.
  2. Match the function to the register table
    Change the client's function code rather than the address. An address that works under FC04 and fails under FC03 is exception 01, not exception 02.
  3. Check the unit ID
    Over TCP the unit ID is often ignored, but a gateway uses it to select a serial slave. The wrong unit ID can surface as 01 rather than a timeout.

Normalization

What Forge does about it

This is a configuration or addressing mistake on the wire, upstream of anything Forge sees. Where Forge helps is the step after you fix it: once the point returns data, its vendor tag name maps to a canonical field automatically, so you do not also have to hand-maintain a name table for every point you just re-addressed.


Connect

Normalize Modbus telemetry

One MCP endpoint serves every protocol adapter. 16,908 curated mappings, 366 canonical fields.

# normalize telemetry from Modbus — and 13 other protocols
claude mcp add --transport http forge https://mcp.foundrynet.io/mcp \
  --header 'Authorization: Bearer YOUR_FORGE_KEY'
✓ forge connected — 32 tools available

Related

Keep reading

Other Modbus codes: Exception 02 Exception 03 Exception 04 Exception 06 Exception 0B

Equipment that speaks Modbus: Fanuc Haas Universal Robots Chemical process Food & beverage process Pharma process (GMP) Bridgeport Brother Doosan Robotics Epson Robots

Modbus protocol hub

Other protocols: OPC UA MQTT / Sparkplug B FANUC FOCAS EtherNet/IP PROFINET / S7 BACnet/IP J1939 (CAN) MTConnect ROS 2 (DDS) SNMP MAVLink HTTP / REST CSV ingest

All error codes · All OEMs · All protocols

Industrial AI fails at the data layer. The Machine Agent explains why, weekly. Read it →
Get the thesis behind this infrastructure — The Machine Agent, weekly.