Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

support.industry.siemens.

com | Product Support | Wednesday, 27. January 2021
 Print this page   Generate PDF

Entry type: FAQ, Entry ID: 82212115, Entry date: 11/24/2020

How do you configure and program an S7 connection and the “PUT” and “GET” instructions for
data transfer between two S7 CPUs?
You can use the S7 Communication, for example, for data transfer via the integrated PROFINET interface and
Industrial Ethernet interface of the S7 CPUs.

The following services are available for S7 Communication:
PUT for sending data
GET for receiving data
In STEP 7 V16 (TIA Portal) the "PUT" and "GET" instructions are in the “Instructions” task card under “Communication >
S7 Communication".
In STEP 7 V5.6 the function blocks FB15 "PUT" and FB14 "GET" are in the Standard Library under "Communication
Blocks".
 
Data transfer between S7-1200 CPUs and S7-1500 CPUs
The following sample program describes how to configure an S7 connection between an S7-1500 CPU and an S7-1200
CPU to exchange data between the S7-1500 CPU and the S7-1200 CPU using the “PUT” and “GET” services.
Download
  Documentation (1,1 MB)
    Project for STEP 7 V16 (2,0 MB)
Note
The example also applies for data exchange between two S7-1500 CPUs or S7-1200 CPUs.

Data exchange between S7-1200 CPUs and S7-300 CPUs
The following sample program describes how to configure and S7 connection between an S7-1200 CPU and S7-300
CPU to exchange data between the S7-1200 CPU and S7-300 CPU using the "PUT" and "GET" services.
Download
  Documentation (3,0 MB)
    Project S7-1200 CPU for STEP 7 V16 (2.9 MB)
    Project S7-300 CPU for STEP 7 V16 (3,0 MB)
    Project S7-300 CPU for STEP 7 V5.6 (477,8 KB)
Note
The example for S7-1200 CPU also applies for an S7-1500 CPU. The example for S7-300 CPU also applies for an S7-
400 CPU.
 
Sequential call of the "PUT" and "GET” instructions in the user program of S7-300 CPUs and S7-1200
CPUs
The following sample program shows how to call the "PUT" and "GET" instructions or communication modules
sequentially in the user program of the S7-1200 CPU and S7-300 CPU in order to transfer more than 160 bytes of data
via an S7 connection.
The "GET” instruction or communication module is called three times in succession with the same connection number
so that 400 bytes of data can be received.
The "PUT" instruction or communication module is called three times in succession with the same connection number so
that 400 bytes of data can be sent.
Download
  Documentation for STEP 7 V16 (1,2 MB)
  Documentation for STEP 7 V5 (999,3 KB) 
    Project for STEP 7 V16 (2,1 MB)
    Project for STEP 7 V5 (484,8 KB)
Further Information
Detailed information about configuring and programming the S7 Communication in the S7-1500 CPU and S7-
1200 CPU is available in the manual entitled  SIMATIC STEP 7 Basic/Professional V16 and SIMATIC WinCC
V16 .
Detailed information about configuring and programming the S7-Communication in the S7-300 CPU and S7-
400 CPU fis available in the manual entitled  System and Standard Functions for S7-300/400 Volume 1 and
Volume 2 .
Creation Environment
The screens and downloads in this FAQ response were created with STEP 7 V16 (TIA Portal) and STEP 7 V5.6.

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic,
state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.

Entry belongs to product tree folder(s):
This entry is associated to 177 product(s).
 Show/Hide picture 1

© Siemens AG 2009-2021 - Imprint Privacy policy Cookie policy Terms of use Digital ID 0.0.0.0

You might also like