How can you have system error messages from a SIMATIC S7-300 / 400 displayed in WinCC flexible?
In order to have system error messages from an S7 CPU displayed in WinCC flexible,
you must define a number of settings in the STEP 7 project.
You must generate the connection program for the CPU in the hardware configuration. You must create a corresponding alarm display in the operator panel configuration in WinCC flexible ES.
Below is a description of how to have system error messages from an S7-4xx CPU displayed in WinCC flexible.
|1||Create S7 and HMI stationsIn the SIMATIC Manager generate a SIMATIC S7 object and a SIMATIC HMI object.|
Open the menu dialog in "Tools > Language for display equipment".
Add all the languages which are used in WinCC flexible. In order to select or change the default language, mark the relevant language from the selection list under "Installed Languages in Project:" and click the "Set as Default" button.
Select the CPU (in the example CPU 416-2DP) and open the hardware configuration.
|4||Open the "Report System Error..." dialog|
Select "Tools > Report System Error ...".
|5||"Report System Error..." dialog|
The "Report System Error - SFM\SIMATIC 400\CPU 416-2 DP" window opens.
|6||Activate the entries|
In the "OB Configuration" and "CPU Stopped" tabs enable the options which you wish to appear in the alarm display later on; in the example OB81 to 86 and OB1, as well as all the CPU STOP options.
|7||Transfer blocks to the CPU|
In the message field which appears you are informed about the project sections generated. Transfer the blocks listed in the "Report System Error" window into the CPU.
"Assign unique alarm numbers project-wide" has been selected in the example for the alarm-number assignment.
|8||Open WinCC flexible project|
Open the WinCC flexible project and then the "Connections" window via "Project > SIMATIC HMI Station(1)(MP 370 12" TOUCH > Communication > Connections". .
Insert a new connection via "Insert > New object - Connections".
Configure alarm settings
|12||Activate Message Class|
Switch to the screen configuration via "Project > SIMATIC HMI Station(1)MP 370 12" TOUCH) > Screens > Screen_1" and insert an alarm display.
Go to the Alarm View, select "General" and then "S7 Alarm" under "Alarm classes.
|13||Check CPU messages|
In the STEP 7 Manager check whether the system-error messages have been correctly imported into WinCC flexible. To do this, mark the relevant station or CPU and then open the CPU alarm window in the "PLC > CPU messages..." menu.
|14||Activate the check boxes|
Switch to the "Alarm" tab and enable the "W" (diagnostic events) checkbox and the "A" (process and system errors) checkbox as well in the black menubar.
In this example an ET200B module has been configured in the PROFIBUS subnet module, although it has not been connected to the PROFIBUS subnet.
|15||Start WinCC flexible|
If you are using an operator panel, transfer the project to the panel. Alternatively you can also use WinCC flexible Runtime on the PC.
Now all the available CPU system messages are displayed on the operator panel and in WinCC flexible Runtime.
- The class and number of system error messages depend on the CPU used and the settings selected.
- The messages can also be displayed in the "Alarm Window". More information is available in Entry ID: 21909970.
The downloadable example includes the project described above. The connection between the CPU and the PC (CP5611) is via the MPI interface.
A multipanel MP 370 12" Touch was selected as the HMI device.
Sfm_e.zip ( 3717 KB )
Runnability and test environment:
The following table lists the components that have been used to create this entry and verify the functions described.
|Component||Product and version|
|PC operating system||Microsoft Windows XP SP2|
|Engineering Tools||SIMATIC STEP 7 V5.3 SP3|
|HMI Software||WinCC flexible 2005 SP1|
|HMI devices||MP370 12" Touch|