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.

CTongEnum.f90 3.0 KiB

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