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.
 
 
 
 
 
 

93 lines
2.9 KiB

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