PROGRAM _INIT (* Insert code here *) Shutdown_picture := 'Media/Shutdown.jpg'; END_PROGRAM PROGRAM _CYCLIC gDO_doppelt_lasern; gDI_keiner_Stoerung_Laser; gDI_Laser_fertig; gDO_Start_Laser; gMerker_Shutdown; IF VK_Start = TRUE THEN gMerker_Motoren_ein := TRUE; VK_Start := FALSE; END_IF IF VK_Stop = TRUE THEN gMerker_Motoren_ein := FALSE; VK_Stop := FALSE; END_IF IF gMerker_Motoren_ein = TRUE THEN gDO_Motor_K1 := TRUE; gDO_Motor_K2 := TRUE; gDO_Motor_K3 := TRUE; gDO_Motor_K4 := TRUE; gDO_Motor_K5 := TRUE; gDO_Motor_K6 := TRUE; gDO_Motor_K7 := TRUE; gDO_Motor_K8 := TRUE; END_IF IF gMerker_Motoren_ein = FALSE THEN gDO_Motor_K1 := FALSE; gDO_Motor_K2 := FALSE; gDO_Motor_K3 := FALSE; gDO_Motor_K4 := FALSE; gDO_Motor_K5 := FALSE; gDO_Motor_K6 := FALSE; gDO_Motor_K7 := FALSE; gDO_Motor_K8 := FALSE; END_IF IF gMerker_Shutdown = TRUE THEN Shutdown_URL := 'https://centurio.evva.com/services/healthmonitor/shutdown/all.php'; Shutdown_picture := 'Media/Shutdown_done.jpg'; ELSIF gMerker_Shutdown = FALSE THEN //Only for having the possibility in the Online-mode of Automation Studio; no Widget on the panel-PC Shutdown_URL := ''; Shutdown_picture := 'Media/Shutdown.jpg'; END_IF END_PROGRAM PROGRAM _EXIT (* Insert code here *) END_PROGRAM