If you have 2008 + SP1, then go to Options .. Settings .. Workbench .. Project View Settings, and select Display all items.
Then find the Alarm Management .. System Events in the project tree.
The system event 140000 is triggered upon connection to the CPU, I use it to run a startup script.