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.
 
 
 
 
 
 

154 lines
3.5 KiB

  1. module CTongEnum
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_Tong()
  6. implicit none
  7. ! if (DriveType == TopDrive_DriveType) then
  8. !#ifdef OST
  9. ! print*, 'Evaluate_Tong=TopDrive'
  10. !#endif
  11. ! endif
  12. !
  13. !
  14. !
  15. !
  16. !
  17. !
  18. !
  19. !
  20. ! if (DriveType == Kelly_DriveType) then
  21. !#ifdef OST
  22. ! print*, 'Evaluate_Tong=Kelly'
  23. !#endif
  24. ! endif
  25. end subroutine
  26. ! subroutine Subscribe_Tong()
  27. ! use CDrillingConsoleVariables
  28. !@ use ConfigurationVariables
  29. !@ use ConfigurationVariables
  30. ! implicit none
  31. ! call OnBreakoutLeverPress%Add(ButtonPress_Breakout_TongNotification)
  32. ! call OnMakeupLeverPress%Add(ButtonPress_Makeup_TongNotification)
  33. ! call OnTongNeutralPress%Add(ButtonPress_Neutral_TongNotification)
  34. ! end subroutine
  35. subroutine ButtonPress_Breakout_TongNotification()
  36. implicit none
  37. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  38. #ifdef OST
  39. print*, 'ButtonPress_Breakout_TongNotification=TopDrive'
  40. #endif
  41. !TOPDRIVE-CODE=70
  42. if (Get_TongNotification()) then
  43. call Set_Tong(TONG_BREAKOUT_BEGIN)
  44. return
  45. end if
  46. endif
  47. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  48. #ifdef OST
  49. print*, 'ButtonPress_Breakout_TongNotification=Kelly'
  50. #endif
  51. !OPERATION-CODE=74
  52. if (Get_TongNotification()) then
  53. call Set_Tong(TONG_BREAKOUT_BEGIN)
  54. endif
  55. endif
  56. end subroutine
  57. subroutine ButtonPress_Makeup_TongNotification()
  58. use NotificationModule
  59. implicit none
  60. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  61. #ifdef OST
  62. print*, 'ButtonPress_Makeup_TongNotification=TopDrive'
  63. #endif
  64. !TOPDRIVE-CODE=69
  65. if (Get_TongNotification()) then
  66. call Set_Tong(TONG_MAKEUP_BEGIN)
  67. return
  68. end if
  69. endif
  70. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  71. #ifdef OST
  72. print*, 'ButtonPress_Makeup_TongNotification=Kelly'
  73. #endif
  74. !OPERATION-CODE=73
  75. if (Get_TongNotification()) then
  76. call Set_Tong(TONG_MAKEUP_BEGIN)
  77. endif
  78. endif
  79. end subroutine
  80. subroutine ButtonPress_Neutral_TongNotification()
  81. implicit none
  82. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  83. #ifdef OST
  84. print*, 'ButtonPress_Neutral_TongNotification=TopDrive'
  85. #endif
  86. endif
  87. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  88. #ifdef OST
  89. print*, 'ButtonPress_Neutral_TongNotification=Kelly'
  90. #endif
  91. call Set_Tong(TONG_NEUTRAL)
  92. endif
  93. end subroutine
  94. end module CTongEnum