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.
 
 
 
 
 
 

189 lines
3.4 KiB

  1. module CTongEnum
  2. use COperationScenariosVariables
  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. ! implicit none
  29. ! call OnBreakoutLeverPress%Add(ButtonPress_Breakout_TongNotification)
  30. ! call OnMakeupLeverPress%Add(ButtonPress_Makeup_TongNotification)
  31. ! call OnTongNeutralPress%Add(ButtonPress_Neutral_TongNotification)
  32. ! end subroutine
  33. subroutine ButtonPress_Breakout_TongNotification()
  34. implicit none
  35. if (DriveType == TopDrive_DriveType) then
  36. #ifdef OST
  37. print*, 'ButtonPress_Breakout_TongNotification=TopDrive'
  38. #endif
  39. !TOPDRIVE-CODE=70
  40. if (Get_TongNotification()) then
  41. call Set_Tong(TONG_BREAKOUT_BEGIN)
  42. return
  43. end if
  44. endif
  45. if (DriveType == Kelly_DriveType) then
  46. #ifdef OST
  47. print*, 'ButtonPress_Breakout_TongNotification=Kelly'
  48. #endif
  49. !OPERATION-CODE=74
  50. if (Get_TongNotification()) then
  51. call Set_Tong(TONG_BREAKOUT_BEGIN)
  52. endif
  53. endif
  54. end subroutine
  55. subroutine ButtonPress_Makeup_TongNotification()
  56. use CTongNotificationVariables
  57. implicit none
  58. if (DriveType == TopDrive_DriveType) then
  59. #ifdef OST
  60. print*, 'ButtonPress_Makeup_TongNotification=TopDrive'
  61. #endif
  62. !TOPDRIVE-CODE=69
  63. if (Get_TongNotification()) then
  64. call Set_Tong(TONG_MAKEUP_BEGIN)
  65. return
  66. end if
  67. endif
  68. if (DriveType == Kelly_DriveType) then
  69. #ifdef OST
  70. print*, 'ButtonPress_Makeup_TongNotification=Kelly'
  71. #endif
  72. !OPERATION-CODE=73
  73. if (Get_TongNotification()) then
  74. call Set_Tong(TONG_MAKEUP_BEGIN)
  75. endif
  76. endif
  77. end subroutine
  78. subroutine ButtonPress_Neutral_TongNotification()
  79. implicit none
  80. if (DriveType == TopDrive_DriveType) then
  81. #ifdef OST
  82. print*, 'ButtonPress_Neutral_TongNotification=TopDrive'
  83. #endif
  84. endif
  85. if (DriveType == Kelly_DriveType) then
  86. #ifdef OST
  87. print*, 'ButtonPress_Neutral_TongNotification=Kelly'
  88. #endif
  89. call Set_Tong(TONG_NEUTRAL)
  90. endif
  91. end subroutine
  92. end module CTongEnum