PROGRAM _INIT (* Insert code here *) END_PROGRAM PROGRAM _CYCLIC gDO_doppelt_lasern; gDI_keiner_Stoerung_Laser; gDI_Laser_fertig; gDO_Start_Laser; 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 END_PROGRAM PROGRAM _EXIT (* Insert code here *) END_PROGRAM