Main.st 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. PROGRAM _INIT
  2. (* Insert code here *)
  3. END_PROGRAM
  4. PROGRAM _CYCLIC
  5. gDO_doppelt_lasern;
  6. gDI_keiner_Stoerung_Laser;
  7. gDI_Laser_fertig;
  8. gDO_Start_Laser;
  9. gMerker_Shutdown;
  10. IF VK_Start = TRUE THEN
  11. gMerker_Motoren_ein := TRUE;
  12. VK_Start := FALSE;
  13. END_IF
  14. IF VK_Stop = TRUE THEN
  15. gMerker_Motoren_ein := FALSE;
  16. VK_Stop := FALSE;
  17. END_IF
  18. IF gMerker_Motoren_ein = TRUE THEN
  19. gDO_Motor_K1 := TRUE;
  20. gDO_Motor_K2 := TRUE;
  21. gDO_Motor_K3 := TRUE;
  22. gDO_Motor_K4 := TRUE;
  23. gDO_Motor_K5 := TRUE;
  24. gDO_Motor_K6 := TRUE;
  25. gDO_Motor_K7 := TRUE;
  26. gDO_Motor_K8 := TRUE;
  27. END_IF
  28. IF gMerker_Motoren_ein = FALSE THEN
  29. gDO_Motor_K1 := FALSE;
  30. gDO_Motor_K2 := FALSE;
  31. gDO_Motor_K3 := FALSE;
  32. gDO_Motor_K4 := FALSE;
  33. gDO_Motor_K5 := FALSE;
  34. gDO_Motor_K6 := FALSE;
  35. gDO_Motor_K7 := FALSE;
  36. gDO_Motor_K8 := FALSE;
  37. END_IF
  38. IF gMerker_Shutdown = TRUE THEN
  39. Shutdown_URL := "https://centurio.evva.com/services/healthmonitor/shutdown/all.php";
  40. END_IF
  41. END_PROGRAM
  42. PROGRAM _EXIT
  43. (* Insert code here *)
  44. END_PROGRAM