Recommendations For Use With A High Communications Load - Siemens S7-300 Configuration Manual

Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

Special Features
● Only use the following program block types for data transfer:
● Frame length
1. Include information in the frame before the actual user data indicating the length of the
2. First evaluate only the length information on the receiving station.
3. Fetch the corresponding amount of user data in a further receive job. To do this specify
4.4.2

Recommendations for use with a high communications load

Reason
To avoid an overload situation on the CPU you are using, note the following information
about the Ethernet CPs.
Check your application for the following recommendations, in particular if you replace a CP
with a new CP and encounter overload problems.
Known problems
● Very often, the program blocks for sending (AG_SEND / AG_LSEND / AG_SSEND) and
● HMI systems access data of the CPU too often using S7 functions. This slows down
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
– AG_SEND (FC 5), AG_LSEND (FC 50) oder AG_SSEND (FC 53)
– AG_RECV (FC 6), AG_LRECV (FC 60) oder AG_SRECV (FC 63)
On TCP connections, there is no information in the protocol about the end of a message
or the start of a new message. This means that the receiving station needs to know how
many bytes belong to a message. The station transfers an ANY pointer with exactly this
length when AG_RECV / AG_LRECV is called.
Note: This does not apply to the AG_SRECV program block; AG-SRECV is always called
with the maximum length.
Example of an ANY pointer for receiving 100 bytes of data:
– P#DB100.DBX 0.0 Byte 100.
To receive data with a variable length, follow the steps below:
user data.
an ANY pointer with a suitable length for fetching the actual user data.
receiving (AG_RECV / AG_LRECV) are called cyclically in OB1. This leads to constant
communication between the CPU and CP. As a result, other types of communication
such as PG functions cannot be executed or only very slowly.
communication in general and resource bottlenecks can occur if SEND/RECEIVE
program blocks are called cyclically by OB1.
SEND/RECEIVE interface in the user program
4.4 Additional information
89

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-400

Table of Contents