4-20 mA Current Loop

The 4-20 mA current loop remains one of the most dominant types of analog output in the industry today.

In this article I will look at the history of the 4-20 mA loop, why it is widely used in industry automation, and its advantages and disadvantages.

What is a 4-20 mA current loop?

The 4-20 mA current loop especially refers to the wire connecting the sensor to a receiver that receives the 420 mA signal and then returns to the transmitter. 

The history of 4-20 mA current loop

At the beginning of the industry automation, most mechanical devices were controlled by a pneumatic signal; these systems were costly, bulkier, and difficult to repair. The control signal used back then was 3-15 psi.

With the huge development of electronics in the 1950s, electronic devices became cheaper, and eventually, the old pneumatic 3-15 psi systems were replaced by the analog controllers that used the 4-20 mA.

Why 4-20 and why not 0-20 mA?

Now we know that the control signal that was picked was 4-20 mA, the question I often get is why 4- 20 mA and not 0-20 mA? The simple answer is that there was a problem with the dead zero.

What is a dead zero issue?

A dead zero is when you start the lowest signal with 0mA, and the controller will not be able to differentiate if the 0mA is because the sensor detects the lowest signal value or there is an open circuit.

If you have an H2S sensor that detects 0 to 100 ppm, it will show 0 mA when there is 0 ppm of H2S, and it will also show 0 mA when there is an open circuit in the loop. This will have a huge impact on the process control.

How do you solve a dead zero issue?

The solution was simple: start with a number above zero; in the same example, if the sensor reads zero, it will send 4 mA, and if there is an open circuit, it will send a 0 mA signal. The problem is solved.

Why 4 mA?

We said above that to solve the dead zero issue, there was a need to start the value at a value greater than zero, the next question is, why 4ma and not another value? Here is the answer.

Electronic chips require at least 3mA to work

To move from mechanical controllers to electronic ones, electronic chips were introduced. Those chips require a minimum of 3 mA of current to function, so a margin of 4 mA is taken as a reference.

The 20% bias

The original control signal was 3-15 psi; 20% of 15 is 3, and 20% of 20 mA is 4 mA.

Why 20mA?

There are 3 reasons why 20 mA was picked:

The human heart can withstand up to 30 mA.

20 mA is used as the maximum because the human heart can withstand up to 30 mA of current only. so, from a safety point of view, 20 mA is chosen.

1:5 rule

The 4-20 mA was designed to replace the old 3-15 psi, and since most instruments at the time were using this control signal, there was a need to design the new signal that would follow the same pattern.

Lineality 

With the current signal being linear, it is easier to design and implement the control system using the 4-20 mA signal.

Easy to design

Most industrial transmitters are powered with 24 V, and since the signal obeys Ohm’s law, V=IR, it makes it easier to design devices that can be connected to the 4-20 mA loop.

Simple calculations

Having a signal that ranges from 4-20 mA makes it very easy to calculate the expected values. if we have a sensor that detects the 0 to 100 range, here are the estimated current values.

0-4 mA

25-8 mA

50-12 mA

75-16 mA

100-20 mA

It is that simple.

Simple conversion to 1-5V

For other elements of industry automation to interpret the signal, there is a need to convert it to a digital signal.

Most ADCs (Analog-to-Digital Converters) use voltage to convert the signal; by using the precision 250-ohm resistor, it makes it easier to convert the analog signal to a digital one by using Ohm’s law, V=IR.

Types of 4-20 mA current loop

There are 4 types of 4-20 mA current loops, where the two-wire loop version is by far the most common.

There is a three-wire 4-20 mA source, 3-wire 4-20 mA sinks, and four-wire 4-20 mA variants that are similar in their fundamental working principle.

I explain the difference between them in this article here.

Advantages of 4-20 mA current loop

Worldwide industry standard

Since it is easier to implement and design control loops with a 4-20 mA signal, it is widely used in many industrial automation industries.

Easy to connect and configure

The 4-20 mA loop is easy to design, configure, and wire; you do not need a lot of training to wire or configure it; hence, it is used in most applications.

Less sensitive to electronic noise

Electronic noise can affect the information the cables are carrying since the signal is transported as a current, which is less sensitive to electronic noises than voltage.

Fault detection using live zero

Since the signal starts at 4 mA, it is very easy to know if there is a fault in the loop; if we receive 0 mA, we know there is a fault somewhere.

You can use a simple multimeter to detect a fault

Since the loop will carry current, you can measure the current by using a simple $10 multimeter; this will reduce the diagnostic time and fault detection cost.

Disadvantages of the 4-20 loop

There are a few disadvantages to using the 4-20 mA loop; for me, these two are the main ones.

The current may introduce a magnetic field

The current may introduce magnetic fields and crosstalk to the parallel cables; this can be solved by using the twisted wire cable.

One pair of cables can only carry one process

This is huge. When you design a control loop using a 4-20 mA signal, you need to know that one loop can only have one variable, so if you have many loops, you will need more cables, and this will increase the cost of installation and eventually make the fault diagnostic more complicated.

Conclusion

We took a look at the famous 4-20 mA current loop. We looked at the history of the 4-20 mA loop, why it is widely used in industry automation, and its advantages and disadvantages.

If you have anything to add to this or a question, please leave your comment below. Thank you for reading.

Types of 4-20 mA Current Loop

The 4-20 mA current loop remains one of the most dominant types of analog output in the industry today.

I have been working with wiring industrial transmitters for some time now, and one thing I found out is that most people cannot wire them properly because they fail to distinguish between different types of 4-20 mA current loops.

What are the types of 4-20 mA Current Loop

There are 4 types of mA output signals
– Loop (2-Wire)

– Source (3-Wire)

– Sink (3-Wire)

– Isolated (4-Wire)

Each form uses a different reference path for the creation of mA signals, which is dependent on the controller or receiving device (i.e., PLC) to which each field device is connected.

Loop (2-Wire)

This is one of the most common 4-20 mA forms; you just need two wires for power and communication between the field device and the controller.

The controller provides the power to the loop, and the 4-20 mA signal flows from the field device to the controller through the common.

The main advantage of the 2-wire loop 4-20 mA signal is that it is easier to wire, and it will require two wires; hence, it will lower the installation cost.

The disadvantage of the 2-wire 4-20 mA loop is that it has two wires, so if the signal wire is broken, there will be no power on the field device (they use the same cable for power and signal).

There are 4 types of 4-20 mA current loops, where the two-wire loop version is by far the most common.

Although the wiring can be a little bit different, the working principle is the same; understanding how each one is wired can be fundamental to wiring them.

2 wires

3-wire 4-20 mA loop (Source)

The 3-wire 4-20 mA loop uses three wires to connect the field device with the controller; here the signal has its own wire, so you have one wire for the +, one wire for the -, and one wire for the signal.

The two wires (the + and the -) are used to power the field device, while the signal wire is used to carry the field device signal to the controller.

The most important thing to note here is the current move from the field device to the controller.

The main advantage of the 3-wire 4-20 mA loop source is that the signal and the power wires are separated, so in case the power wire is disconnected, the field device can still be on.

The main disadvantage of this type of 4-20 mA signal is that it uses 3 wires, so more cable is used for wiring; hence, the cost of installation goes up.

3-wire 4-20 mA loop (Source)

The 3-wire 4-20 mA loop uses three wires to connect the field device with the controller; here the signal has its own wire, so you have one wire for the +, one wire for the -, and one wire for the signal.

The two wires (the + and the -) are used to power the field device, while the signal wire is used to carry the field device signal to the controller.

The most important thing to note here is the current move from the field device to the controller.

The main advantage of the 3-wire 4-20 mA loop source is that the signal and the power wires are separated, so in case the power wire is disconnected, the field device can still be on.

The main disadvantage of this type of 4-20 mA signal is that it uses 3 wires, so more cable is used for wiring; hence, the cost of installation goes up.

3-wire 4-20 mA loop (Sink)

This is almost the same as the three wires source type. The 3-wire 4-20 mA loop uses three wires to connect the field device with the controller; here the signal has its own wire, so you have one wire for the +, one wire for the -, and one wire for the signal.

The two wires (the + and the -) are used to power the field device, while the signal wire is used to carry the field device signal to the controller.

The main difference between the 3-wire sink and 3-wire source is that in the 3-wire sink configuration, the current signal moves from the controller to the field device.

The main advantage of the 3-wire 4-20 mA loop sink is that the signal and the power wires are separated, so in case the power wire is disconnected, the field device can still be on.

The main disadvantage of this type of 4-20 mA signal is that it uses 3 wires, so more cable is used for wiring; hence, the cost of installation goes up.

Isolated (4-Wire)

The four wires 4-20 mA current loop is my least favorite; it works almost like the 2-wire loop, but the main difference is that in 4 wires you need two power sources; in this case, the field device will need its power supply.

The current signal will be flowing from the field device to the controller, and the loop is powered by the controller in a 2-wire form.

The main advantage of the 4-wire 4-20 mA loop is that the field device and the controller use different power sources, so if the controller power source goes offline, the field device will keep working.

The main disadvantage is that you will need two power sources; the power sources are not cheap, and this will increase the cost of installation.

How do you know which type of 4-20 mA loop you need to wire?

All field devices come with user guides, and in each user guide, you should be able to see the wiring diagram.

If in the user manual you cannot figure out which type of 4-20 mA your device or controller has, please contact the manufacturer of your device, and they should be able to tell you how to wire it.

Conclusion: Types of 4-20 mA Current Loop

That is it; those are the types of 4-20 mA current loops. Depending on the type, the flow of current and the wiring can change a little.

If you have one of those and you need some help, please post your question below, and we will get back to you.

What is Modbus, and How does it work?

Modbus is one of the most common communication protocols in industrial automation. In this post, I will share with you what Modbus is, its types, advantages, when to avoid using it, and how to diagnose it.

What is ModBus communication protocol?

Modbus communication protocol is a serial communication protocol developed by Modicon® in 1979 for use with its programmable logic controllers (PLCs).

In simple terms, it is a method used for transmitting information over serial lines between electronic devices, one being the master (the one that initiates the communication) and the other the slave (the one that responds to a communication).

How does Modbus work?

In a few words, this is how the Modbus protocol works. The Modbus protocol exchanges data using a request/response mechanism between a master and a slave.

The master/slave principle is a type of communication protocol in which a device (the master) controls one or more devices (the slaves).

Why is Modbus so popular?

Modbus is popular among engineers and technicians because it is so easy to understand; you do not need to be a programmer to understand it.

I remember when I was providing training to new hires, I would tell them that Modbus RTU is very simple: connect A to A and B to B, and everyone was able to wire it on the first day of class.

Is Modbus dead?

No, Modbus is not dead; this is a myth. It will continue to live on, as there are millions of Modbus devices, and every day many of them are being built and implemented.

Is the Modbus protocol industry-specific?

No, the Modbus protocol is not industry-specific and can be used in different types of industries such as factory automation, building automation, process control, oil & gas, traffic & parking, agriculture & irrigation, water & wastewater, pharmaceutical and medical, material handling, etc.

When should you not use Modbus?

Don’t use Modbus if you have a lot of data to transfer. The packets are limited to around 120 bytes maximum.

Transferring 1K requires almost ten messages. It’s just not efficient for any kind of large data transfer.

What are the advantages of Modbus?

– Longer distances.

– Higher speeds.

– The possibility of multiple devices on a single multi-drop network.

Types of Modbus Communication Protocols

Several versions of the Modbus protocol exist for the serial port and Ethernet and the most common are:

– Modbus RTU

– Modbus ASCII

– Modbus TCP

– Modbus Plus

Modbus RTU (Remote Terminal Unit)

Modbus RTU is the most common implementation available for Modbus, it is used in serial communication and it makes use of a compact, binary representation of the data for protocol communication.

Modbus ASCII (American Standard Code for Information Interchange)

This is the type of Modbus that is used in serial communication and makes use of ASCII characters for protocol communication.

The ASCII format uses a longitudinal redundancy check checksum. Modbus ASCII messages are framed by a leading colon (‘:’) and trailing newline (CR/LF).

Modbus TCP/IP or Modbus TCP

This is the type of Modbus protocol that is used for communications over TCP/IP networks.

The Modbus data is wrapped around TCP/IP internet protocols and then the data is transmitted over standard internet.

Modbus Plus (Modbus+ or MB+)

Modbus Plus is a peer-to-peer protocol that runs at 1 MBS. The Modbus Plus protocol specifies the software layer as well as the hardware layer. This remains proprietary to SCHNEIDER ELECTRIC.

Modbus RTU

This is the most commonly used type of Modbus in industrial automation; let us answer a few questions about this type of Modbus.

What is a Modbus RTU?

Modbus RTU is an open serial protocol derived from the master/slave architecture (now client/server) originally developed by Modicon (now Schneider Electric). It is a widely accepted protocol due to its ease of use and reliability.

How many slaves can be connected in Modbus RTU?

Modbus RTU will support up to 247 slaves from addresses 1 to 247 – address 0 is reserved for broadcast messages.

What is the difference between Modbus RTU and Modbus TCP?

The main difference between MODBUS RTU and MODBUS TCP/IP is that MODBUS TCP/IP runs on an Ethernet physical layer, and Modbus RTU is a serial protocol.

Is Modbus RTU serial?

Yes, Modbus RTU is an open, serial (RS-232/422/485) protocol derived from the Master/Slave architecture.

What is Modbus RTU speed?

The majority of Modbus RTU devices only support speeds up to 38400 bits per second.

Modbus TCP IP

What is Modbus TCP/IP?

Modbus TCP/IP ( is simply the Modbus RTU protocol with a TCP interface that runs on Ethernet.

The Modbus messaging structure is the application protocol that defines the rules for organizing and interpreting the data independent of the data transmission medium.

What is the difference between Ethernet and Modbus TCP/IP?

The main difference between Ethernet and Modbus TCP/IP is that Modbus TCP/IP combines a physical network (Ethernet), with a networking standard (TCP/IP), and a standard method of representing data (Modbus as the application protocol).

Essentially, the Modbus TCP/IP message is simply a Modbus communication encapsulated in an Ethernet TCP/IP wrapper.

How to troubleshoot Modbus communication failure?

Troubleshooting Modbus failure can be the most difficult troubleshooting because it means that no activity is being recognized between the slave and master.

Basic Checks for No-response from slave error:

Check that communication settings parameters are correct

This is the most common error I found in many Modbus communication, you need to set the same baud rate in the master and the slave, also double check if the protocol selected is Modbus ( most field devices can communicate via different communication protocols.

Check that the slave’s address

If you have more than one field device, you need to assign them different addresses, most field devices come with a default address of 1, if you do not change it, you will have a duplicated address problem and this will cause a communication error.

Also, check on the controller side, the number of addresses on the datalogger should be equal to the number of field devices connected.

Check Modbus wiring

Just to be sure check your wiring, make sure there are no loose cables or open circuits, and also make sure that the cable distance is less than 2000 ft ( 660 meters).

Avoid using T-Taps, if you have more than one field device, you must daisy chain them.

Check for reversed polarity on RS485 lines

Wiring Modbus devices is simple; they have two terminals, A and B, just wire A to another A and B to another B. But sometimes manufacturers will use different terminology (some use TX and RX). If uncertain, just try swapping them.

Conclusion

That is it, in this post, we defined what Modbus is and how it works, and we answered a few common questions about the Modbus communication protocol.

If you have questions please feel free to let us know and will answer them as soon as we can.

What is Modbus Heartbeat?

Modbus is one of the most used industrial automation protocols. In this post, I will explain what a Modbus heartbeat is and how it is used. 

What is Modbus Heartbeat?

A heartbeat is either a bit or a holding register that changes state for external devices to tell that the industrial controller (mostly the PLC) is running. 

What is the main function of the Modbus Heartbeat?

The main function of the heartbeat is to facilitate the detection of communication problems in programming environments where the transport layer communication error information is unavailable.

This increments approximately every 5 to 10 seconds. It is the responsibility of the system integrator to notify plant personnel if a Modbus master (the PLC or DCS system) fails to communicate with the transmitter. This register can facilitate this notification.

How is Modbus Heartbeat implemented?

The implementation of a heartbeat depends upon the master and slave in question. For most master applications, a heartbeat can be any simple message that is sent out to each slave to ensure that even if they have nothing new to report, at least they are online and in communication.

The timer register in the master will be expecting the information every 5 seconds (some manufacturers have this time of 10 seconds).

The external device that is communicating with this device would compare over time to see if the register is changing. If it does not, then the external device would declare either a master failure or a comm fail.

In most of the applications, there is no need to implement the heartbeat. This is because most of the Modbus slave units do not respond to Modbus commands unless they are operating. In such cases, just use a normal Modbus Read function.

What is heartbeat in PLC?

A PLC heartbeat signal is a signal that is periodically sent by a programmable logic controller (PLC) to indicate that it is still functioning properly. The signal is used by the PLC’s watchdog timer to confirm that the PLC is running correctly.

Conclusion

The Modbus heartbeat is like a watchdog that will make sure that there is communication between the master and slave in a Modbus communication.

This bit or register is not widely used in industrial communication, as most slave devices will not respond to master queries if they are not in communication.