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.i90 1.6 KiB

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