Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 38066687, Entry date: 10/20/2009

Application for the "PUT" and "GET" Function Blocks of the S7 Communication

  • Entry
  • Associated product(s)
The exchange of small data volumes between an S7-300 station and the WinAC MP software PLC via Industrial Ethernet is realized with little configuration and programming overhead on the basis of S7-communication. The WinAC software PLC is installed on an MP377 12'' Touch Multi Panel.

The following picture shows the hardware configuration of the solution:

In this application the S7 communication with the "PUT" and "GET" services is used for data exchange.

Here the WinAC MP software PLC acts as a client for the S7 communication. The connection configuration and the realization of the PUT and GET services are performed in the client that actively establishes the communication connection. The FB4 “GET_PUT” user function block is called in the user program of the WinAC MP software PLC. This function block encapsulates the SFB14 "GET" and SFB15 "PUT" system function block calls for the data transfer. Via parameters it provides the user with a simple interface.

The user data is sent and received cyclically or process-controlled with the FB4 "GET_PUT" user function block. On the input parameters of the FB4 "GET_PUT", set the number of user data which should be exchange, as well as the source and destination address of the system function blocks SFB14 "GET" and SFB15 "PUT".

Here the S7-300 station acts as a server for the S7 communication, i.e. it is passively involved in establishing the connection. In the S7-300 station, a connection configuration and a call of communication function blocks or system function blocks are not necessary to realize write and read services.

You can operate this application via a simple user interface on an MP377 12'' Touch Multi Panel.


Content of Downloads


Application for the "PUT" and "GET" Function Blocks of the S7 Communication
38066687_PUT_GET_WinAC_MP_v10_e.pdf ( 1528 KB )
STEP 7 project (Configuration and user program)
38066687_WinAC_MP.zip ( 3743 KB )

Additional Information



System Software for S7-300/400 System and Standard Functions Entry-ID: 1214574
What properties, advantages and special features does the S7 protocol offer? Entry-ID: 26483647
Communication with SIMATIC S7 Entry-ID: 20982954
Client-Server Communications between WinAC Basis and S7-200 Stations via S7 Communication (PUT/GET) Entry-ID: 20987586
PC-based Automation: S7-Communication with WinAC RTX and S7-300 via Industrial Ethernet Entry-ID: 20987361
How do you program communication blocks FB14 "GET" and FB15 "PUT" for data communication on the S7-300? Entry-ID: 18610307
Sample program: S7 communication with the blocks SFB14 ("GET") and SFB15 ("PUT") with S7-400 Entry-ID: 1819293
How do you program communication blocks FB12 "BSEND" and FB13 "BRCV" for data exchange on the S7-300? Entry-ID: 18516182




10/2009 first edition


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