Instructions: 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.
Create S7 and HMI stationsIn the SIMATIC Manager generate a SIMATIC S7 object and a SIMATIC HMI object.
Add languages 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.
If you wish to display the CPU system messages in all the selected languages in WinCC flexible, each of the languages must be set once as the default language and then re-generate the system messages or repeat steps 3 to 7.
N.B. The languages which are generated for the CPU system messages must also be installed in STEP 7. You can find the installed languages in the STEP 7 Manager under "Options > Customize > Language".
Select CPU Select the CPU (in the example CPU 416-2DP) and open the hardware configuration.
Open the "Report System Error..." dialog Select "Tools > Report System Error ...".
"Report System Error..." dialog The "Report System Error - SFM\SIMATIC 400\CPU 416-2 DP" window opens.
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.
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.
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". .
Add connection Insert a new connection via "Insert > New object - Connections".
Select station In the new connection open the list window in the "Stations" column and select the relevant station - in the example project this is "\SFM\Simatic 400".
Configure alarm settings In the project tree open the alarm settings via Messages > Settings > Alarm settings.
In the "Alarm procedures" menu you still have to activate the corresponding alarm procedure ALARM_S / SIMATIC SFM.
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.
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.
Make sure that the controller is correctly connected to the programming device; otherwise the CPU messages will not be able to be displayed.
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.
The CPU system-error messages always appear in the language which is set as the default.
If you make changes to the hardware configuration, you have to regenerate the system messages and transfer the corresponding diagnostic blocks (FB49 and DB49 in the example) once again.
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.
Sample project: 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.