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.

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