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 3.2 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. real(8) :: RTTransmissionLever
  32. real(8) :: DWClutchLever
  33. real(8) :: EddyBreakLever
  34. logical :: AutoDW
  35. logical :: GEN1
  36. logical :: GEN2
  37. logical :: GEN3
  38. logical :: GEN4
  39. logical :: Permission_OpenKellyCock = .false.
  40. logical :: OpenKellyCock
  41. logical :: Permission_CloseKellyCock = .false.
  42. logical :: CloseKellyCock
  43. logical :: Permission_OpenSafetyValve = .false.
  44. logical :: OpenSafetyValve
  45. logical :: Permission_CloseSafetyValve = .false.
  46. logical :: CloseSafetyValve
  47. logical :: Permission_IRSafetyValve = .false.
  48. logical :: IRSafetyValve
  49. logical :: Permission_IRIBop = .false.
  50. logical :: IRIBop
  51. logical :: LatchPipe
  52. logical :: UnlatchPipe
  53. logical :: Swing
  54. logical :: FillMouseHole
  55. logical :: Slips
  56. real :: BrakeLeverCoefficient
  57. logical :: HideDrillingBrake
  58. logical :: ParkingBrakeBtn
  59. ! Output vars
  60. logical :: ParkingBrakeLed
  61. integer :: GEN1LED
  62. integer :: GEN2LED
  63. integer :: GEN3LED
  64. integer :: GEN4LED
  65. integer :: SCR1LED
  66. integer :: SCR2LED
  67. integer :: SCR3LED
  68. integer :: SCR4LED
  69. integer :: MP1BLWR
  70. integer :: MP2BLWR
  71. integer :: DWBLWR
  72. integer :: RTBLWR
  73. integer :: PWRLIM
  74. real(8) :: PWRLIMMTR
  75. real(8) :: RTTorqueLimitGauge
  76. integer :: AutoDWLED
  77. integer :: GEN1BTNLED
  78. integer :: GEN2BTNLED
  79. integer :: GEN3BTNLED
  80. integer :: GEN4BTNLED
  81. integer :: OpenKellyCockLed
  82. integer :: CloseKellyCockLed
  83. integer :: OpenSafetyValveLed
  84. integer :: CloseSafetyValveLed
  85. integer :: IRSafetyValveLed
  86. integer :: IRIBopLed
  87. integer :: LatchPipeLED
  88. integer :: UnlatchPipeLED
  89. integer :: SwingLed
  90. integer :: FillMouseHoleLed
  91. END TYPE DrillingConsoleType
  92. end module CDrillingConsoleVariables