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.
 
 
 
 
 
 

64 lines
1.7 KiB

  1. module COpenKellyCockLedNotification
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_OpenKellyCockLed()
  6. implicit none
  7. ! if (DriveType == TopDrive_DriveType) then
  8. !#ifdef OST
  9. ! print*, 'Evaluate_OpenKellyCockLed=TopDrive'
  10. !#endif
  11. ! endif
  12. ! if (DriveType == Kelly_DriveType) then
  13. !#ifdef OST
  14. ! print*, 'Evaluate_OpenKellyCockLed=Kelly'
  15. !#endif
  16. ! endif
  17. end subroutine
  18. ! subroutine Subscribe_OpenKellyCockLed()
  19. ! use CDrillingConsoleVariables
  20. !@ use ConfigurationVariables
  21. !@ use ConfigurationVariables
  22. ! implicit none
  23. ! call OnOpenKellyCockPress%Add(ButtonPress_OpenKellyCock)
  24. ! end subroutine
  25. subroutine ButtonPress_OpenKellyCock()
  26. implicit none
  27. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  28. #ifdef OST
  29. print*, 'ButtonPress_OpenKellyCock=TopDrive'
  30. #endif
  31. endif
  32. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  33. #ifdef OST
  34. print*, 'ButtonPress_OpenKellyCock=Kelly'
  35. #endif
  36. !OPERATION-CODE=65
  37. if (Get_OperationCondition() == OPERATION_DRILL .and.&
  38. Get_OpenKellyCockLed() == .false. .and.&
  39. Get_CloseKellyCockLed()) then
  40. call Set_OpenKellyCockLed(.true.)
  41. call Set_CloseKellyCockLed(.false.)
  42. return
  43. end if
  44. endif
  45. end subroutine
  46. end module COpenKellyCockLedNotification