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.
 
 
 
 
 
 

76 lines
1.9 KiB

  1. module CCloseKellyCockLedNotification
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_CloseKellyCockLed()
  6. implicit none
  7. ! if (DriveType == TopDrive_DriveType) then
  8. !#ifdef OST
  9. ! if(print_log) 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. ! if(print_log) print*, 'Evaluate_CloseKellyCockLed=Kelly'
  25. !#endif
  26. ! endif
  27. end subroutine
  28. ! subroutine Subscribe_CloseKellyCockLed()
  29. ! use CDrillingConsoleVariables
  30. ! use ConfigurationVariables
  31. ! use ConfigurationVariables
  32. ! implicit none
  33. ! call OnCloseKellyCockPress%Add(ButtonPress_CloseKellyCock)
  34. ! end subroutine
  35. subroutine ButtonPress_CloseKellyCock()
  36. implicit none
  37. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  38. #ifdef OST
  39. if(print_log) print*, 'Evaluate_CloseKellyCockLed=TopDrive'
  40. #endif
  41. endif
  42. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  43. #ifdef OST
  44. if(print_log) print*, 'Evaluate_CloseKellyCockLed=Kelly'
  45. #endif
  46. !OPERATION-CODE=66
  47. if (Get_OperationCondition() == OPERATION_DRILL .and.&
  48. Get_CloseKellyCockLed() == .false. .and.&
  49. Get_OpenKellyCockLed()) then
  50. call Set_OpenKellyCockLed(.false.)
  51. call Set_CloseKellyCockLed(.true.)
  52. return
  53. end if
  54. endif
  55. end subroutine
  56. end module CCloseKellyCockLedNotification