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.
 
 
 
 
 
 

424 lines
22 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/Equipments/ControlPanels/CDataDisplayConsole.f90"
  2. module CDataDisplayConsole
  3. ! use CDataDisplayConsole
  4. use SimulationVariables
  5. implicit none
  6. public
  7. contains
  8. subroutine DataDisplayConsoleFromJson(parent)
  9. type(json_value),pointer :: parent
  10. type(json_core) :: json
  11. type(json_value),pointer :: p,pval
  12. ! 1. get related root
  13. call json%get(parent,'DataDisplay',p)
  14. ! 2. get member of data type from node
  15. ! call json%get(p,'TripAlarmLow',pval)
  16. ! call json%get(pval,data%Equipments%DataDisplayConsole%TripAlarmLow)
  17. ! call json%get(p,'TripAlarmHigh',pval)
  18. ! call json%get(pval,data%Equipments%DataDisplayConsole%TripAlarmHigh)
  19. ! call json%get(p,'RetFlowAlarmLow',pval)
  20. ! call json%get(pval,data%Equipments%DataDisplayConsole%RetFlowAlarmLow)
  21. ! call json%get(p,'RetFlowAlarmHigh',pval)
  22. ! call json%get(pval,data%Equipments%DataDisplayConsole%RetFlowAlarmHigh)
  23. ! call json%get(p,'PitAlarmLow',pval)
  24. ! call json%get(pval,data%Equipments%DataDisplayConsole%PitAlarmLow)
  25. ! call json%get(p,'PitAlarmHigh',pval)
  26. ! call json%get(pval,data%Equipments%DataDisplayConsole%PitAlarmHigh)
  27. ! call json%get(p,'PortWeightOnBit',pval)
  28. ! call json%get(pval,data%Equipments%DataDisplayConsole%PortWeightOnBit)
  29. ! call json%get(p,'PortHookLoad',pval)
  30. ! call json%get(pval,data%Equipments%DataDisplayConsole%PortHookLoad)
  31. ! call json%get(p,'PortCasingPressure',pval)
  32. ! call json%get(pval,data%Equipments%DataDisplayConsole%PortCasingPressure)
  33. ! call json%get(p,'PortPumpPressure',pval)
  34. ! call json%get(pval,data%Equipments%DataDisplayConsole%PortPumpPressure)
  35. call json%get(p,'TripTankSetAlarmLow',pval)
  36. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankSetAlarmLow)
  37. call json%get(p,'TripTankSetAlarmHigh',pval)
  38. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankSetAlarmHigh)
  39. call json%get(p,'TripTankSetAlarmSwitch',pval)
  40. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankSetAlarmSwitch)
  41. call json%get(p,'TripTankPowerSwitch',pval)
  42. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankPowerSwitch)
  43. call json%get(p,'TripTankPumpSwitch',pval)
  44. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankPumpSwitch)
  45. call json%get(p,'TripTankHornSwitch',pval)
  46. call json%get(pval,data%Equipments%DataDisplayConsole%TripTankHornSwitch)
  47. call json%get(p,'AcidGasDetectionHornSwitch',pval)
  48. call json%get(pval,data%Equipments%DataDisplayConsole%AcidGasDetectionHornSwitch)
  49. call json%get(p,'TotalStrokeCounterResetSwitch',pval)
  50. call json%get(pval,data%Equipments%DataDisplayConsole%TotalStrokeCounterResetSwitch)
  51. call json%get(p,'DrillingTrippingSelectorSwitch',pval)
  52. call json%get(pval,data%Equipments%DataDisplayConsole%DrillingTrippingSelectorSwitch)
  53. call json%get(p,'MVTSetAlarmLowKnob',pval)
  54. call json%get(pval,data%Equipments%DataDisplayConsole%MVTSetAlarmLowKnob)
  55. call json%get(p,'MVTSetAlarmHighKnob',pval)
  56. call json%get(pval,data%Equipments%DataDisplayConsole%MVTSetAlarmHighKnob)
  57. call json%get(p,'MVTSetAlarmSwitch',pval)
  58. call json%get(pval,data%Equipments%DataDisplayConsole%MVTSetAlarmSwitch)
  59. call json%get(p,'MudTank1Switch',pval)
  60. call json%get(pval,data%Equipments%DataDisplayConsole%MudTank1Switch)
  61. call json%get(p,'MudTank2Switch',pval)
  62. call json%get(pval,data%Equipments%DataDisplayConsole%MudTank2Switch)
  63. call json%get(p,'MudTank3Switch',pval)
  64. call json%get(pval,data%Equipments%DataDisplayConsole%MudTank3Switch)
  65. call json%get(p,'MudTank4Switch',pval)
  66. call json%get(pval,data%Equipments%DataDisplayConsole%MudTank4Switch)
  67. call json%get(p,'MVTFineKnob',pval)
  68. call json%get(pval,data%Equipments%DataDisplayConsole%MVTFineKnob)
  69. call json%get(p,'MVTCoarseKnob',pval)
  70. call json%get(pval,data%Equipments%DataDisplayConsole%MVTCoarseKnob)
  71. call json%get(p,'MVTHornSwitch',pval)
  72. call json%get(pval,data%Equipments%DataDisplayConsole%MVTHornSwitch)
  73. call json%get(p,'MVTDeviationTripSelectionSwitch',pval)
  74. call json%get(pval,data%Equipments%DataDisplayConsole%MVTDeviationTripSelectionSwitch)
  75. call json%get(p,'MVTPowerSwitch',pval)
  76. call json%get(pval,data%Equipments%DataDisplayConsole%MVTPowerSwitch)
  77. call json%get(p,'MFFIResetTotalStrokes',pval)
  78. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIResetTotalStrokes)
  79. call json%get(p,'MFFIResetFillCounter',pval)
  80. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIResetFillCounter)
  81. call json%get(p,'MFFIPumpSelectorSwitch',pval)
  82. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIPumpSelectorSwitch)
  83. call json%get(p,'MFFIFillSPMSelectorSwitch',pval)
  84. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIFillSPMSelectorSwitch)
  85. call json%get(p,'MFFISetAlarmLowKnob',pval)
  86. call json%get(pval,data%Equipments%DataDisplayConsole%MFFISetAlarmLowKnob)
  87. call json%get(p,'MFFISetAlarmHighKnob',pval)
  88. call json%get(pval,data%Equipments%DataDisplayConsole%MFFISetAlarmHighKnob)
  89. call json%get(p,'MFFISetAlarmSwitch',pval)
  90. call json%get(pval,data%Equipments%DataDisplayConsole%MFFISetAlarmSwitch)
  91. call json%get(p,'MFFIPowerSwitch',pval)
  92. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIPowerSwitch)
  93. call json%get(p,'MFFIHornSwitch',pval)
  94. call json%get(pval,data%Equipments%DataDisplayConsole%MFFIHornSwitch)
  95. call json%get(p,'ResetWob',pval)
  96. call json%get(pval,data%Equipments%DataDisplayConsole%ResetWob)
  97. call json%get(p,'Clutch',pval)
  98. ! call json%get(pval,data%Equipments%DataDisplayConsole%Clutch)
  99. ! call json%get(p,'WOBPointer',pval)
  100. ! call json%get(pval,data%Equipments%DataDisplayConsole%WOBPointer)
  101. ! call json%get(p,'HookLoadPointer',pval)
  102. ! call json%get(pval,data%Equipments%DataDisplayConsole%HookLoadPointer)
  103. ! call json%get(p,'TripTankGauge',pval)
  104. ! call json%get(pval,data%Equipments%DataDisplayConsole%TripTankGauge)
  105. ! call json%get(p,'TripTankAlarmLED',pval)
  106. ! call json%get(pval,data%Equipments%DataDisplayConsole%TripTankAlarmLED)
  107. ! call json%get(p,'TripTankPumpLED',pval)
  108. ! call json%get(pval,data%Equipments%DataDisplayConsole%TripTankPumpLED)
  109. ! call json%get(p,'StandPipePressureGauge',pval)
  110. ! call json%get(pval,data%Equipments%DataDisplayConsole%StandPipePressureGauge)
  111. ! call json%get(p,'CasingPressureGauge',pval)
  112. ! call json%get(pval,data%Equipments%DataDisplayConsole%CasingPressureGauge)
  113. ! call json%get(p,'MP1SPMGauge',pval)
  114. ! call json%get(pval,data%Equipments%DataDisplayConsole%MP1SPMGauge)
  115. ! call json%get(p,'MP2SPMGauge',pval)
  116. ! call json%get(pval,data%Equipments%DataDisplayConsole%MP2SPMGauge)
  117. ! call json%get(p,'ReturnLineTempGauge',pval)
  118. ! call json%get(pval,data%Equipments%DataDisplayConsole%ReturnLineTempGauge)
  119. ! call json%get(p,'RotaryTorqueGauge',pval)
  120. ! call json%get(pval,data%Equipments%DataDisplayConsole%RotaryTorqueGauge)
  121. ! call json%get(p,'RotaryRPMGauge',pval)
  122. ! call json%get(pval,data%Equipments%DataDisplayConsole%RotaryRPMGauge)
  123. ! call json%get(p,'AcidGasDetectionLED',pval)
  124. ! call json%get(pval,data%Equipments%DataDisplayConsole%AcidGasDetectionLED)
  125. ! call json%get(p,'TotalStrokeCounter',pval)
  126. ! call json%get(pval,data%Equipments%DataDisplayConsole%TotalStrokeCounter)
  127. ! call json%get(p,'PitGainLossGauge',pval)
  128. ! call json%get(pval,data%Equipments%DataDisplayConsole%PitGainLossGauge)
  129. ! call json%get(p,'MudTanksVolumeGauge',pval)
  130. ! call json%get(pval,data%Equipments%DataDisplayConsole%MudTanksVolumeGauge)
  131. ! call json%get(p,'MVTAlarmLED',pval)
  132. ! call json%get(pval,data%Equipments%DataDisplayConsole%MVTAlarmLED)
  133. ! call json%get(p,'ReturnMudFlowGauge',pval)
  134. ! call json%get(pval,data%Equipments%DataDisplayConsole%ReturnMudFlowGauge)
  135. ! call json%get(p,'FillStrokeCounter',pval)
  136. ! call json%get(pval,data%Equipments%DataDisplayConsole%FillStrokeCounter)
  137. ! call json%get(p,'MFFITotalStrokeCounter',pval)
  138. ! call json%get(pval,data%Equipments%DataDisplayConsole%MFFITotalStrokeCounter)
  139. ! call json%get(p,'MFFIAlarmLED',pval)
  140. ! call json%get(pval,data%Equipments%DataDisplayConsole%MFFIAlarmLED)
  141. ! call json%get(p,'MFFIPumpLED',pval)
  142. ! call json%get(pval,data%Equipments%DataDisplayConsole%MFFIPumpLED)
  143. ! call json%get(p,'TotalWellDepth',pval)
  144. ! call json%get(pval,data%Equipments%DataDisplayConsole%TotalWellDepth)
  145. ! call json%get(p,'BitDepth',pval)
  146. ! call json%get(pval,data%Equipments%DataDisplayConsole%BitDepth)
  147. ! call json%get(p,'HookLoad',pval)
  148. ! call json%get(pval,data%Equipments%DataDisplayConsole%HookLoad)
  149. ! call json%get(p,'StandPipePressure',pval)
  150. ! call json%get(pval,data%Equipments%DataDisplayConsole%StandPipePressure)
  151. ! call json%get(p,'CasingPressure',pval)
  152. ! call json%get(pval,data%Equipments%DataDisplayConsole%CasingPressure)
  153. ! call json%get(p,'MP1SPM',pval)
  154. ! call json%get(pval,data%Equipments%DataDisplayConsole%MP1SPM)
  155. ! call json%get(p,'MP2SPM',pval)
  156. ! call json%get(pval,data%Equipments%DataDisplayConsole%MP2SPM)
  157. ! call json%get(p,'RTTorque',pval)
  158. ! call json%get(pval,data%Equipments%DataDisplayConsole%RTTorque)
  159. ! call json%get(p,'RTRPM',pval)
  160. ! call json%get(pval,data%Equipments%DataDisplayConsole%RTRPM)
  161. ! call json%get(p,'WOP',pval)
  162. ! call json%get(pval,data%Equipments%DataDisplayConsole%WOP)
  163. ! call json%get(p,'ROP',pval)
  164. ! call json%get(pval,data%Equipments%DataDisplayConsole%ROP)
  165. ! call json%get(p,'MudWeightIn',pval)
  166. ! call json%get(pval,data%Equipments%DataDisplayConsole%MudWeightIn)
  167. ! call json%get(p,'MudWeightOut',pval)
  168. ! call json%get(pval,data%Equipments%DataDisplayConsole%MudWeightOut)
  169. ! call json%get(p,'Buzzer1',pval)
  170. ! call json%get(pval,data%Equipments%DataDisplayConsole%Buzzer1)
  171. ! call json%get(p,'Buzzer2',pval)
  172. ! call json%get(pval,data%Equipments%DataDisplayConsole%Buzzer2)
  173. ! call json%get(p,'Buzzer3',pval)
  174. ! call json%get(pval,data%Equipments%DataDisplayConsole%Buzzer3)
  175. ! call json%get(p,'Buzzer4',pval)
  176. ! call json%get(pval,data%Equipments%DataDisplayConsole%Buzzer4)
  177. end subroutine
  178. subroutine DataDisplayConsoleToJson(parent)
  179. type(json_value),pointer :: parent
  180. type(json_core) :: json
  181. type(json_value),pointer :: p
  182. ! 1. create new node
  183. call json%create_object(p,'DataDisplay')
  184. ! call json%add(p,"TripAlarmLow",data%Equipments%DataDisplayConsole%TripAlarmLow)
  185. ! call json%add(p,"TripAlarmHigh",data%Equipments%DataDisplayConsole%TripAlarmHigh)
  186. ! call json%add(p,"RetFlowAlarmLow",data%Equipments%DataDisplayConsole%RetFlowAlarmLow)
  187. ! call json%add(p,"RetFlowAlarmHigh",data%Equipments%DataDisplayConsole%RetFlowAlarmHigh)
  188. ! call json%add(p,"PitAlarmLow",data%Equipments%DataDisplayConsole%PitAlarmLow)
  189. ! call json%add(p,"PitAlarmHigh",data%Equipments%DataDisplayConsole%PitAlarmHigh)
  190. ! call json%add(p,"PortWeightOnBit",data%Equipments%DataDisplayConsole%PortWeightOnBit)
  191. ! call json%add(p,"PortHookLoad",data%Equipments%DataDisplayConsole%PortHookLoad)
  192. ! call json%add(p,"PortCasingPressure",data%Equipments%DataDisplayConsole%PortCasingPressure)
  193. ! call json%add(p,"PortPumpPressure",data%Equipments%DataDisplayConsole%PortPumpPressure)
  194. ! call json%add(p,"TripTankSetAlarmLow",data%Equipments%DataDisplayConsole%TripTankSetAlarmLow)
  195. ! call json%add(p,"TripTankSetAlarmHigh",data%Equipments%DataDisplayConsole%TripTankSetAlarmHigh)
  196. ! call json%add(p,"TripTankSetAlarmSwitch",data%Equipments%DataDisplayConsole%TripTankSetAlarmSwitch)
  197. ! call json%add(p,"TripTankPowerSwitch",data%Equipments%DataDisplayConsole%TripTankPowerSwitch)
  198. ! call json%add(p,"TripTankPumpSwitch",data%Equipments%DataDisplayConsole%TripTankPumpSwitch)
  199. ! call json%add(p,"TripTankHornSwitch",data%Equipments%DataDisplayConsole%TripTankHornSwitch)
  200. ! call json%add(p,"AcidGasDetectionHornSwitch",data%Equipments%DataDisplayConsole%AcidGasDetectionHornSwitch)
  201. ! call json%add(p,"TotalStrokeCounterResetSwitch",data%Equipments%DataDisplayConsole%TotalStrokeCounterResetSwitch)
  202. ! call json%add(p,"DrillingTrippingSelectorSwitch",data%Equipments%DataDisplayConsole%DrillingTrippingSelectorSwitch)
  203. ! call json%add(p,"MVTSetAlarmLowKnob",data%Equipments%DataDisplayConsole%MVTSetAlarmLowKnob)
  204. ! call json%add(p,"MVTSetAlarmHighKnob",data%Equipments%DataDisplayConsole%MVTSetAlarmHighKnob)
  205. ! call json%add(p,"MVTSetAlarmSwitch",data%Equipments%DataDisplayConsole%MVTSetAlarmSwitch)
  206. ! call json%add(p,"MudTank1Switch",data%Equipments%DataDisplayConsole%MudTank1Switch)
  207. ! call json%add(p,"MudTank2Switch",data%Equipments%DataDisplayConsole%MudTank2Switch)
  208. ! call json%add(p,"MudTank3Switch",data%Equipments%DataDisplayConsole%MudTank3Switch)
  209. ! call json%add(p,"MudTank4Switch",data%Equipments%DataDisplayConsole%MudTank4Switch)
  210. ! call json%add(p,"MVTFineKnob",data%Equipments%DataDisplayConsole%MVTFineKnob)
  211. ! call json%add(p,"MVTCoarseKnob",data%Equipments%DataDisplayConsole%MVTCoarseKnob)
  212. ! call json%add(p,"MVTHornSwitch",data%Equipments%DataDisplayConsole%MVTHornSwitch)
  213. ! call json%add(p,"MVTDeviationTripSelectionSwitch",data%Equipments%DataDisplayConsole%MVTDeviationTripSelectionSwitch)
  214. ! call json%add(p,"MVTPowerSwitch",data%Equipments%DataDisplayConsole%MVTPowerSwitch)
  215. ! call json%add(p,"MFFIResetTotalStrokes",data%Equipments%DataDisplayConsole%MFFIResetTotalStrokes)
  216. ! call json%add(p,"MFFIResetFillCounter",data%Equipments%DataDisplayConsole%MFFIResetFillCounter)
  217. ! call json%add(p,"MFFIPumpSelectorSwitch",data%Equipments%DataDisplayConsole%MFFIPumpSelectorSwitch)
  218. ! call json%add(p,"MFFIFillSPMSelectorSwitch",data%Equipments%DataDisplayConsole%MFFIFillSPMSelectorSwitch)
  219. ! call json%add(p,"MFFISetAlarmLowKnob",data%Equipments%DataDisplayConsole%MFFISetAlarmLowKnob)
  220. ! call json%add(p,"MFFISetAlarmHighKnob",data%Equipments%DataDisplayConsole%MFFISetAlarmHighKnob)
  221. ! call json%add(p,"MFFISetAlarmSwitch",data%Equipments%DataDisplayConsole%MFFISetAlarmSwitch)
  222. ! call json%add(p,"MFFIPowerSwitch",data%Equipments%DataDisplayConsole%MFFIPowerSwitch)
  223. ! call json%add(p,"MFFIHornSwitch",data%Equipments%DataDisplayConsole%MFFIHornSwitch)
  224. ! call json%add(p,"ResetWob",data%Equipments%DataDisplayConsole%ResetWob)
  225. ! call json%add(p,"Clutch",data%Equipments%DataDisplayConsole%Clutch)
  226. call json%add(p,"WOBPointer",data%Equipments%DataDisplayConsole%WOBPointer)
  227. call json%add(p,"HookLoadPointer",data%Equipments%DataDisplayConsole%HookLoadPointer)
  228. call json%add(p,"TripTankGauge",data%Equipments%DataDisplayConsole%TripTankGauge)
  229. call json%add(p,"TripTankAlarmLED",data%Equipments%DataDisplayConsole%TripTankAlarmLED)
  230. call json%add(p,"TripTankPumpLED",data%Equipments%DataDisplayConsole%TripTankPumpLED)
  231. call json%add(p,"StandPipePressureGauge",data%Equipments%DataDisplayConsole%StandPipePressureGauge)
  232. call json%add(p,"CasingPressureGauge",data%Equipments%DataDisplayConsole%CasingPressureGauge)
  233. call json%add(p,"MP1SPMGauge",data%Equipments%DataDisplayConsole%MP1SPMGauge)
  234. call json%add(p,"MP2SPMGauge",data%Equipments%DataDisplayConsole%MP2SPMGauge)
  235. call json%add(p,"ReturnLineTempGauge",data%Equipments%DataDisplayConsole%ReturnLineTempGauge)
  236. call json%add(p,"RotaryTorqueGauge",data%Equipments%DataDisplayConsole%RotaryTorqueGauge)
  237. call json%add(p,"RotaryRPMGauge",data%Equipments%DataDisplayConsole%RotaryRPMGauge)
  238. call json%add(p,"AcidGasDetectionLED",data%Equipments%DataDisplayConsole%AcidGasDetectionLED)
  239. call json%add(p,"TotalStrokeCounter",data%Equipments%DataDisplayConsole%TotalStrokeCounter)
  240. call json%add(p,"PitGainLossGauge",data%Equipments%DataDisplayConsole%PitGainLossGauge)
  241. call json%add(p,"MudTanksVolumeGauge",data%Equipments%DataDisplayConsole%MudTanksVolumeGauge)
  242. call json%add(p,"MVTAlarmLED",data%Equipments%DataDisplayConsole%MVTAlarmLED)
  243. call json%add(p,"ReturnMudFlowGauge",data%Equipments%DataDisplayConsole%ReturnMudFlowGauge)
  244. call json%add(p,"FillStrokeCounter",data%Equipments%DataDisplayConsole%FillStrokeCounter)
  245. call json%add(p,"MFFITotalStrokeCounter",data%Equipments%DataDisplayConsole%MFFITotalStrokeCounter)
  246. call json%add(p,"MFFIAlarmLED",data%Equipments%DataDisplayConsole%MFFIAlarmLED)
  247. call json%add(p,"MFFIPumpLED",data%Equipments%DataDisplayConsole%MFFIPumpLED)
  248. call json%add(p,"TotalWellDepth",data%Equipments%DataDisplayConsole%TotalWellDepth)
  249. call json%add(p,"BitDepth",data%Equipments%DataDisplayConsole%BitDepth)
  250. call json%add(p,"HookLoad",data%Equipments%DataDisplayConsole%HookLoad)
  251. call json%add(p,"StandPipePressure",data%Equipments%DataDisplayConsole%StandPipePressure)
  252. call json%add(p,"CasingPressure",data%Equipments%DataDisplayConsole%CasingPressure)
  253. call json%add(p,"MP1SPM",data%Equipments%DataDisplayConsole%MP1SPM)
  254. call json%add(p,"MP2SPM",data%Equipments%DataDisplayConsole%MP2SPM)
  255. call json%add(p,"RTTorque",data%Equipments%DataDisplayConsole%RTTorque)
  256. call json%add(p,"RTRPM",data%Equipments%DataDisplayConsole%RTRPM)
  257. call json%add(p,"WOP",data%Equipments%DataDisplayConsole%WOP)
  258. call json%add(p,"ROP",data%Equipments%DataDisplayConsole%ROP)
  259. call json%add(p,"MudWeightIn",data%Equipments%DataDisplayConsole%MudWeightIn)
  260. call json%add(p,"MudWeightOut",data%Equipments%DataDisplayConsole%MudWeightOut)
  261. call json%add(p,"Buzzer1",data%Equipments%DataDisplayConsole%Buzzer1)
  262. call json%add(p,"Buzzer2",data%Equipments%DataDisplayConsole%Buzzer2)
  263. call json%add(p,"Buzzer3",data%Equipments%DataDisplayConsole%Buzzer3)
  264. call json%add(p,"Buzzer4",data%Equipments%DataDisplayConsole%Buzzer4)
  265. call json%add(parent,p)
  266. end subroutine
  267. subroutine Set_TotalDepth(v)
  268. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%Depth
  269. ! use CSimulationVariables, only: SetDistanceDrilled
  270. implicit none
  271. real(8), intent(in) :: v
  272. data%Equipments%DataDisplayConsole%TotalWellDepth = v
  273. data%Equipments%DrillingWatch%Depth = v
  274. ! call SetDistanceDrilled(v)
  275. end subroutine
  276. subroutine Set_BitPosition(v)
  277. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%BitPosition
  278. implicit none
  279. real(8), intent(in) :: v
  280. data%Equipments%DataDisplayConsole%BitDepth = v
  281. data%Equipments%DrillingWatch%BitPosition = v
  282. end subroutine
  283. subroutine Set_RotaryTorque(v)
  284. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%Torque
  285. implicit none
  286. real(8), intent(in) :: v
  287. data%Equipments%DataDisplayConsole%RotaryTorqueGauge = v
  288. data%Equipments%DrillingWatch%Torque = v
  289. data%Equipments%DataDisplayConsole%RTTorque = v
  290. end subroutine
  291. subroutine Set_MudWeightIn(v)
  292. use SimulationVariables !@!, only: MudWeightInDw => data%Equipments%DataDisplayConsole%MudWeightIn
  293. implicit none
  294. real(8), intent(in) :: v
  295. data%Equipments%DataDisplayConsole%MudWeightIn = v
  296. data%Equipments%DrillingWatch%MudWeightIn = v
  297. end subroutine
  298. subroutine Set_MudWeightOut(v)
  299. use SimulationVariables !@!, only: MudWeightOutDw => data%Equipments%DataDisplayConsole%MudWeightOut
  300. implicit none
  301. real(8), intent(in) :: v
  302. data%Equipments%DataDisplayConsole%MudWeightOut = v
  303. data%Equipments%DrillingWatch%MudWeightOut = v
  304. end subroutine
  305. subroutine Set_TripTankVolume(v)
  306. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%TripTankVolume
  307. implicit none
  308. real(8), intent(in) :: v
  309. data%Equipments%DrillingWatch%TripTankVolume = v
  310. end subroutine
  311. subroutine Set_FillVolume(v)
  312. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%FillVolume
  313. implicit none
  314. real(8), intent(in) :: v
  315. data%Equipments%DrillingWatch%FillVolume = v
  316. end subroutine
  317. subroutine Set_HookLoad(v)
  318. use SimulationVariables !@!, only: HookLoadDw => data%Equipments%DataDisplayConsole%HookLoad
  319. implicit none
  320. real(8), intent(in) :: v
  321. data%Equipments%DataDisplayConsole%HookLoadPointer = v
  322. data%Equipments%DrillingWatch%HookLoad = v * 1000
  323. data%Equipments%DataDisplayConsole%HookLoad = v
  324. end subroutine
  325. subroutine Set_WeightOnBit(v)
  326. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%WeightOnBit
  327. implicit none
  328. real(8), intent(in) :: v
  329. data%Equipments%DataDisplayConsole%WOBPointer = v
  330. data%Equipments%DrillingWatch%WeightOnBit = v
  331. data%Equipments%DataDisplayConsole%WOP = v
  332. end subroutine
  333. subroutine Set_ROP(v)
  334. use SimulationVariables !@!, only: ROPDw => data%Equipments%DataDisplayConsole%ROP
  335. implicit none
  336. real(8), intent(in) :: v
  337. data%Equipments%DataDisplayConsole%ROP = v
  338. data%Equipments%DrillingWatch%ROP = v
  339. end subroutine
  340. subroutine Set_CasingPressure(v)
  341. use SimulationVariables !@!, only: CasingPressureDw => CasingPressure
  342. use CChokeControlPanelVariables
  343. use SimulationVariables!, only: CasingPressureChoke => CasingPressure
  344. implicit none
  345. real(8), intent(in) :: v
  346. data%Equipments%DataDisplayConsole%CasingPressureGauge = v
  347. data%Equipments%DrillingWatch%CasingPressure = v
  348. data%Equipments%ChokeControlPanel%CasingPressure = v
  349. data%Equipments%DataDisplayConsole%CasingPressure = v
  350. end subroutine
  351. subroutine Set_StandPipePressure(v)
  352. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%PumpPressure
  353. use CChokeControlPanelVariables
  354. use SimulationVariables!, only: StandPipePressureChoke => data%Equipments%DataDisplayConsole%StandPipePressure
  355. implicit none
  356. real(8), intent(in) :: v
  357. data%Equipments%DataDisplayConsole%StandPipePressureGauge = v
  358. data%Equipments%DrillingWatch%PumpPressure = v
  359. data%Equipments%ChokeControlPanel%StandPipePressure = v
  360. data%Equipments%DataDisplayConsole%StandPipePressure = v
  361. end subroutine
  362. subroutine Set_RotaryRPMGauge(v)
  363. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%RPM
  364. implicit none
  365. real(8), intent(in) :: v
  366. data%Equipments%DataDisplayConsole%RotaryRPMGauge = v
  367. data%Equipments%DrillingWatch%RPM = v
  368. data%Equipments%DataDisplayConsole%RTRPM = v
  369. ! call data%Equipments%DataDisplayConsole%OnRotaryRpmChange%RunAll(v)
  370. end subroutine
  371. subroutine Set_MP1SPMGauge(v)
  372. implicit none
  373. real(8), intent(in) :: v
  374. data%Equipments%DataDisplayConsole%MP1SPMGauge = v
  375. data%Equipments%DataDisplayConsole%MP1SPM = v
  376. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%Equipments%DataDisplayConsole%MP1SPMGauge, data%Equipments%DataDisplayConsole%MP2SPMGauge)
  377. # 411
  378. end subroutine
  379. subroutine Set_MP2SPMGauge(v)
  380. implicit none
  381. real(8), intent(in) :: v
  382. data%Equipments%DataDisplayConsole%MP2SPMGauge = v
  383. data%Equipments%DataDisplayConsole%MP2SPM = v
  384. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%Equipments%DataDisplayConsole%MP1SPMGauge, data%Equipments%DataDisplayConsole%MP2SPMGauge)
  385. # 422
  386. end subroutine
  387. end module CDataDisplayConsole