NowDownloadDone: TIME; tNowCode [...] SwitchToActive: BOOL; bSwitchToSimulation [...] ToActive(); END_IF IF bSwitchToSimulation