WinCC Flex -- Possible to get PLC status?

theNoob

Member
Join Date
Apr 2008
Location
New York
Posts
19
Is there any way to get the current status of the PLC (stop, run, etc.) or the status of a connection between the PLC and the HMI through WinCC Flexible?

I'd like to be able to log errors to the HMI or show status changes on screen if the PLC transitions to STOP mode, or becomes disconnected from the HMI (cable break).

There must be handles for that data somewhere, because the HMI is smart enough to know whether it's connected or not. I looked through the help section, but can't seem to find much info.

- theNoob
 
There are a few ways. I would look at the area-pointers tab under the connections of each PLC. Their is a "Coordination" Word which you can monitor.Nick
 
It seems that the "coordination" area pointer writes the HMI status to a location of your choice inside the PLC. Unfortunately, if the PLC has experienced a sudden loss-of-power, or has been inadvertently placed in STOP mode, I don't think it's possible to trigger an event on the HMI to log that condition with this method.

For my application, the HMI displays vital real-time data to the user at a remote location. Therefore, it's more important for the HMI user to be able to tell that the PLC is still there and functioning, rather than the other way around.

Is there any way to make that happen w/ WinCC Flex? (I'm using a TP277 if that helps...)
 
I've seen this done with a sign-of-life display on the HMI panel. just a small button that changes colors every couple of seconds based on communication with the HMI panel.

In the PLC toggle a bit every second or so and have the PLC read the status, green when high, grey when low, red if missing for some length of time.
 
My problem is that I need to tell the user of the HMI what the status of the PLC is. Toggling a bit on the PLC isn't very helpful for this, because if a cable breaks, the bit will keep toggling on the PLC and the HMI will continue to churn away in some undefined state.

What I need is to be able use the software running on the HMI (perhaps VB) to poll the PLC in some way to see if it's still there. But there don't seem to be any system functions that let you get your hands on the connection status...
 
theNoob said:
My problem is that I need to tell the user of the HMI what the status of the PLC is. Toggling a bit on the PLC isn't very helpful for this, because if a cable breaks, the bit will keep toggling on the PLC and the HMI will continue to churn away in some undefined state. panels.

The operator can tell the PLC is dead because the button you place on the HMI panel will no longer change color every second. I work with alot of Siemens programs that do it this way in the automative industry for both HMI panels and CNC panels.
 
Thanks Bratt, this is definitely what I was looking for!

This is a feature that Siemens should think about providing in WinCC. Allowing configurable events based on System Alarms (like "Connection Lost", for example) might be pretty nice too. Just in case anyone from Siemens is lurking and reading...
 
Tim2 -- I apologize, I see your logic now. I'll have to determine what the best solution is, but at least now I have options.

Thanks to all who responded!
 
Noob,

You can still use the Coordination method. Grab Value in PLC and move back to HMI in other area.

Now you know:
1. Your connected
2. PLC is running (data will not be being moved via PLC running)

Not elegant but effective.

Nick
 
Just found this

I think its just what your looking for
How is the diagnostic data of the DP diagnostics block FB125 in WinCC flexible visualized?
Instructions:
Using the diagnostics block FB125 from the S7 project "DP_DIAxx" the individual Profibus users can be diagnosed in a Profibus subnet. You can download the diagnostics block or the S7 project under the following Entry ID 387257.
http://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=29338956&caller=nl
 
That FB125 can be used to get diagnostics for DP slaves configured in a DP master.
It is very good for that purpose, have used it myself. There should be a newer version that supports Profinet as well as Profibus (new block called FB126 I think).
Unfortunately, it cannot be used to diagnose master-to-master connections. It cannot tell if a connection is lost to an HMI for example.
 
Unfortunately, it cannot be used to diagnose master-to-master connections. It cannot tell if a connection is lost to an HMI for example.
Seems to me if you did not get any status from any slaves then you would know the connection was lost. They have the status screens for WinCC Flexible in the example. This would give you the status on the screen just not in the plc.
 
Last edited:
Now that would be a very indirect way of knowing in the HMI that the connection to the PLC is lost, if it could work that way.
But it cannot. It is the PLC that does all the diagnostics, not the HMI.
In case the HMI-PLC connection is lost, then in the screen with the station diagnostics (with all the squares, one for each station number), then the HMI would simply remember the status from when the connection was OK, i.e. "all green". For numerical outputs there will appear "####" after a while, but that is also not a good way to "know" that the connection is lost.
 

Similar Topics

Hi all I have a project that uses a Siemens 315-2DP and two HMI's. The two HMI's are at separate ends of the line. One of the HMI's has a...
Replies
4
Views
2,949
I'm continuing my Siemens education. I need some help with compatibility details. My customer has a machine that was made by a company no longer...
Replies
6
Views
4,027
Hello all. I mainly work with Siemens PLC's and panels for our machines. But now I am faced with a pilot project that has to be as price friendly...
Replies
15
Views
8,041
Hi Folks. I have an older application that weighs pallets and prints labels for them. We used to capture the time/date of weighing, but we...
Replies
2
Views
1,613
Hi, I have WinCC Felxible 2008 SP5 installed on my Windows 10. I want to program Simatic panel TP177B using USB transfer cable. But i can't...
Replies
8
Views
2,110
Back
Top Bottom