show the entry list
Industrial Ethernet S7-300/400 CPs -- Product information -- System description (protocols)
What are the differences between OPEN MODBUS / TCP Redundant V1 and OPEN MODBUS / TCP Redundant V2?
What should you watch out for when you enable the "SNMP" function in the configuration of the security module?
Which security modules support dynamic DNS and can use it to communicate with each other?
What should you watch out for when enabling and using the security functions of CP343-1 Advanced and CP443-1 Advanced?
What should you watch out for when upgrading from previous modules to the successor module CP443-1 or CP443-1 Advanced?
How do you verify the authenticity of the Siemens modules CP343-1 and CP443-1?
What should you watch out for when operating a port of CP343-1, 6GK7343-1CX10-0XE0 and 6GK7343-1EX30-0XE0 with firmware V2.1 or higher, with 10 Mbit/s half duplex?
Which IO controllers and IO devices support the following functions: IRT, prioritized startup, MRP, PROFIenergy, Shared device, I device and clock-synchronized mode?
Where do you procure the firmware extension for the CP 343-1 ERPC for database connection?
Which SIMATIC S7-300/S7-400 modules support the NTP time-of-day message and how do you activate this kind of time synchronization?
Which modules can you use when implementing software redundancy?
Which types of connection/protocols do the S7-300/400 CPUs and the CPs support by default?
Which PROFINET nodes support automatic commissioning and the replace device without interchangeable medium function?
Which PROFINET nodes support the extended PN diagnostics and what do you have to configure?
Using C-PLUG with network components and SIMATIC CPs
What properties have the communication services and protocols that can be used in the Industrial Ethernet network?
Behavior of the communication processors during data transfer via TCP connections without RFC 1006
What should you watch out for with the ICMP Redirect (Internet control message protocol) function regarding the IP address of the router used for Industrial Ethernet CPs?
What should you pay attention to with the autonegotiation function for negotiating the LAN mode in Industrial Ethernet CPs?
What is the connection between subnet masks and IP addresses with regard to subnetting and supernetting (Classless Inter Domain Routing CIDR)?
What are the requirements for using the S7 routing function and which modules can you implement?
In the case of open TCP/IP communication via Industrial Ethernet using T blocks with IE CPs and CPUs, why are different amounts of messages sent when the maximum length of 1452 bytes of user data is transferred?
What properties, advantages and special features does the ISO protocol offer?
What properties, advantages and special features does the UDP protocol offer?
What properties, advantages and special features does the ISO-on-TCP protocol offer?
What properties, advantages and special features does the S7 protocol offer?
What properties, advantages and special features does the TCP protocol offer?
What are the requirements for disabling the PROFINET CBA interface for CP443-1EX40?
"Time Wait" with TCP connection setup
What are the different data block lengths for the various protocols of Send/Receive communication?
What is RFC1006 and what do I need this service for?
Meaning and function of the "Keep Alive" in TCP connections
Behavior of the communication processors during data transfer via TCP connections without RFC 1006
Part number:

QUESTION:
What should you watch out for when using TCP without RFC 1006?

ANSWER:
The CP 343-1 TCP (6GK7 343-1EX00-0XE0 V5.0) and the CP 443-1 (6GK7 443-1EX02-0XE0) in the latest delivery package offer access to TCP connections without RFC 1006.
The behavior of this interface is different to an ISO-on-TCP connection, for example. The difference is in the basic behavior of TCP: TCP works data-flow-oriented and not message-oriented. TCP has no mechanisms that give information about the end of one message and the beginning of a new message. This means that the recipient must know the length of the message and correspondingly parameterize the ANY pointer of the Receive block.
In the case of an ISO-on-TCP connection the information about the message limits is given by the protocol addition RFC 1006 "ISO Transport Service on top of TCP". However, this means that communication is only possible to systems that all support RFC 1006.
Thus in the case of pure TCP there are only two connection options:

  1. You work with a fixed message length. This means that both the sender and the recipient work with a predefined data length. In this way the message limits are always unambiguously defined.
  2. You work with variable message lengths. This demands much greater outlay on the recipient side and on the sender side, because the data length must be entered in the first bytes. Upon data reception, the recipient side fetches only the bytes that contain the length of the data. These must be evaluated in the same cycle and then exactly the same number of bytes fetched with another Receive call from the CP. Only then is the message transferred completely into the CPU.
    Example:
    A PC sends between 50 and 400 bytes to a SIMATIC S7 with CP 443-1. Upon sending the PC program stores the total length of the data in the first 4 bytes. Then the data including this length information is sent to the CP. Via a Receive call only the first 4 bytes of the data received by the CP are fetched in a data block of the CPU. If the length specification is, for example, 212, then a second call with 208 bytes is triggered, which fetches the remaining bytes of the message. Here, you must make sure that the storage location of the data is always large enough and that the data of the first call is not overwritten by that of the second call.
    This is just an example. Any amount of data can be fetched with the first call, but not more than the maximum message length may be fetched. Otherwise the Receive waits until the specified data volume is in the receive buffer of the CP. This could then be several messages.

With the S7-300 you should also note that only the blocks FC 50 / FC 60 may be used for a TCP connection, even if the length is less than 240 bytes.

 

 Entry ID:1235645   Date:1999-10-25 
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 
Help
Online Help
Guided Tour