show the entry list
Industrial Ethernet S7-300/400 CPs -- Configuring and programming communication -- Using communication blocks
How do you use the predefined data type UDT1 "FILE_DB_HEADER" for FTP communication in the S7-300 and S7-400?
How do you enable the ad-hoc mode when you call the TRCV instruction?
How do you use the blocks for MODBUS/TCP communication over an Industrial Ethernet CP of S7-300 and S7-400 in STEP 7 Professional (TIA Portal)?
How do you copy the CFC chart "Modbus" from the sample project for OPEN MODBUS / TCP into your user project?
What is the difference between the initialization and runtime parameters on the blocks for Modbus TCP?
Why is the status value A090 (hex) output for Modbus TCP although you have entered the correct license?
What are the differences between the licensed version and the downloadable demo version of the blocks for Modbus TCP?
Why is the value A083 (hex) output permanently at the STATUS output parameter of the block for Modbus TCP when the ENQ_ENR=true input parameter has been set?
How is data with variable message length transferred via the TCP protocol and received by an S7-300 station via the Industrial Ethernet CP?
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?
Where can you find sample programs and documentation for communication from SIMATIC S5 modules to SIMATIC S7 modules via Industrial Ethernet using the UDP protocol?
Where can you find sample programs and documentation for communication from SIMATIC S5 modules to SIMATIC S7 modules via Industrial Ethernet using the TCP protocol?
Where can you find sample programs and documentation for communication from SIMATIC S5 modules to SIMATIC S7 modules via Industrial Ethernet using the ISO transport protocol?
How do you program the FC10 "AG_CNTRL"?
Which commands (CMD) of the FC10 "AG_CNTRL" are supported by the IE CPs?
How many communication jobs may be used simultaneously in an S7-300 CPU for S7 communication via a CP343-1?
Which ports are released for Modbus/TCP communication and how many Modbus clients can communicate with a SIMATIC S7 CPU as Modbus server?
Notes on using an instance for multiple connection IDs
Internal call of FC5 (AG_SEND) with FTP client blocks (FC 40-44) for the CP343-1 IT (6GK7 343-1GX11-0XE0)
How do you program the communication blocks FB63 "TSEND", FB64 "TRECV", FB65 "TCON" and FB66 "TDISCON" in order to use the ISO-on-TCP protocol for data exchange by way of the integrated PROFINET interface of a CPU or by way of the CP443-1 Advanced?
How do you program communication blocks FC11 and FC12 for the PROFINET IO device?
Block calls for communications processors in multiple runtime layers
Changing the input parameter of the user blocks "AG_SEND" and "AG_RECV" during the runtime of a job
What should you watch out for if you transfer variables with the data type "REAL" when calling the communication blocks FC5/50 "AG_SEND/AG_LSEND" and FC6/60 "AG_RCV/AG_LRCV"?
What should you pay attention to when using the communication blocks FC53 "AG_SSEND" and FC63 "AG_SRECV"?
What points do you need to remember when calling communication blocks FC5/50 and FC6/60 in the STEP 7 user program of the CPU?
How do you program communication blocks FC11 and FC12 for the PROFINET IO controller?
How do you establish OPEN MODBUS / TCP communication from a SIMATIC S7 and where can you find further information?
How do you program the communication blocks FC50 and FC60?
Error STATUS "0x7000" on function block FC6 / FC60 (AG_SEND) with Send/Receive communication on the S7-400 controller
How do you program the communication blocks FC5 and FC6?
Sample program: S7 communication with the blocks SFB14 ("GET") and SFB15 ("PUT") with S7-400
Sample Program: S7 Communication with blocks FB14 ("GET") und FB15 ("PUT") of the CPU 317-2PN/DP
How do you program communication blocks FB8 "USEND" and FB9 "URCV" for data exchange on the S7-300?
"STATUS = 27" (0x001B) with the loadable S7 communication on the S7-300
How do you program communication blocks FB14 "GET" and FB15 "PUT" for data exchange in the S7 program of an S7-300 CPU?
How do you program communication blocks FB12 "BSEND" and FB13 "BRCV" for data exchange in the S7 program of an S7-300 CPU?
Repeating the "BSEND" job (SFB12) when the "BRCV" block (SFB13) is in the "disabled" state ("EN_R = 0")
What points do you need to remember when calling communication blocks FC5/50 and FC6/60 in the STEP 7 user program of the CPU?
Part number:

Configuration Notes:
In order to communicate via the SEND/RECEIVE interface of the S7-300 and S7-400 Industrial Ethernet CPs, the following communication blocks are called in the STEP 7 user program of the CPU.

  • FC5/6 "AG_SEND / AG_RECV" in the S7-300 CPU for data transfer of up to 8192 bytes and in the S7-400 CPU for data transfer of up to 240 bytes.
  • FC50/60 "AG_LSEND / AG_LRECV" in the S7-400 CPU for data transfer of up to 8192 bytes. These communication blocks are not available for the S7-300 CPU.

The communication blocks mentioned above are in the SIMATIC_NET_CP library.

The following points are to be noted when calling these communication blocks:

  • In the S7-300 and S7 400 CPUs, the communication block FC5/50 "AG_SEND/AG_LSEND at the input parameter ACT is started with "High" pulse. Then the block must run through with "Low" at the ACT input until the asynchronous communication job has been completed with the output parameter DONE or ERROR.
  • In the S7-400, the communication block FC50 "AG_LSEND signalizes with the output parameter ERROR=True and the STATUS=0x7000 that the communication job has been called with ACT=0. In this case the communication block FC50 "AG_LSEND" is called again without a new send job being started with a "High" pulse at the input parameter ACT.
    More information on STATUS=0x7000 is available in Entry ID: 17877734.
  • As long as a connection has not been set up or has been interrupted, this is reported on the block with output parameter ERROR=1 and STATUS=0x8183 or 0x8304. Then there must be a delay of approx 1 second before the block is called again!
  • The output parameter ERROR=True and the STATUS=0x80C3 "The resources (memory) of the CPU are temporarily occupied." indicates that the resources of the S7 CPU are temporarily occupied. These resources depend on the CPU used. In your STEP7 project you can check the maximum number and the number of reserved connection resources in the Properties window of the CPU, in the "Communication" tab.
    In the device manual of the Industrial Ethernet CPs, chapter 2 "Requirements for Use", is information on which CPUs support the relevant Industrial Ethernet CP.

Note:
In the following entries are sample programs for calling the communication blocks.

  • FC5/6 "AG_SEND/AG_RECV" in the S7-300 CPU Entry ID: 17853532)
  • FC5/60 "AG_SEND/AG_RECV" in the S7-400 CPU Entry ID: 18513371)

 Entry ID:26708188   Date:2007-11-06 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Topics
Help
Online Help
Guided Tour