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.
 
 
 
 
 
 

156 lines
5.1 KiB

  1. module UnitySignalVariables
  2. ! use CVoidEventHandlerCollection
  3. ! use CIntegerEventHandlerCollection
  4. enum, bind(c)
  5. enumerator SLIPS_NEUTRAL
  6. enumerator SLIPS_SET_BEGIN
  7. enumerator SLIPS_SET_END
  8. enumerator SLIPS_UNSET_BEGIN
  9. enumerator SLIPS_UNSET_END
  10. end enum
  11. type:: UnitySignalsType
  12. ! used only in set and get (unitysignals.f90)
  13. integer :: MudBucket = 0
  14. ! used only in set and get (unitysignals.f90) and indirectly in Evaluate...
  15. integer :: Elevator = 0
  16. ! used only in set and get (unitysignals.f90) and indirectly in Evaluate...
  17. integer :: FillupHead = 0
  18. integer :: Ibop = 0
  19. integer :: Kelly = 0
  20. integer :: MouseHole = 0
  21. integer :: OperationCondition = 0
  22. integer :: SafetyValve = 0
  23. integer :: operation = 0
  24. !previous value is 0 (neutral),set to set_end by mahmood
  25. integer :: Slips = SLIPS_SET_END
  26. integer :: Slips_S = 0
  27. integer :: Swing = 0
  28. integer :: Swing_S = 0
  29. integer :: TdsBackupClamp = 0
  30. integer :: TdsSpine = 0
  31. integer :: TdsSwing = 0
  32. integer :: TdsTong = 0
  33. integer :: Tong = 0
  34. integer :: Tong_S = 0
  35. integer :: TdsConnectionModes = 0
  36. integer :: TdsElevatorModes = 0
  37. end type UnitySignalsType
  38. enum, bind(c)
  39. enumerator TONG_NEUTRAL
  40. enumerator TONG_BREAKOUT_BEGIN
  41. enumerator TONG_BREAKOUT_END
  42. enumerator TONG_MAKEUP_BEGIN
  43. enumerator TONG_MAKEUP_END
  44. end enum
  45. enum, bind(c)
  46. enumerator TDS_SWING_NEUTRAL
  47. enumerator TDS_SWING_OFF_BEGIN
  48. enumerator TDS_SWING_OFF_END
  49. enumerator TDS_SWING_DRILL_BEGIN
  50. enumerator TDS_SWING_DRILL_END
  51. enumerator TDS_SWING_TILT_BEGIN
  52. enumerator TDS_SWING_TILT_END
  53. end enum
  54. enum, bind(c)
  55. enumerator TDS_SPINE_NEUTRAL
  56. enumerator TDS_SPINE_CONNECT_BEGIN
  57. enumerator TDS_SPINE_CONNECT_END
  58. enumerator TDS_SPINE_DISCONNECT_BEGIN
  59. enumerator TDS_SPINE_DISCONNECT_END
  60. end enum
  61. enum, bind(c)
  62. enumerator BACKUP_CLAMP_OFF_END
  63. enumerator BACKUP_CLAMP_OFF_BEGIN
  64. enumerator BACKUP_CLAMP_FW_BEGIN
  65. enumerator BACKUP_CLAMP_FW_END
  66. end enum
  67. enum, bind(c)
  68. enumerator SWING_NEUTRAL
  69. enumerator SWING_MOUSE_HOLE_BEGIN
  70. enumerator SWING_MOUSE_HOLE_END
  71. enumerator SWING_RAT_HOLE_BEGIN
  72. enumerator SWING_RAT_HOLE_END
  73. enumerator SWING_WELL_BEGIN
  74. enumerator SWING_WELL_END
  75. end enum
  76. enum, bind(c)
  77. enumerator TDS_TONG_BREAKOUT_END
  78. enumerator TDS_TONG_BREAKOUT_BEGIN
  79. enumerator TDS_TONG_MAKEUP_BEGIN
  80. enumerator TDS_TONG_MAKEUP_END
  81. end enum
  82. enum, bind(c)
  83. enumerator SAFETY_VALVE_NEUTRAL
  84. enumerator SAFETY_VALVE_REMOVE
  85. enumerator SAFETY_VALVE_INSTALL
  86. end enum
  87. enum, bind(c)
  88. enumerator OPERATION_DRILL
  89. enumerator OPERATION_TRIP
  90. end enum
  91. enum, bind(c)
  92. enumerator MOUSE_HOLE_NEUTRAL
  93. enumerator MOUSE_HOLE_FILL
  94. enumerator MOUSE_HOLE_EMPTY
  95. end enum
  96. enum, bind(c)
  97. enumerator KELLY_NEUTRAL
  98. enumerator KELLY_INSTALL
  99. enumerator KELLY_REMOVE
  100. end enum
  101. enum, bind(c)
  102. !enumerator FILLUP_HEAD_NEUTRAL
  103. enumerator FILLUP_HEAD_REMOVE
  104. enumerator FILLUP_HEAD_INSTALL
  105. end enum
  106. enum, bind(c)
  107. enumerator ELEVATOR_NEUTRAL
  108. enumerator ELEVATOR_LATCH_STRING_BEGIN
  109. enumerator ELEVATOR_LATCH_STRING_END
  110. enumerator ELEVATOR_UNLATCH_STRING_BEGIN
  111. enumerator ELEVATOR_UNLATCH_STRING_END
  112. enumerator ELEVATOR_LATCH_STAND_BEGIN
  113. enumerator ELEVATOR_LATCH_STAND_END
  114. enumerator ELEVATOR_UNLATCH_STAND_BEGIN
  115. enumerator ELEVATOR_UNLATCH_STAND_END
  116. enumerator ELEVATOR_LATCH_SINGLE_BEGIN
  117. enumerator ELEVATOR_LATCH_SINGLE_END
  118. enumerator ELEVATOR_UNLATCH_SINGLE_BEGIN
  119. enumerator ELEVATOR_UNLATCH_SINGLE_END
  120. end enum
  121. enum, bind(c)
  122. !enumerator MUD_BUCKET_NEUTRAL
  123. enumerator MUD_BUCKET_REMOVE
  124. enumerator MUD_BUCKET_INSTALL
  125. end enum
  126. enum, bind(c)
  127. !enumerator IBOP_NEUTRAL
  128. enumerator IBOP_REMOVE
  129. enumerator IBOP_INSTALL
  130. end enum
  131. enum, bind(c)
  132. enumerator TDS_CONNECTION_NOTHING
  133. enumerator TDS_CONNECTION_STRING
  134. enumerator TDS_CONNECTION_SPINE
  135. end enum
  136. enum, bind(c)
  137. enumerator TDS_ELEVATOR_CONNECTION_NOTHING
  138. enumerator TDS_ELEVATOR_CONNECTION_STRING
  139. enumerator TDS_ELEVATOR_CONNECTION_SINGLE
  140. enumerator TDS_ELEVATOR_CONNECTION_STAND
  141. enumerator TDS_ELEVATOR_LATCH_STRING
  142. enumerator TDS_ELEVATOR_LATCH_SINGLE
  143. enumerator TDS_ELEVATOR_LATCH_STAND
  144. end enum
  145. contains
  146. end module UnitySignalVariables