Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: GET Command – Siemens PLC-to-PLC Communication Project
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > GET Command – Siemens PLC-to-PLC Communication Project

GET Command – Siemens PLC-to-PLC Communication Project

In this article, we are going to talk about the GET command used for the Siemens PLC-to-PLC communication project for data exchange.

Last updated: January 3, 2024 3:20 pm
Mahmoud Salama
PLC Tutorials
1 Comment
Share
10 Min Read
SHARE

In a previous article, we talked about the PUT command and how we use it to communicate between two PLCs wither they are in the same project or in two different projects. In this article, we are going to talk about the GET command used for the Siemens PLC-to-PLC communication project for data exchange.

Contents
What is the GET command?Siemens PLC-to-PLC Communication Project

What is the GET command?

Just like the put command a GET command is a TIA Portal built-in function block FB that is used exclusively for S7-Family CPUs to get data from a remote partner PLC to a local PLC. Opposite to the PUT command, instead of putting data from PLC_1 into PLC_2 the GET command will get data from the PLC_2 into PLC_1.

When using GET command, I would have two PLCs, where I need to get data from one PLC called partner to another PLC called local.  The Local PLC is where the GET command will be programmed.

In addition to a Profinet connection between the two PLCs. Some configurations must be done to the partner PLC, to enable it to be accessed by the other PLC.

We will create a sample project to show how to use the GET command.

Siemens PLC-to-PLC Communication Project

We will assume a sample project where we have two PLCs in the same project, PLC_1 which will act as the local PLC and PLC_2 which is the partner PLC.

To create a situation where we need to use the GET command, we will assume that we want to read/get an integer from the partner PLC_2 to the local PLC_1.

First, let’s create a new project and add the two PLCs. See picture 1.

GET Command in Siemens PLC

picture 1. Create a new project and add two PLCs.

Now, we need to configure the partner PLC_2 to enable the GET access from PLC_1. We also need to prepare the data that will be moved from PLC_2 into PLC_1.

First, we need to allow the access of the GET command to the PLC_2 that will give the data. See picture 2.

Siemens PLC-to-PLC Communication Project

picture 2. Allow GET command access.

As you see from the picture, we allow the GET command to access the PLC_2 from the Properties of the PLC_2, in the Protection and security option, click on the

“Permit access with PUT/GET communication from remote partner”

Now, I am allowed to read/get data from the partner PLC_2 using the GET command.

NEXT, we want to create the data that will be moved to the PLC_1, we assumed that PLC_1 wants to get an integer from PLC_2.

We will define an integer tag named “ SendDataToPLC_1” this integer tag will be read from PLC_2 into PLC_1. See picture 3.

PLC to PLC Communication With Configuration

picture 3. Define data to be moved to PLC_1

And that is it; this is the entire configuration you need to prepare from the PLC_2 side to be able to receive data through the GET command.

NOW, we go to PLC_1, in PLC_1 we want to create logic where we use the GET command to read data from the PLC_2.

As we did in the last article, we will just drag and drop the GET command into our Main OB1. See picture 4.

Siemens GET Command Tutorial

picture 4. Drag and drop the GET command

Note that, the GET command is found in the S7 communication folder, as it is an exclusive function for S7 family PLC, because it involves safety issues. Remember in picture 2 when we allowed the use of GET command it was in the Security and Protection attribute of the PLC properties as it is related to PLC safety and protection.

When you drag and drop the GET command into your, you will asked to create a data block instance as the GET command is essentially a function block FB.  See picture 5.

PLC-to-PLC GET Communication

picture 5. Create a data instance for the GET command.

Now, that we added the GET command to our logic, we need to start configuring the GET block as we did before with the put command. To open the configuration views of the GET command press the small blue icon on top of the block. See picture 6.

Siemens PLC GET Protocol

picture 6. Open configuration view.

We have two main parameters to configure, the connection parameter and the block parameter. See picture 7.

Siemens S7 GET Communication

picture 7. GET block configuration.

As you can see from the picture, the Local PLC is the PLC where the GET command is called. Whereas the Partner PLC is the one that will give the data, it is also the same one which we allowed the GET access for. In our project the partner PLC is PLC_2.

You can see also from the picture that the partner is empty and we have to select the PLC. See picture 8.

PLC GET Command Project

picture 8.  Different option in the partner list

As you can see, we have two different options to select from for the Partner PLC.

Unspecified is when the PLCs are of different TIA Portal project and if the PLCs are of the same TIA Portal project, then you will find the other PLC in the list. 

When you choose the PLC_2 option as our PLCs are in the same project, the connection configuration will be automatically filled in. See picture 9.

Siemens PLC Data Retrieval

picture 9. PLC_2 as partner

Because both PLCs are in the same project, when I choose the PLC_2 option, all connection parameters will be automatically filled in.

On the other hand, if the partner PLC is from a different project, then I will choose Unspecified option, and in that case I will have to fill in some data such as the Partner PLC IP address. See picture 10.

Siemens PLC Networking with GET

picture 10. Partner PLC as unspecified.

As you can see, when the partner is Unspecified, then you will need to manually add some information such as the partner PLC IP address.

You can also see that we need to add a subnet to the local PLC_1. To do that, you just go to the Profinet properties of the PLC_1 and select to add a new subnet. See picture 11.

PLC Data Transfer Methods

Picture 11. Add subnet for PLC_1

After adding a new Subnet to PLC_1, the connection parameter configuration will be complete. See picture 12.

Inter-PLC Communication Protocols

picture 12. Connection parameter is complete.

The next configuration we need to take care of is the block parameter.

In the block parameter we define the data that will be moved between the two PLCs and also the trigger signal that will allow the start of execution of the GET block. See picture 13.

Implementing PLC Network Communication

picture 13. Block parameter.

As you can see, we need to define the trigger signal for the GET block and we also need to define what data will be moved from PLC_2 (Read area ADDR_1) and where will this data go (Store area RD_1).

 We already define the ADDR_1 before which is the SendDataToPLC_1 integer tag we defined inside PLC_2.

NOW, we will define the store area for that integer tag and the trigger signal. See picture 14.

PLC Communication Techniques

picture 14. Define trigger signal and store area

After we defined the trigger signal, ADDR_1 and the RD_1, we will fill in these parameter to the block configuration. See picture 15.

PLC Synchronization Methods

Picture 15. Fill in the block parameter

Now, the configuration of the GET block is finished and you can see that the Block is now ready to be downloaded and run. See picture 16.

Multi-PLC Network Configuration

picture 16. GET block

The GET block is now configured and once the trigger signal is active the block will read the ADDR_1 from PLC_2 and write it into RD_1 in PLC_1.

In the next article, we will discuss another method of PLC-to-PLC communication.

Download the project files.

  • PLC Logic Document
  • PLC Source Code

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

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

Read Next:

  • Free PLC Training for Students
  • Top Embedded Systems Projects
  • How to Choose a PLC for a Project?
  • What is Multi-touch Technology?
  • MTech Project Ideas for Students
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
You've successfully subscribed !

Continue Reading

PLC Trainer Demo Download
Process Interlocks and Trips
Relay Operation, Types, Symbols & Characteristics
Light ON OFF Control using PLC
Surface Grinding Process using PLC Program
PLC Programming Example for a Batch Process
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Ben says:
    May 22, 2024 at 3:41 pm

    this is very important class i got and it’s helpful.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Schneider PLC Example Program for Star-Delta System
Safety Considerations in PLC System Design
Free Download Programmable Logic Controller (PLC) Book
How to Convert Voltage to Current using Resistor ?
Example of PLC Programming based on Logic Circuit
DCS versus PLC Architecture
PLC Ladder Logic Simulator Mobile Apps For Android
PLC Practice Questions

Keep Learning

Single Line Diagram of UPS System

UPS Selection Factors for a Control System

Distributed IO for Siemens PLC

How to Configure Distributed IO in a PLC Project?

Water Treatment Plant SCADA

Typical HMI Screen Design for Water Treatment Plant

PLC Timer Application in Security Camera Recording

PLC Timer Application in Security Camera Recording

Two Hand Press PLC

Two Hand Press Safety Control Circuit

Allen-Bradley SLC 500

History of Programmable Logic Controllers (PLC)

Ladder Logic Questions and Answers

Ladder Logic MCQ Questions and Answers

Sequencer Output in PLC

PLC Sequencer Instruction with Example

Learn More

how-a-4-20ma-transmitter-works

How a 4-20mA Transmitter Works?

DOL Starter Testing

DOL Starter – Working, Circuit, Advantages, Disadvantages, Applications

3-Wire, Three-Phase Delta Wiring System

3-Wire, Three-Phase Delta Wiring System

Abbreviations of Pressure, Temperature & Flow

Abbreviations of Pressure, Temperature & Flow

Heat Recovery in HVAC System

Heat Recovery in HVAC System

Ion Spectrometers Questions & Answers

Ion Spectroscopy Questions & Answers

span gas cylinders

Analyzer Sample Systems

Derivative Controller Response

Derivative Controller Principle

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?