|
|
|
|
Home
Systems Engineering Process Engineering Subsea Control Systems Software Development
Products and Applications
Tech Info Contacts & Key Personnel |
Software Development
PHD Watchdog
Overview There are a number of ways of detecting that PHD is no longer operating correctly, and a number of ways of bringing this to the attention of maintenance personnel. As PHD is often an integral part of the plant's control system, it seemed sensible to raise an alarm on the DCS. One advantage of doing this is that the alarm automatically goes into the alarm log. Also, there are usually operations personnel present 24 hours a day, so once the fault alarm has been raised there is a good chance that it can be rectified before too much data is lost. The operation of the PHD Watchdog service is quite simple: it reads a value of a tag on the control system (the source tag), and echoes (writes) this value back to the control system into another tag (the destination tag). For the source tag, it is recommended that the value of the tag is known to be constantly changing. For example, this could be the current time (e.g. seconds since midnight), a counter, or a mathematical function such as a sine wave. It is then a relatively straightforward exercise to configure a tag on the control system which raises an alarm if the value written back to the destination tag by the PHD Watchdog does not change for a certain time. For example, in a HPM this can be done using a logic point having a comparator (EQ) block and an on-delay, with the last value being written back to one of the logic point's numerics. This alarming function can also be performed in the Application Module. A fully functioning AM application can be downloaded below. Application Setup The application uses the Visual PHD DLL. This DLL is not included in the installer for the PHD Watchdog service, as it is usually installed during installation of the PHD Desktop. The PHD Watchdog runs as a Windows service, and therefore needs to be installed on a machine running Windows 2000/2003 server or Windows 2000/XP desktop operating systems. It is configured using an initialisation file, a sample of which is shown below: [PHD Watchdog] LicenseKey=Demo [PHD] PhdHostName=PHDSHADOW PhdUserName=TOTALPLANT PhdPassword=TOTALPLANT Simulate=No Visible=No ConnectionTimeout=5000 ScanIntervalSec=20 [Watchdog Tags] ReadFrom=COUNTER.PV WriteTo=WATCHDOG.PV [PHD Watchdog] LicenseKey [PHD] PhdHostName PhdUserName, PhdPassword Simulate Visible ConnectionTimeout ScanIntervalSec [Watchdog Tags] ReadFrom WriteTo The application is a general purpose watchdog, and can be used for monitoring PHD applications such as the PHD Watchdog, or OPC client applications (hence the name OPCWDOG). It consists of the following files:
The following diagram illustrates how the AM Watchdog application works. As an example, the PHD Watchdog Service updates AM_WATCHDOG.PV every 20 seconds (this tag would be specified using the WriteTo parameter as described above). The AM Watchdog Custom point REMOTE_WATCHDOG would then raise an alarm via AM Flag REMOTE_APP in the event that PHD stopped updating the Numeric.
|