PLCtalk.net

Exploring Analog Inputs and Outputs for PLCs

Analog signals provide more comprehensive data than simple on/off digital values, but they are still simpler to understand than capable, yet complex, industrial fieldbus protocols.


Technical Articles Oct 09, 2025 by Kelvin Findlay

Analog inputs and outputs read or provide an electrical signal that is proportional to sensor data such as temperature, pressure, level, and flow. They are ubiquitous in modern control systems, even with modern communication protocols able to deliver significantly more information, simply because they are easy to understand, configure, and troubleshoot.

Nearly every type of signal transmitter has a version that provides a voltage or current meant to be received and turned into a logical value (scaled) by a control device with an analog input, such as a PLC or edge controller.

 

Figure 1. This laser distance sensor provides an analog value for the PLC. Image used courtesy of Adobe Stock

 

Analog I/O Devices

An analog input serves to accept the signal into the PLC, data acquisition device, or data logger. These devices “listen” to transmitters to gather data about the process, the environment, or the industrial machines themselves.

Analog output devices, being the complementary type of signal, send a voltage or current signal out from the PLC. They provide a method of controlling equipment such as variable speed drives, proportional valves, or other variable actuators. The equipment will run at a value that is proportional to the signal, speeding or slowing the drive, or opening the valve to a certain position.

Occasionally, a field I/O module may simply pass along and amplify an analog signal as it goes from the transmitter to the PLC. This is common when the sensor is located too far away from the PLC to be wired directly, so a field device is necessary as an extension, calibrated to compensate for the voltage drop of the wire. This pass-through signalling is also used when the field device has the ability to execute some limited process control on its own, but must also keep the PLC informed about the process. Both of these devices would include both an analog input and output.

 

Figure 2. This PLC contains analog input modules, indicated by the “AI” part number. Image used courtesy of Adobe Stock

 

Scaling an Analog Signal

Process data such as temperature, pressure, level, flow, and a host of other measurements are provided over analog signals. Common ranges include 0-5 or 0-10 VDC, or 4-20 mA. There are other ranges, but these are most common. The output signal is scaled to match the measurement range and moves up and down, in proportion to the actual process.

For example, if a pressurized vessel can range from 0 to 50 psi, and a pressure sensor is installed with a 4-20 mA output, the signal could be scaled such that 4 mA (0% of signal) is equal to 0 psi (0% of real-world quantity) and 20 mA (100% signal) is equal to 50 psi (100% quantity). That would mean 12 mA (50% signal) would equal 25 psi (50% quantity). As the current moves up and down, the analog device knows the pressure in the vessel and the control system can react accordingly.

To do this, we use the slope/intercept equation y=mx+b. This will convert 4 mA to 0 psi, 12 mA to 25 psi, and 20 mA to 50 psi. Each PLC will have a different UI to do this, and their instructions may or may not be easy. However, the formula is the same. Here’s how we do it:

  • Y equals the scaled readout. In this case, psi.
  • X equals the raw signal. In this case, mA.
  • M equals the slope, which is a simple rise over run equation. In this case, 50 psi (50 psi - 0 psi) is divided by 16 mA (20 mA - 4 mA). Your final number is 50/16 or 3.125.
  • B equals the final intercept. To find it, we run the y=mx+b equation at 0 psi. That means 4 mA of current. So 0=(3.125)(4) + b. With a little math, we can tell that b = -12.5.

 

So our final equation is y=3.125x-12.5. If we use this at 4 mA, we get 0 psi. If we use it at 20 mA, we get 50 psi. If we use this at 5.72 mA, we get 5.375 psi.

The same formula works with voltage signals. It also works with any unit of measure, such as gallons, inches of water, degrees, or relative humidity. It simply has to be a linear scale. Once you have a non-linear situation, such as a tank with a conical shape, you’ll need to refer to the tank manufacturer for a conversion table. Control software often has tools to calculate these measurements in common configurations.

 

Resolution Matters

One important thing to remember with analog signals is that they limit the signal resolution. This can affect your overall accuracy, and so it is critical to understand. Resolution is the most granular measurement possible for your signal, or the smallest value change that can be detected.

In our previous example, we have a slope of 3.125 psi per 1 mA. This is a 16 mA range spread over 50 psi. However, if your sensor can measure down to two decimal points, then you will have a 16.00 mA range, or 1600 points of data. So instead of a resolution of 3.125 psi, you have a resolution of 0.03125 psi.

This is directly affected by the total range of measurement. If instead of 50 psi, you’re measuring 1000 psi, your resolution is less granular at 0.625 psi. If you have 1000 psi over 0-5 V at two decimal points, your resolution is 2 psi. For general-purpose measurements, this may be sufficient. But in high-accuracy situations, you may consider another solution.

Resolution is a specification that typically comes from the sensor. However, if the input device can only display two decimal points, but your sensor can provide four decimal points, the final effective resolution is limited.

 

Wiring Considerations

Analog sensors, I/O, and equipment run on either 2-wire or 4-wire configurations. In a 2-wire loop, the power source is wired in series with the signal and transmitter. In a 4-wire setup, two wires provide power, while the other two are just for the current signal. A third option is the 3-wire arrangement, where the transmitter is powered with two wires, and the third wire sends the signal to the input module, which shares a common connection with the transmitter.

 

Figure 3. Diagram of 2-wire, 3-wire, and 4-wire analog sensors.

 

Wiring instructions will vary depending on the equipment you’re using. Inputs typically have a positive for the current signal and a common to complete the circuit. The common may or may not be shared. Analog output devices will use individual commons as each output will need to differ.

Voltage signals will be especially susceptible to both electromagnetic interference and voltage drop over distance. Current signals (mA) will be less susceptible to these issues, enjoying longer cable runs through noisy environments. Voltage signals can be protected by careful routing, short cable lengths, and shielded cable. Remember to ground your shield properly on one end.

 

Powerful Automation with Simplicity in Mind

Industrial systems and equipment can be tuned to accept and respond to continuous signals for more responsive control, while maintaining the benefits of a simpler setup. There are very real reasons why much of the automated world runs on analog signals. Combined with modern equipment, communication protocols, increasingly capable SCADA software, and better connectivity, analog transmitters and equipment play a vital role in today’s most advanced automated systems.