Establish Communication Between Two PLC Via PROFIBUS Protocol

Communication! Do really our Equipment and controllers need to communicate with each other… usually in the small process, there is no need to establish a network between your devices as it could be just one controller.

But in most cases you will find maybe two or three controllers into your plant, to make full control and integration of the process.

These controllers have to see each other they have to speak and transmit data with each other, so one of the most common protocols in the Automation Industry is PROFIBUS, what are its characteristics and application and how to configure a network between two PLCs that is we are going to talk about. Keep focus.

NOTE the primary vendor for this protocol is Siemens.

What is a PROFIBUS Protocol?

PROFIBUS defines the technical features of a serial field bus system, by which distributed digital automation devices, from field to cell level, can be networked together.

It is a multi-master system and so allows the combined operation on one bus of several automation, engineering, and visualization systems with remote peripherals.

Protocol Architecture

This protocol depends on Master-Slave architecture:

Master

Master determines data traffic on the bus and can send messages without an external request if it is in possession of the bus access token.

Masters are also described as active stations.

Slave

The slave is a peripheral device, such as input and output devices, valves, drives, and transmitters. They do not receive a token authorizing bus access.

This means that they can only acknowledge messages received or, at the request of a master, send messages to it. Slaves are described as passive stations.

They only require a small portion of the bus protocol, which means they make implementation possible with little effort.

Profibus Protocol Limitations and Characteristics

OrganizationPROFIBUS & PROFINET International
Physical LayerRS-485
Transmission speedUp to 12Mbit/sec
Address SpaceUp to 126
Telegram244 Bytes
Technology ArchitectureMaster/Slave
Max Cable Length Between two devices100 Up to 1200 Meter That depends on the bit rate used
ConnectivityPA + Others

Steps to configure a PROFIBUS network

Our network consists of:

  • Siemens PLC S7-400 (DP Master) CPU 412-2DP
  • Siemens PLC S7-300 (DP Slave) CPU 312C-2DP
  • PROFIBUS cable (RS485 cable)

Step 1:

First of all, we will make our Hardware configuration and connect the two PLCs through (DP port)

Connect two PLCs through DP port

Step 2:

Then we are going to set the DP address and parameters of the PLC by clicking on the PROFIBUS port for (S7-412)

Profibus Address
Profibus Operating Mode

Step 3:

Then we have to set the parameters for the other PLC (S7-312)

PLC Profibus Configuration
Assign PLC to Master Network

Step 4:

You should be aware that the communication between the two PLCs via PROFIBUS protocol stands on the Input / Output Memory of the devices, for this part you can customize your data addressing for the communication.

Siemens PLC DP Interface

Step 5:

If you want to change transferring speed you have to click on the PROFIBUS connection between the two PLCs then you can change from here,

Profibus Speed

Finally, you can download your program on the PLCs.

Little Tip in the hardware connection, for the PROFIBUS connector there is a small switch that called Termination resistor.

You have to ensure that it is ON for the two PLCs (as the network consists just of two devices), but in case of that you have a big network that consists of several PROFIBUS devices, you have to make this switch ON for just the first and last devices as they have just Ingoing cable for the connector, and all other devices that they are in between its Termination Resistor should be OFF as there are Ingoing and Outgoing cables for the same connector.

PROFIBUS connector

If you want some Detail information about this Protocol please check this Manual.

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

Leave a Comment

Share via
Follow us and never miss an update!