Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CCloseKellyCockLedNotification.f90 1.7 KiB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. module CCloseKellyCockLedNotification
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_CloseKellyCockLed()
  6. implicit none
  7. ! if (DriveType == TopDrive_DriveType) then
  8. !#ifdef OST
  9. ! print*, 'Evaluate_CloseKellyCockLed=TopDrive'
  10. !#endif
  11. ! endif
  12. !
  13. !
  14. !
  15. !
  16. !
  17. !
  18. !
  19. !
  20. !
  21. !
  22. ! if (DriveType == Kelly_DriveType) then
  23. !#ifdef OST
  24. ! print*, 'Evaluate_CloseKellyCockLed=Kelly'
  25. !#endif
  26. ! endif
  27. end subroutine
  28. ! subroutine Subscribe_CloseKellyCockLed()
  29. ! use CDrillingConsoleVariables
  30. ! implicit none
  31. ! call OnCloseKellyCockPress%Add(ButtonPress_CloseKellyCock)
  32. ! end subroutine
  33. subroutine ButtonPress_CloseKellyCock()
  34. implicit none
  35. if (DriveType == TopDrive_DriveType) then
  36. #ifdef OST
  37. print*, 'Evaluate_CloseKellyCockLed=TopDrive'
  38. #endif
  39. endif
  40. if (DriveType == Kelly_DriveType) then
  41. #ifdef OST
  42. print*, 'Evaluate_CloseKellyCockLed=Kelly'
  43. #endif
  44. !OPERATION-CODE=66
  45. if (Get_OperationCondition() == OPERATION_DRILL .and.&
  46. Get_CloseKellyCockLed() == .false. .and.&
  47. Get_OpenKellyCockLed()) then
  48. call Set_OpenKellyCockLed(.false.)
  49. call Set_CloseKellyCockLed(.true.)
  50. return
  51. end if
  52. endif
  53. end subroutine
  54. end module CCloseKellyCockLedNotification