Applies To:
  • CitectSCADA 1.00, 1.01, 1.10, 1.11, 1.20, 2.00, 2.01

Summary:
Question: How do I run a piece of Cicode at shutdown? Is there an equivilent to the [Cicode] Startup function for shutdown? 

Solution:
There is no equivalent Cicode shutdown command, however you can run Cicode on shutdown by calling your Cicode first - before calling the shutdown function.

There is no Cicode shutdown command because Citect does not want to wait for your shutdown command to complete - before it can shutdown the system. To implement your own shutdown Cicode write a function similar to the example below, and call your shutdown command to shut Cicode down:

FUNCTION
MyShutdown()
   do my shutdown command stuff;
   ....
   ! once my shutdown stuff complete then shutdown Citect
   Shutdown();
END 
 


Keywords:
 

Attachments