MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › What is the difference between digital and analog outputs when driving loads?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

What is the difference between digital and analog outputs when driving loads?

A digital output is a switch with only on and off states, and it energises or de-energises an actuator coil directly. An analog output is a continuous quantity: it delivers a voltage or current setpoint to regulate a modulating actuator. The difference in how they drive loads lies mainly in the nature of the load, the ceiling on load capability and the accuracy required. The sections below set out the constraints on each.

1. The essence: switch or continuous

Digital outputs serve on/off loads such as solenoid valves, contactors, indicator lamps and relay coils; the output is either on or off, and the output device only has to stay within its rated current. Analog outputs serve modulating loads such as proportional valves, VFD speed setpoints, thyristor firing and instrument signals. What they deliver is a continuously varying quantity, and the load must reproduce that quantity faithfully, so the load impedance and the circuit form matter.

2. Load capability of a digital output

The capability of a digital output is set by its output device. A relay output handles AC or DC loads and carries a relatively high current per point, but has a finite mechanical life that falls quickly as the switching frequency rises. A transistor output drives DC only: it switches fast and lasts long, but the current per point is lower and it needs overcurrent and short-circuit protection. A triac output is used on AC and needs attention to the minimum holding current and the inrush current. Outputs in the same group on one module often share a common terminal, and the common-terminal current must be counted too.

3. Load impedance limits of an analog output

The load capability of an analog output is expressed as an impedance range. A voltage output (for example 0-10 V) needs the load impedance to be no lower than some minimum value; too heavy a load pulls the output voltage down, so the actual value no longer matches the setpoint. A current output (for example 4-20 mA) needs the load resistance to be no higher than some maximum value; too much total loop resistance and the channel cannot drive it, so the current fails to reach full scale. Both the upper and lower limits come from the output capability of the module and must be checked against the actuator input impedance at selection time.

4. Accuracy, resolution and response

A digital output has no accuracy question, only switching reliability and operating time. An analog output involves resolution (how many bits the D/A converter has), accuracy (full-scale error), temperature drift and response time. Resolution sets the smallest step the setpoint can be divided into, and in closed-loop control it sets the lower limit of the steady-state error. Digital outputs are written as a whole batch, whereas analog outputs are converted channel by channel, so more channels means a slower refresh.

5. The difference over long distances and against noise

Digital output wiring is simple, and over long runs the main issues are voltage drop and induced noise, which an interposing relay can isolate. For long-distance analog transmission, a 4-20 mA current signal is preferred: the drop along the cable does not affect the reading, the signal is more immune to noise, and the 4 mA live zero distinguishes a broken wire from a genuine zero, which helps diagnosis. Voltage-mode analog signals are unsuitable for long runs, because the cable resistance and noise go straight into the reading.

6. Digital and analog output load characteristics compared

ItemDigital outputAnalog outputWhat to watch
Output stateOn and offContinuously variableChoose by actuator type
Typical loadSolenoid valve, contactor, lampProportional valve, VFD setpoint, thyristorLoad type drives selection
Capability stated asRated current per pointLoad impedance rangeCurrent versus impedance respectively
Load ceilingLimited by output device currentVoltage type limited by minimum impedanceExceed it and the voltage sags
Load floorTriac needs holding currentCurrent type limited by maximum resistanceExceed it and it cannot drive
AccuracyNo accuracy conceptResolution and full-scale errorSets closed-loop steady-state error
ResponseMillisecond operating timeConversion and refresh timeMore channels refresh slower
Long-distance transmissionDrop and noise, use an interposing relayPrefer 4-20 mA current typeVoltage type unsuitable over distance
Broken-wire diagnosisJudge from feedback signals4 mA live zero reveals a breakTwo-wire helps diagnosis
Common terminalGroup outputs often share a commonEach channel has its own loopCount the common-terminal current

7. Notes

Both types usually appear on the same machine: digital outputs handle the on/off of actions, analog outputs handle the setpoint and feedback for speed, pressure and flow. Selection has to be costed separately. For digital outputs, look at the current per point, the group common-terminal current and the switching frequency; for analog outputs, look at the load impedance range, the resolution and the loop form. Do not use a digital output in place of an analog setpoint, and do not expect an analog output to drive a high-power load directly; it delivers only a signal, and the power amplification belongs to the actuator or drive unit.

8. References

The requirements for the analog and digital modules of programmable controllers refer to GB/T 15969.2 and IEC 61131-2. The connection, protection and earthing of the electrical equipment of machines follow GB 5226.1 and IEC 60204-1. The requirements for low-voltage switchgear and controlgear are given in the GB 14048 series, and electrical diagram symbols in GB/T 4728. The current per point, load impedance range and resolution of each module are as stated in the manufacturer's technical data.

9. Points to watch

⚠️ Three common traps:
(1) Sending a voltage-mode analog setpoint to a VFD over a long distance, so cable drop and noise make the actual setpoint differ from the intended one while the program is wrongly suspected;
(2) Checking only the per-point load current and not the total common-terminal current, so simultaneous operation in one group exceeds the module limit;
(3) Ignoring the upper and lower load impedance limits of an analog output, so full scale is never reached and the module is wrongly judged faulty.

Any wiring change to analog or digital circuits must be made after switching off and proving dead, with the common terminal and loop polarity checked. For long analog runs a 4-20 mA current loop is recommended, with screened earthing arranged as the manufacturer advises.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL