Digital vs Analog vs Discrete Signals: AI, AO, DI, DO Explained Once
An I/O list distinguishes measurements, binary states and data communications. AI, AO, DI and DO describe the controller’s input/output direction and signal type; digital protocols need additional interface and network information. Confirm both the logical function and electrical interface before choosing a card.
The three signal families
A discrete signal represents a binary state such as open/closed or running/stopped. Digital communication encodes values, status or commands in messages; HART and Modbus are examples. An analog signal varies over a range. Not every digital physical layer consists of only two voltage levels, and a discrete I/O channel is not the same interface as a digital communications port.
The confusion is historical: a discrete contact and a digital bus both use two levels, so people call both "digital." The distinction that matters for wiring is whether the signal is a measurement (analog), a binary state (discrete), or a message (digital).
AI — Analog Input
An analog input carries a continuous measurement into the controller. The workhorse is 4–20 mA, chosen because a 4 mA "live zero" lets the system distinguish a real zero (4 mA) from a broken wire (0 mA). Other analog inputs include 0–10 V, thermocouples and RTDs.
| Signal | Interface | Diagnostic consideration | Typical source |
|---|---|---|---|
| 4–20 mA | Current loop | 0 mA indicates loss of loop current; diagnose the cause | Transmitter |
| 0–10 V | Referenced voltage | A zero value may be a real value or circuit fault | Powered sensor or drive |
| Thermocouple or RTD | Dedicated compatible input | Open/short detection depends on card and configuration | Temperature element |
| 0–20 mA | Current loop | No 4 mA live-zero separation | Specified current-output device |
The key design decision for an AI is the range: the transmitter's 4 mA and 20 mA points must match the channel's engineering units, or the reading is scaled wrongly everywhere downstream.

AO — Analog Output
An analog output sends a continuous command from the controller, often 4–20 mA to a valve positioner or drive. Check whether the output sources or sinks current and what powers the circuit. Position feedback is normally a separate signal or a digital value; measuring the command current again does not establish actual valve position.
DI — Discrete Input
A discrete input is a binary state into the controller: a limit switch, a high-high level switch, a pressure switch, a motor run contact. It is usually wired as a dry contact (a pair of contacts that close or open) or a NAMUR proximity sensor.
Dry contacts need a compatible sensing circuit and may bounce. NAMUR switches use a specified two-wire current interface, commonly with an 8.2 V, 1 kilohm source characteristic. Use the exact switch and amplifier thresholds, operating direction and line-fault settings. Fault monitoring improves diagnostics but does not make every NAMUR switch a safety-rated sensor or reveal every mechanical failure.
DO — Discrete Output
A discrete output is a binary command out of the controller: start a pump, open a solenoid, trigger an alarm horn. It is typically a relay contact or a transistor output. The practical question is what the output can actually switch: a relay handles AC or DC and higher current; a transistor output is fast and solid-state but usually DC-only and low-current. Check the card's contact rating against the load's inrush current before trusting a DO to a motor contactor.

Choosing the right signal for the job
| Measurement or action | Correct signal | Why |
|---|---|---|
| Continuous tank level | AI (4–20 mA) | Carries the value |
| Tank overfill trip | DI (NAMUR or dry contact) | Independent binary safety signal |
| Valve position command | AO (4–20 mA) | Drives the positioner |
| Pump start/stop | DO (relay) | Switches the load |
| Transmitter configuration | Digital (HART on the loop) | Data on top of the 4–20 mA |
A trip may be derived from an analog transmitter or a discrete switch, depending on the safety requirements and approved design. Neither an AI nor a DI card creates independence by itself. Assess sensor sharing, process connections, power, logic and final elements as a complete function.
Questions technicians ask
Q1. Is 4–20 mA analog or digital?
The 4–20 mA current is analog. A HART transmitter makes it both, by riding a digital FSK signal on the same two wires — but the current itself is an analog signal.
Q2. What is the difference between dry and wet contact?
A dry or volt-free contact does not supply its own sensing voltage. A powered output supplies an electrical level that the receiving input must accept. DI cards vary: check voltage, current, common and sourcing/sinking arrangement rather than assuming they all accept the same contact wiring.
Q3. Why does NAMUR exist?
Its defined current interface allows a compatible input or amplifier to distinguish switching states and, when configured, line faults. Confirm the detection coverage and fail response for the complete circuit. A stuck mechanism or some sensor failures may still need proof testing.
Q4. Can one wire carry an AI and a DI?
A single conductor is not normally a complete circuit. A HART two-wire loop can carry an analog value plus digital status, while other buses can carry several logical values. Those messages are not automatically physical AI and DI channels; the receiving system must support the interface and mapping.
