Beruflich Dokumente
Kultur Dokumente
panel?
s flexible WinCC
Question
This entry originates from the Service & Support Portal of Siemens AG, Sector Industry, Industry Automation and Drive Technologies. The conditions of use specified there apply (www.siemens.com/nutzungsbedingungen). Go to the following link to download this document. http://support.automation.siemens.com/WW/view/de/35538370
Question
How can you visualize the current status of the CPU on the operator panel?
Answer
Follow the instructions and notes listed in this document for a detailed answer to the above question.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Contents
Contents
Cover sheet ......................................................................................................... 1 1 1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 2 2.1 2.2 2.3 2.4 Procedure for up to WinCC flexible 2008............................................. 4 Introduction........................................................................................... 4 Operator panels supported .................................................................. 5 Settings / configuration in STEP 7 ....................................................... 6 Configuration in WinCC flexible ........................................................... 6 Define area pointer............................................................................... 7 Create tags and status displays ........................................................... 7 Configure message window ................................................................. 9 Configure scheduler and create status display .................................... 9 Procedure as from WinCC flexible 2008 SP1 .................................... 12 Introduction......................................................................................... 12 Operator panels supported ................................................................ 12 Display "System Messages" editor .................................................... 12 Configure the CPU status .................................................................. 12
Visualize the current status of the CPU V1.0, Entry ID: 35538370
1
1.1
CPU in "RUN"
Figure 1-1
clock memory
Using the clock memory, a check is made as to whether the CPU is in "RUN" status. As long as this clock memory can be displayed on the panel, you can reliably confirm the "RUN" status. CPU in "STOP"
Figure 1-2
clock memory
The "Coordination" area pointer signals that the operator panel is ready to communicate in the controller program.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Figure 1-3
The life bit is inverted by the operator panel at intervals of approx. one second. By querying this bit in the controller program you can check whether there is still a connection to the operator panel. Thus you can determine whether the CPU is only in "STOP" mode or is not available. No connection to the CPU (power failure)
Figure 1-4
clock memory
System messages provide information on the operating modes of the operator panel and controllers. System messages 140000 ("Connection established") and 140001 ("Connection disconnected") indicate whether or not the operator panel still has a connection to the CPU.
1.2
Note
The operator panels OP 73micro, TP 170micro, TP 177micro and TP 170A cannot use the "Coordination" area pointer.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
1.3
With the clock memory you can determine on the operator panel whether the CPU status "RUN" is active. The clock memory only reaches the operator panel when the CPU is in "RUN" mode. There is no need for any other settings or programming in STEP 7. In the symbol table, you set the marker word for the "Coordination" area pointer.
Figure 1-5
1.4
Visualize the current status of the CPU V1.0, Entry ID: 35538370
1.4.1
1.4.2
Figure 1-7
The following events are configured for the "Coordination" and "Clock Memory" tags.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Coordination Under Events > Change value, you set the value of the internal tag "Online_error" to 0 and raise the value of the internal tag "Run_error" to 1.
Figure 1-8
Clock memory Under Events > Change value, you set the value of the internal tag "Online_error" to 0 and raise the value of the internal tag "Run_error" to 0.
Figure 1-9
The configuration sets the internal tag "Run_error" approximately every second. However, the CPU's clock memory resets this immediately. This means that the CPU is in "STOP" mode when the "Run_error" tag has a value greater than 1. This behavior is displayed in the "Visibility" animation as shown in the following figure.
Figure 1-10
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Create a text field without animation on layer 1 for the "RUN" status. The text field remains in the foreground until one of the others becomes active.
Figure 1-11
Note
Configure the displays differently. It is not mandatory to use a text field for display. You must simply ensure that the same animations are configured on the display object.
1.4.3
1.4.4
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Figure 1-13
DialogClose Configure the "Increase Value" function in the taskbar and link it to the internal tag "Online_error" (Online_Fehler). The value should then be increased by 1.
Figure 1-14
DialogOpen Configure the "Increase Value" function in the taskbar and link it to the internal tag "Online_error" (Online_Fehler). The value should then be increased by 1.
Figure 1-15
DialogOpen
Configure the "Set Value" function in the taskbar and link it to the internal tag "Online_error" (Online_Fehler). The value should then be set to 2.
Figure 1-16
With these links you can tell whether the CPU is offline.
10
Visualize the current status of the CPU V1.0, Entry ID: 35538370
The message window opens and closes as soon as the message "Connection disconnected" appears and the value increases by 1 each time. The "Cycl_1min" task then sets the value to 2. NOTE The events When dialog is opened and When dialog is closed can only be used as from WinCC flexible 2008. If you are using an earlier version of WinCC flexible, you can leave out this step. The STOP status of the CPU is displayed later in Runtime. However, this takes up to one minute and which is significantly longer than with WinCC flexible 2008.
Configure another I/O field with the status "CPU offline" and animate the visibility as shown in the figure below.
Figure 1-17
Now place all three I/O fields on top of each other. You can configure this in your template to have the CPU's status display shown permanently.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
11
2
2.1
2.2
2.3
"Tools > Settings... > Workbench > Settings for project window > Display all entries".
2.4
12
Visualize the current status of the CPU V1.0, Entry ID: 35538370
Table 2-1 No. 1. Procedure Establish the connection to your CPU in WinCC flexible.
Change the connection settings accordingly for your configured network. Pay attention to correct assignment of addresses, slot and subrack. 2.
Copyright Siemens AG 2009 All rights reserved 35538370_CPU_Status_anzeigen_e.doc
3.
Open the system messages dialog and find the message numbers -140000 (Connection established: %1, Station %2, Rack %3, Slot %4) and -140001 (Connection disconnected: %1, Station %2, Rack %3, Slot %4). For alarm number 140000 you use the "Set Value" function to set the value of the internal tag created to 1 and to 0 for alarm number 140001.
Visualize the current status of the CPU V1.0, Entry ID: 35538370
13
No. 4.
14
Visualize the current status of the CPU V1.0, Entry ID: 35538370