Applies To:
  • CitectSCADA 4.xx 5.xx, 6.xx, 7.xx

Summary:
I have client who desires to have Citect shutdown, when Windows/NT is signalled by the Uninterruptible Power Supply that it is about to shutdown. Can this be done? 

Solution:
We use a file instead of a flag or tag to tell Citect its time to close, before the UPS has run out.
  1. If you look under the control panel in NT and select the UPS icon, you can specify any file to run before shutdown.
  2. Make this a simple .CMD file that creates a file called Shutdown, File name example: Shutdown_Citect.CMD. Put this file in system32 directory. The file Shutdown_Citect.CMD contains the following:

Copy dummy.dum shutdown.dum

  1. Create a file named dummy.dum put it under the root directory.
  2. Create an event, under trigger call a function example Look(), which contains :

INT
FUNCTION
Look()

    If FileExist("C:\shutdown.dum") then
        FileDelete("C:\shutdown.dum");
        Return 1;
    else
        Return 0;
    end
END

  1. Under Action in the event write:

Shutdown();

 

Keywords:
 

Attachments