Entry type: FAQ, Entry ID: 49450152, Entry date: 07/06/2011
(0)
Rate

How do you program the function blocks FB14 "GET" and FB15 "PUT" in the S7 program of the S7-300 in order to transfer more than 160 bytes of data?

  • Entry
  • Associated product(s)

Description
You must call the function blocks below in the S7 program in order to transfer data with the S7-300 via an S7 connection configured in NetPro:

  • FB14 "GET"
  • FB15 "PUT"

Function block FB14 "GET" is for reading data out of the partner CPU and function block FB15 "PUT" is for writing data to the partner CPU.
The S7 connection does not have to be configured on both sides, because the S7 communication via FB14 "GET" and FB15 "PUT" is based on the server-client principle.

Description of the S7 program
This sample program shows how to call the function blocks FB14 "GET" and FB15 "PUT" sequentially in the S7 program of the S7-300 in order to transfer more than 160 bytes of data via an S7 connection.

FB14 "GET" is called three times in a row with the same connection number so that 400 bytes of data can be received.

FB15 "PUT" is called three times in a row with the same connection number so that 240 bytes of data can be sent.

The file below gives a detailed description of the S7 program.

PUT_GET_Sequencer_en.pdf ( 1121 KB )

Download the S7 program
The STEP 7 project contains an S7 program for sequential calling of the function blocks FB14 "GET" and FB15 "PUT" so that the S7-300 can receive 400 bytes and send 240 bytes of data via an S7 connection.

Sequencer.zip ( 41 KB )

Notes

  • If you are using an Industrial Ethernet CP or PROFIBUS CP for data communication via S7 connections in the S7-300 station, then utilize the function blocks FB14 "GET" and FB15 "PUT" from the "SIMATIC_NET_CP" library under "CP 300 > Blocks".
  • If you are using the integrated PROFINET interface of the CPU for data communication via S7 connections, then utilize function blocks FB14 "GET" and FB15 "PUT" from "Standard Library -> Communication Blocks -> Blocks" with the family "CPU_300".
  • Information about configuring an S7 connection for data communication with S7-300 and S7-400 Industrial Ethernet CPs are available in Entry ID: 17628518.