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.

UnitySignalsVariables.i90 4.9 KiB

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