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.
 
 
 
 
 
 

132 lines
3.8 KiB

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