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: PLC to PLC Communication using S7 Connection PUT & GET Instructions
Share
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 > PLC to PLC Communication using S7 Connection PUT & GET Instructions

PLC to PLC Communication using S7 Connection PUT & GET Instructions

In TIA Portal, we can establish communication between PLC to PLC using S7 Connection and PUT & GET instructions.

Last updated: May 19, 2021 8:02 pm
Editorial Staff
PLC Tutorials
1 Comment
Share
7 Min Read
SHARE

In the field of Industrial Automation, communication between active & passive devices is the most crucial task.

Contents
InstructionsPUTGET InstructionPLC to PLC Communication using S7 Connection Configuration StepsPros & ConsConclusion

The communication occurs through various mediums such as Profibus, Profinet / Ethernet, Modbus RTU, and Modbus TCP, etc. Along with these mediums, the device must have standard communication protocol support to establish the connection.

In TIA Portal, we can establish communication between two CPUs using S7 Connection via Profinet and Industrial Ethernet.

Instructions

The following instructions are used for S7 Communication.

  • GET
  • PUT

Using the above instructions we can establish communication between S7 1500 and S7 1200 CPUs.

PUT

The PUT instruction sends the data to the Partner CPU.

PUT Instruction

Input Pins

EN – The instruction shall be enabled only if this pin is healthy.

REQ – The instruction sends the data to Partner CPU on the Positive Pulse applied to this pin.

ID – This is the hardwired ID created automatically when we create PUT instruction.

ADDR_1 – The pin contains the address of Partner CPU, where data needs to be sent.

SD_1 – The pin contains the address of the Local CPU i.e. the data to be sent to Partner CPU.

GET Instruction

The GET instruction gets the data from the Partner CPU.

GET Instruction

Input Pins

EN – The instruction shall be enabled only if this pin is healthy.

REQ – The instruction sends the data to Partner CPU on the Positive Pulse applied to this pin.

ID – This is the hardwired ID created automatically when we create PUT instruction.

ADDR_1 – The pin contains the address of the Local CPU, where data needs to be sent.

RD_1 – The pin contains the address of the Local CPU i.e. the data to be sent to Partner CPU.

The output pins for both the instructions are same.

Output Pins

ENO – Enable Output Pin

DONE – This pin indicates data transfer is done.

ERROR – This pin indicates a data transfer error.

STATUS – This pin indicates data transfer success / failure status.

PLC to PLC Communication using S7 Connection Configuration Steps

The S7 connection is a single-sided connection i.e. we can write the instruction in any one PLC to get or put data to another PLC.

We will test the PUT instruction in this example. On a similar front GET instruction is executed.

Step 1:

TIA Portal Hardware Configuration.

  • Drag two PLC’s (PLC_A & PLC_B) into the hardware configuration window and select S7 Connection. Connect the PLCs using Profinet ports.
  • We can select any type of PLC in the S7-1200 & S7-1500 series.
S7 Connection Setup

Step 2:

Permit Access to PLCs for PUT / GET Communication.

  • Check the box as shown in the figure for permitting PLC PUT / GET Communication.
  • Select Core of PLC -> Properties -> General ->Protection & Security -> Connection mechanism
PLC Permit Access

Step 3:

Call the PUT Instruction into ‘OB1’ of Local PLC and Set the Properties.

  • We consider PLC_A as Source / Local PLC & PLC_B as Destination / Partner PLC. Hence, we have called PUT Instruction in OB1 of PLC_A.
  • We have called PUT Instruction in Main Program Cycle ‘OB1’ of PLC_A.
PUT Instruction to send the data to PLC

Connection Parameters:

Click on the Blue Icon on PUT Instruction.

The screen shall navigate to Configuration Parameters of PUT Instruction.

Select Partner CPU as PLC_B, other parameters shall be automatically selected.

Siemens S7 Connection Parameter Selection

Block Parameters:

The block parameters are the same explained in the pin diagram above.

Tag_2 (M0.0) is data send request input.

Q0.0 is the address of PLC_B over which data shall be sent.

I0.0 is the address of PLC_A from which data shall be sent to PLC_B.

Siemens S7 Block Parameter Selection
  • The output block parameter selection is shown in the figure.
  • Tag_4 shall indicate data transfer action done.
  • Tag_5 shall indicate if any error occurs in data transfer.
  • Tag_7 shall indicate data transfer status.
  • We can use a separate DB address for mapping these outputs.
PUT SFB

Step 4:

Start Simulation for both PLC_A & B and download the codes.

Start Simulation of PLC A
Start Simulation of PLC B

Step 5:

Testing using Watch Table for both PLC A & PLC B.

We have created separate watch tables for PLC_A & B. I0.0 is the source address in PLC_A and Q0.0 is the destination address in PLC_B.

  • In PLC_A watch table, force ‘FALSE’ value into I0.0 address.
Watch and Force Tables
  • In PLC_B watch table, the value of Q0.0 shall be ‘FALSE’.
PLC B Watch Table
  • In PLC_A watch table, force ‘TRUE’ value into I0.0 address.
PLC A Watch Table
  • In PLC_B watch table, the value of Q0.0 shall be ‘TRUE’.
S7 Watch Table

Pros & Cons

It is very easy to establish. However, once communication is established it has no control or watch over data exchange.

It is not a secure method of data exchange as the PLC is available to any devices present over the network.

We can share very less amount of data using this type of communication.

The data blocks (DB’s) with quantized / symbolic addressing type doesn’t support this method of data communication. 

Conclusion

We studied one of the methods to establish communication between PLCs using PUT & GET Instruction in S7 Connection. It is very easy to establish and should be used over secure networks. The medium used is Profinet / Industrial Ethernet. We exercised PUT instruction to send data from PLC_A to PLC_B.

Author: NMG

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:

  • Proportional Controller in PLC
  • Basics of Motion Controllers
  • Siemens S7 1200 PLC configuration
  • Siemens S7 300 CPU Status and LED Errors
  • Instrumentation System Architecture
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

Difference between Signal Cables and Control Cables
Create an Application in HMI using Tia Portal
Yokogawa DCS and SIS System Architecture
SCADA Software and their Comparison
PLC Timer Practice Exercise: Coffee Machine Programming
How to Simplify PLC Coding Using Karnaugh Maps?
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
1 Comment
  • Subbu says:
    May 20, 2021 at 10:33 am

    This is very good PLC tutorial. Thnx

    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

PLC Program for Controlling Sequence of Conveyors with Interlock
Safety Door Interlock PLC Program
Step by Step Guidelines for Downloading Free PLC software
PLC Programming for 3 Motors control in Ladder logic
Conveyor Speed Logic using Structured Text in PLC
How PLC Reads the Data from Field Transmitters
Control Two Motors in Sequence after Time Delay – Circuit, Operation
Speed Control of Pneumatic Cylinder (Explanation with PLC)

Keep Learning

PLC Compressor Control Ladder Logic

PLC Compressor Control Ladder Logic

Advanced Skills Required for a PLC Programmer to Get a Job

Advanced Skills Required for a PLC Programmer to Get a Job

Star-Delta PLC programming with 1 button

How to Program a Star-Delta System using 1 Button in PLC?

PLC Count values higher than 999

PLC Count values higher than 999

SCADA System

What is SCADA System?

Power Supply Sizing for Industrial Automation Systems

Power Supply Sizing for Industrial Automation Systems

Instrumentation and Control Project Packages

Instrumentation and Control Project Packages – Detail Engineering

PLC Program for Temperature Control using Thermostat

PLC Program for Temperature Control using Thermostat

Learn More

Advantages of VoIP technology

What is VoIP and How Does it Work? Advantages & applications

Strain Gauge Pressure Sensor Principle

Strain Gauge Pressure Sensor Principle

Test Automation in Production Environment

Test Automation in Production Environment – Everything You Should Know

How to Calculate Heat Load In Electrical Panel

How to Calculate Heat Load in Electrical/Electronic Panel Enclosure

Robot Anatomy

Robot – Anatomy, Configuration, Reference Frame, Characteristics

% of Reading vs. % of Full Scale Accuracy

% of Reading vs. % of Full Scale Accuracy

Power Systems Questions & Answers

Power Systems MCQ Series 3

Certification Markings

Flammable Facts

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?