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.

CDrillingConsoleVariables.f90 4.3 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. module CDrillingConsoleVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. public
  5. TYPE, PUBLIC :: DrillingConsoleType
  6. ! Input vars
  7. integer :: AssignmentSwitch
  8. logical :: EmergencySwitch
  9. real(8) :: RTTorqueLimitKnob
  10. integer :: MP1CPSwitchI = 0 !for not turning on pump1 on simulation start
  11. integer :: MP1CPSwitchT !for not turning on pump1 on simulation start
  12. integer :: MP1CPSwitch
  13. logical :: MP1ThrottleUpdate = .false.
  14. real(8) :: MP1Throttle = -1.0
  15. integer :: MP2SwitchI = 0 !for not turning on pump2 on simulation start
  16. logical :: MP2SwitchT !for not turning on pump2 on simulation start
  17. logical :: MP2Switch
  18. logical :: MP2ThrottleUpdate = .false.
  19. real(8) :: MP2Throttle = -1.0
  20. integer :: DWSwitch
  21. real(8) :: DWThrottle
  22. integer :: RTSwitch
  23. real(8) :: RTThrottle
  24. real(8) :: DWBreak
  25. real(8) :: PreviousDWBreak
  26. logical :: ForceBreak = .false.
  27. real(8) :: DWAcceleretor
  28. real(8) :: DWTransmisionLever
  29. real(8) :: DWPowerLever
  30. real(8) :: TongLever
  31. ! type(VoidEventHandlerCollection) :: OnBreakoutLeverPress
  32. ! type(VoidEventHandlerCollection) :: OnMakeupLeverPress
  33. ! type(VoidEventHandlerCollection) :: OnTongNeutralPress
  34. real(8) :: RTTransmissionLever
  35. real(8) :: DWClutchLever
  36. real(8) :: EddyBreakLever
  37. logical :: AutoDW
  38. logical :: GEN1
  39. logical :: GEN2
  40. logical :: GEN3
  41. logical :: GEN4
  42. logical :: Permission_OpenKellyCock = .false.
  43. logical :: OpenKellyCock
  44. ! type(VoidEventHandlerCollection) :: OnOpenKellyCockPress
  45. logical :: Permission_CloseKellyCock = .false.
  46. logical :: CloseKellyCock
  47. ! type(VoidEventHandlerCollection) :: OnCloseKellyCockPress
  48. logical :: Permission_OpenSafetyValve = .false.
  49. logical :: OpenSafetyValve
  50. ! typeVoidEventHandlerCollection) :: OnOpenSafetyValvePress
  51. logical :: Permission_CloseSafetyValve = .false.
  52. logical :: CloseSafetyValve
  53. ! typeVoidEventHandlerCollection) :: OnCloseSafetyValvePress
  54. logical :: Permission_IRSafetyValve = .false.
  55. logical :: IRSafetyValve
  56. ! typeVoidEventHandlerCollection) :: OnIRSafetyValvePress
  57. logical :: Permission_IRIBop = .false.
  58. logical :: IRIBop
  59. ! typeVoidEventHandlerCollection) :: OnIRIBopPress
  60. logical :: LatchPipe
  61. ! typeVoidEventHandlerCollection) :: OnLatchPipePress
  62. logical :: UnlatchPipe
  63. ! typeVoidEventHandlerCollection) :: OnUnlatchPipePress
  64. logical :: Swing
  65. ! typeVoidEventHandlerCollection) :: OnSwingPress
  66. logical :: FillMouseHole
  67. ! typeVoidEventHandlerCollection) :: OnFillMouseHolePress
  68. logical :: Slips
  69. ! typeVoidEventHandlerCollection) :: OnSlipsPress
  70. !logical :: TopDriveIBop
  71. !
  72. !logical :: TopDriveDrillTorque
  73. !integer :: TopDriveRevOffFwd
  74. !integer :: TopDriveDrillOffTilt
  75. real :: BrakeLeverCoefficient
  76. logical :: HideDrillingBrake
  77. logical :: ParkingBrakeBtn
  78. ! Output vars
  79. logical :: ParkingBrakeLed
  80. integer :: GEN1LED
  81. integer :: GEN2LED
  82. integer :: GEN3LED
  83. integer :: GEN4LED
  84. integer :: SCR1LED
  85. integer :: SCR2LED
  86. integer :: SCR3LED
  87. integer :: SCR4LED
  88. integer :: MP1BLWR
  89. integer :: MP2BLWR
  90. integer :: DWBLWR
  91. integer :: RTBLWR
  92. integer :: PWRLIM
  93. real(8) :: PWRLIMMTR
  94. real(8) :: RTTorqueLimitGauge
  95. integer :: AutoDWLED
  96. integer :: GEN1BTNLED
  97. integer :: GEN2BTNLED
  98. integer :: GEN3BTNLED
  99. integer :: GEN4BTNLED
  100. integer :: OpenKellyCockLed
  101. integer :: CloseKellyCockLed
  102. integer :: OpenSafetyValveLed
  103. integer :: CloseSafetyValveLed
  104. integer :: IRSafetyValveLed
  105. integer :: IRIBopLed
  106. integer :: LatchPipeLED
  107. integer :: UnlatchPipeLED
  108. integer :: SwingLed
  109. integer :: FillMouseHoleLed
  110. END TYPE DrillingConsoleType
  111. TYPE(DrillingConsoleType) :: DrillingConsole
  112. end module CDrillingConsoleVariables