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.
 
 
 
 
 
 

95 lines
3.1 KiB

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