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.i90 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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,"TotalWellDepth",1000)
  250. call json%add(p,"BitDepth",data%Equipments%DataDisplayConsole%BitDepth)
  251. call json%add(p,"HookLoad",data%Equipments%DataDisplayConsole%HookLoad)
  252. call json%add(p,"StandPipePressure",data%Equipments%DataDisplayConsole%StandPipePressure)
  253. call json%add(p,"CasingPressure",data%Equipments%DataDisplayConsole%CasingPressure)
  254. call json%add(p,"MP1SPM",data%Equipments%DataDisplayConsole%MP1SPM)
  255. call json%add(p,"MP2SPM",data%Equipments%DataDisplayConsole%MP2SPM)
  256. call json%add(p,"RTTorque",data%Equipments%DataDisplayConsole%RTTorque)
  257. call json%add(p,"RTRPM",data%Equipments%DataDisplayConsole%RTRPM)
  258. call json%add(p,"WOP",data%Equipments%DataDisplayConsole%WOP)
  259. call json%add(p,"ROP",data%Equipments%DataDisplayConsole%ROP)
  260. call json%add(p,"MudWeightIn",data%Equipments%DataDisplayConsole%MudWeightIn)
  261. call json%add(p,"MudWeightOut",data%Equipments%DataDisplayConsole%MudWeightOut)
  262. call json%add(p,"Buzzer1",data%Equipments%DataDisplayConsole%Buzzer1)
  263. call json%add(p,"Buzzer2",data%Equipments%DataDisplayConsole%Buzzer2)
  264. call json%add(p,"Buzzer3",data%Equipments%DataDisplayConsole%Buzzer3)
  265. call json%add(p,"Buzzer4",data%Equipments%DataDisplayConsole%Buzzer4)
  266. call json%add(parent,p)
  267. end subroutine
  268. subroutine Set_TotalDepth(v)
  269. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%Depth
  270. ! use CSimulationVariables, only: SetDistanceDrilled
  271. implicit none
  272. real(8), intent(in) :: v
  273. ! print *,"total depth = ",v
  274. data%Equipments%DataDisplayConsole%TotalWellDepth = 1000
  275. data%Equipments%DrillingWatch%Depth = 1000
  276. ! call SetDistanceDrilled(v)
  277. end subroutine
  278. subroutine Set_BitPosition(v)
  279. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%BitPosition
  280. implicit none
  281. real(8), intent(in) :: v
  282. data%Equipments%DataDisplayConsole%BitDepth = v
  283. data%Equipments%DrillingWatch%BitPosition = v
  284. end subroutine
  285. subroutine Set_RotaryTorque(v)
  286. use SimulationVariables !@!!, only: data%Equipments%DrillingWatch%Torque
  287. implicit none
  288. real(8), intent(in) :: v
  289. data%Equipments%DataDisplayConsole%RotaryTorqueGauge = v
  290. data%Equipments%DrillingWatch%Torque = v
  291. data%Equipments%DataDisplayConsole%RTTorque = v
  292. end subroutine
  293. subroutine Set_MudWeightIn(v)
  294. use SimulationVariables !@!, only: MudWeightInDw => data%Equipments%DataDisplayConsole%MudWeightIn
  295. implicit none
  296. real(8), intent(in) :: v
  297. data%Equipments%DataDisplayConsole%MudWeightIn = v
  298. data%Equipments%DrillingWatch%MudWeightIn = v
  299. end subroutine
  300. subroutine Set_MudWeightOut(v)
  301. use SimulationVariables !@!, only: MudWeightOutDw => data%Equipments%DataDisplayConsole%MudWeightOut
  302. implicit none
  303. real(8), intent(in) :: v
  304. data%Equipments%DataDisplayConsole%MudWeightOut = v
  305. data%Equipments%DrillingWatch%MudWeightOut = v
  306. end subroutine
  307. subroutine Set_TripTankVolume(v)
  308. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%TripTankVolume
  309. implicit none
  310. real(8), intent(in) :: v
  311. data%Equipments%DrillingWatch%TripTankVolume = v
  312. end subroutine
  313. subroutine Set_FillVolume(v)
  314. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%FillVolume
  315. implicit none
  316. real(8), intent(in) :: v
  317. data%Equipments%DrillingWatch%FillVolume = v
  318. end subroutine
  319. subroutine Set_HookLoad(v)
  320. use SimulationVariables !@!, only: HookLoadDw => data%Equipments%DataDisplayConsole%HookLoad
  321. implicit none
  322. real(8), intent(in) :: v
  323. data%Equipments%DataDisplayConsole%HookLoadPointer = v
  324. data%Equipments%DrillingWatch%HookLoad = v * 1000
  325. data%Equipments%DataDisplayConsole%HookLoad = v
  326. end subroutine
  327. subroutine Set_WeightOnBit(v)
  328. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%WeightOnBit
  329. implicit none
  330. real(8), intent(in) :: v
  331. data%Equipments%DataDisplayConsole%WOBPointer = v
  332. data%Equipments%DrillingWatch%WeightOnBit = v
  333. data%Equipments%DataDisplayConsole%WOP = v
  334. end subroutine
  335. subroutine Set_ROP(v)
  336. use SimulationVariables !@!, only: ROPDw => data%Equipments%DataDisplayConsole%ROP
  337. implicit none
  338. real(8), intent(in) :: v
  339. data%Equipments%DataDisplayConsole%ROP = v
  340. data%Equipments%DrillingWatch%ROP = v
  341. end subroutine
  342. subroutine Set_CasingPressure(v)
  343. use SimulationVariables !@!, only: CasingPressureDw => CasingPressure
  344. use CChokeControlPanelVariables
  345. use SimulationVariables!, only: CasingPressureChoke => CasingPressure
  346. implicit none
  347. real(8), intent(in) :: v
  348. data%Equipments%DataDisplayConsole%CasingPressureGauge = v
  349. data%Equipments%DrillingWatch%CasingPressure = v
  350. data%Equipments%ChokeControlPanel%CasingPressure = v
  351. data%Equipments%DataDisplayConsole%CasingPressure = v
  352. end subroutine
  353. subroutine Set_StandPipePressure(v)
  354. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%PumpPressure
  355. use CChokeControlPanelVariables
  356. use SimulationVariables!, only: StandPipePressureChoke => data%Equipments%DataDisplayConsole%StandPipePressure
  357. implicit none
  358. real(8), intent(in) :: v
  359. data%Equipments%DataDisplayConsole%StandPipePressureGauge = v
  360. data%Equipments%DrillingWatch%PumpPressure = v
  361. data%Equipments%ChokeControlPanel%StandPipePressure = v
  362. data%Equipments%DataDisplayConsole%StandPipePressure = v
  363. end subroutine
  364. subroutine Set_RotaryRPMGauge(v)
  365. use SimulationVariables !@!, only: data%Equipments%DrillingWatch%RPM
  366. implicit none
  367. real(8), intent(in) :: v
  368. data%Equipments%DataDisplayConsole%RotaryRPMGauge = v
  369. data%Equipments%DrillingWatch%RPM = v
  370. data%Equipments%DataDisplayConsole%RTRPM = v
  371. ! call data%Equipments%DataDisplayConsole%OnRotaryRpmChange%RunAll(v)
  372. end subroutine
  373. subroutine Set_MP1SPMGauge(v)
  374. implicit none
  375. real(8), intent(in) :: v
  376. data%Equipments%DataDisplayConsole%MP1SPMGauge = v
  377. data%Equipments%DataDisplayConsole%MP1SPM = v
  378. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%Equipments%DataDisplayConsole%MP1SPMGauge, data%Equipments%DataDisplayConsole%MP2SPMGauge)
  379. # 413
  380. end subroutine
  381. subroutine Set_MP2SPMGauge(v)
  382. implicit none
  383. real(8), intent(in) :: v
  384. data%Equipments%DataDisplayConsole%MP2SPMGauge = v
  385. data%Equipments%DataDisplayConsole%MP2SPM = v
  386. !@data%State%unitySignals%(PumpsSpmChanges)) call PumpsSpmChanges(data%Equipments%DataDisplayConsole%MP1SPMGauge, data%Equipments%DataDisplayConsole%MP2SPMGauge)
  387. # 424
  388. end subroutine
  389. end module CDataDisplayConsole