Programming FCs (Functions) and FBs for S7 Ethernet CPs

Setting Block Parameters Automatically1)

To ensure correct parameter settings for the block calls, The LAD/STL/FBD editor in STEP 7 provides you with the option of accepting all the relevant parameters from the hardware configuration (HW Config) and from the connection configuration.

When assigning the parameters for the block in the user program, follow the steps outlined below:

1.Select the block call and its block parameters;

2.Right-click and select the menu command “Connections...”.

3.Depending on the block type, you can now select the connection and/or module intended for the block from a list.

4.Confirm your selection; as far as possible, the available parameter values are entered in the block call.

Response to Incorrect Addresses

If the S7 CPU cannot communicate with the Ethernet CP using the specified module base address, the errors described below occur.

Cause

 

Reaction / Code

 

 

No module can be addressed or

The CPU remains in the stop with system error

identified at the specified CP address.

state; in this case, evaluate the diagnostic

 

buffer of the CPU.

 

 

The CP address points to a different

Possible error code in the STATUS parameter

module type.

of the communication block:

 

8184H

System error

 

80B0H

Module does not

 

 

recognize data

 

 

record.

 

80C0H

Data record cannot

 

 

be read.

 

80C3H

Resources

 

 

occupied (memory).

 

80D2H

Logical base address

 

 

wrong.

 

 

 

Notice

If you inadvertently address not a CP but another module type, errors occur that cannot be indicated by the error messages of the FCs themselves.

1). This function is possible only with the block library ..V5.0 SP3 or later.

146

SIMATIC NET NCM S7 for Industrial Ethernet

C79000-G8976-C129–06

Page 146
Image 146
Siemens S7 appendix Setting Block Parameters Automatically1, Response to Incorrect Addresses, Cause Reaction / Code

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.