SEND/RECEIVE Interface in the User Program

3.3Data Exchange S7 CPU <–> Ethernet CP

The Ethernet CP processes the send and receive jobs independent of the CPU cycle and requires one transmission time. The interface to the user program with the FCs is synchronized by an acknowledgment. Two situations must be distinguished:

SThe CPU cycle is faster than the transmission time.

SThe CPU cycle is slower than the transmission time.

Note

Please refer to the sequence charts for the FCs in Chapter 5. These charts show how to handle the SEND/RECEIVE interface in the user program for problem-free data exchange.

Remember the points below about the CPU cycle and transmission time.

FC Calls Faster than the Transmission Time

If a block is called again in the user program before data were transferred or received, the procedure is as follows on the interface of the FCs:

SAG_SEND/AG_LSEND:

No further job is accepted until the transmission of the data on the connection has been acknowledged by the Ethernet station. During this time, the user program receives the message “job active” until the Ethernet CP can accept the next job on the same connection.

SAG_RECV/AG_LRECV:

The job is acknowledged with the message “no data available yet” if there are no received data on the Ethernet CP. The user program receives this message in the CPU cycle until the Ethernet CP has received data again on the connection.

FC Calls Slower than the Transmission Time

If a block is called again before the data were completely transferred or received, the procedure is as follows on the interface of the FC blocks:

SAG_SEND/AG_LSEND:

The job is positively acknowledged. The Ethernet CP is ready to receive a new send job (at the earliest however with the next call).

SAG_RECV/AG_LRECV:

The job is acknowledged with “New Data Received” when the data have been transferred to the user program. Following this, the FC call can be repeated.

78

SIMATIC NET NCM S7 for Industrial Ethernet

C79000-G8976-C129–06

Page 78
Image 78
Siemens appendix Data Exchange S7 CPU Ethernet CP, FC Calls Faster than the Transmission Time

S7 specifications

The Siemens S7 series represents a cornerstone in the realm of programmable logic controllers (PLCs), developed by Siemens, a leading company in industrial automation. Widely used across various industries, the S7 series offers robust solutions for controlling machinery and processes, thanks to its reliable performance, flexibility, and scalable architecture.

One of the key features of Siemens S7 PLCs is the modularity of their design. Each system can be configured to meet specific application requirements due to the ability to mix various input/output modules, CPUs, and communication processors. This modular approach allows for the customization of systems to suit diverse automation tasks, providing end users with the adaptability required for modern manufacturing environments.

The S7 series encompasses several models, including the S7-1200, S7-300, and S7-1500. The S7-1200 is particularly suited for small to medium-sized applications, offering a compact design and integrated communication interfaces. In contrast, the S7-300 is designed for more extensive and complex control systems, making it ideal for large-scale industrial applications. The S7-1500 stands out with its advanced performance metrics, rich feature set, and high-speed processing capabilities, making it perfect for demanding applications that require real-time control and extensive data handling.

Siemens also emphasizes the importance of communication technologies within the S7 series. With options such as PROFINET, PROFIBUS, and EtherNet/IP, the S7 PLCs can seamlessly integrate into existing automation infrastructures, ensuring smooth data exchange between devices. The incorporation of web-based technologies and cloud connectivity further enables remote monitoring and control of systems, enhancing operational efficiency.

Another notable characteristic of Siemens S7 PLCs is the use of TIA Portal (Totally Integrated Automation Portal), an innovative software platform that simplifies the engineering process. TIA Portal allows users to program, configure, and diagnose their automation devices in a single environment, reducing setup times and improving productivity.

In conclusion, the Siemens S7 series stands out due to its modular design, range of models suitable for various applications, advanced communication technologies, and user-friendly programming software. This combination of features and characteristics makes S7 PLCs a preferred choice for industries seeking reliable and efficient automation solutions. As industrial demands continue to evolve, Siemens S7 PLCs remain at the forefront, adapting to technological advancements and setting benchmarks in the automation field.