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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. module CDataDisplayConsole
  2. use CDataDisplayConsoleVariables
  3. implicit none
  4. public
  5. contains
  6. !Portable
  7. subroutine SetTripAlarmLow(v)
  8. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripAlarmLow
  9. !DEC$ ATTRIBUTES ALIAS: 'SetTripAlarmLow' :: SetTripAlarmLow
  10. !use MudSystemVARIABLES, only: TripTank_MinVol_Allowded
  11. implicit none
  12. real*8, intent(in) :: v
  13. TripAlarmLow = v
  14. !TripTank_MinVol_Allowded = v
  15. #ifdef deb
  16. print*, 'TripAlarmLow=', TripAlarmLow
  17. #endif
  18. end subroutine
  19. subroutine SetTripAlarmHigh(v)
  20. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripAlarmHigh
  21. !DEC$ ATTRIBUTES ALIAS: 'SetTripAlarmHigh' :: SetTripAlarmHigh
  22. !use MudSystemVARIABLES, only: TripTank_MaxVol_Allowded
  23. implicit none
  24. real*8, intent(in) :: v
  25. TripAlarmHigh = v
  26. !TripTank_MaxVol_Allowded = v
  27. #ifdef deb
  28. print*, 'TripAlarmHigh=', TripAlarmHigh
  29. #endif
  30. end subroutine
  31. subroutine SetRetFlowAlarmLow(v)
  32. !DEC$ ATTRIBUTES DLLEXPORT :: SetRetFlowAlarmLow
  33. !DEC$ ATTRIBUTES ALIAS: 'SetRetFlowAlarmLow' :: SetRetFlowAlarmLow
  34. !use MudSystemVARIABLES, only: MFFI_MinPercent_Allowded
  35. implicit none
  36. real*8, intent(in) :: v
  37. RetFlowAlarmLow = v
  38. !MFFI_MinPercent_Allowded = v
  39. #ifdef deb
  40. print*, 'RetFlowAlarmLow=', RetFlowAlarmLow
  41. #endif
  42. end subroutine
  43. subroutine SetRetFlowAlarmHigh(v)
  44. !DEC$ ATTRIBUTES DLLEXPORT :: SetRetFlowAlarmHigh
  45. !DEC$ ATTRIBUTES ALIAS: 'SetRetFlowAlarmHigh' :: SetRetFlowAlarmHigh
  46. !use MudSystemVARIABLES, only: MFFI_MaxPercent_Allowded
  47. implicit none
  48. real*8, intent(in) :: v
  49. RetFlowAlarmHigh = v
  50. !MFFI_MaxPercent_Allowded = v
  51. #ifdef deb
  52. print*, 'RetFlowAlarmHigh=', RetFlowAlarmHigh
  53. #endif
  54. end subroutine
  55. subroutine SetPitAlarmLow(v)
  56. !DEC$ ATTRIBUTES DLLEXPORT :: SetPitAlarmLow
  57. !DEC$ ATTRIBUTES ALIAS: 'SetPitAlarmLow' :: SetPitAlarmLow
  58. implicit none
  59. real*8, intent(in) :: v
  60. PitAlarmLow = v
  61. !call Log_4('PitAlarmLow=', PitAlarmLow)
  62. #ifdef deb
  63. print*, 'PitAlarmLow=', PitAlarmLow
  64. #endif
  65. end subroutine
  66. subroutine SetPitAlarmHigh(v)
  67. !DEC$ ATTRIBUTES DLLEXPORT :: SetPitAlarmHigh
  68. !DEC$ ATTRIBUTES ALIAS: 'SetPitAlarmHigh' :: SetPitAlarmHigh
  69. implicit none
  70. real*8, intent(in) :: v
  71. PitAlarmHigh = v
  72. !call Log_4('PitAlarmHigh=', PitAlarmHigh)
  73. #ifdef deb
  74. print*, 'PitAlarmHigh=', PitAlarmHigh
  75. #endif
  76. end subroutine
  77. ! Input routines
  78. subroutine SetTripTankSetAlarmLow(v)
  79. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankSetAlarmLow
  80. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankSetAlarmLow' :: SetTripTankSetAlarmLow
  81. implicit none
  82. real*8, intent(in) :: v
  83. TripTankSetAlarmLow = v
  84. #ifdef deb
  85. print*, 'TripTankSetAlarmLow=', TripTankSetAlarmLow
  86. #endif
  87. end subroutine
  88. subroutine SetTripTankSetAlarmHigh(v)
  89. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankSetAlarmHigh
  90. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankSetAlarmHigh' :: SetTripTankSetAlarmHigh
  91. implicit none
  92. real*8, intent(in) :: v
  93. TripTankSetAlarmHigh = v
  94. #ifdef deb
  95. print*, 'TripTankSetAlarmHigh=', TripTankSetAlarmHigh
  96. #endif
  97. end subroutine
  98. subroutine SetTripTankSetAlarmSwitch(v)
  99. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankSetAlarmSwitch
  100. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankSetAlarmSwitch' :: SetTripTankSetAlarmSwitch
  101. implicit none
  102. integer, intent(in) :: v
  103. TripTankSetAlarmSwitch = v
  104. #ifdef deb
  105. print*, 'TripTankSetAlarmSwitch=', TripTankSetAlarmSwitch
  106. #endif
  107. end subroutine
  108. subroutine SetTripTankPowerSwitch(v)
  109. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankPowerSwitch
  110. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankPowerSwitch' :: SetTripTankPowerSwitch
  111. use CTanksVariables, only: Set_ManualPumpPower
  112. implicit none
  113. logical, intent(in) :: v
  114. TripTankPowerSwitch = v
  115. if(TripTankPowerSwitch) call Set_ManualPumpPower(TripTankPumpSwitch)
  116. #ifdef deb
  117. print*, 'TripTankPowerSwitch=', TripTankPowerSwitch
  118. #endif
  119. end subroutine
  120. subroutine SetTripTankPumpSwitch(v)
  121. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankPumpSwitch
  122. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankPumpSwitch' :: SetTripTankPumpSwitch
  123. use CTanksVariables, only: Set_ManualPumpPower
  124. implicit none
  125. logical, intent(in) :: v
  126. TripTankPumpSwitch = v
  127. if(TripTankPowerSwitch) call Set_ManualPumpPower(TripTankPumpSwitch)
  128. #ifdef deb
  129. print*, 'TripTankPumpSwitch=', TripTankPumpSwitch
  130. #endif
  131. end subroutine
  132. subroutine SetTripTankHornSwitch(v)
  133. !DEC$ ATTRIBUTES DLLEXPORT :: SetTripTankHornSwitch
  134. !DEC$ ATTRIBUTES ALIAS: 'SetTripTankHornSwitch' :: SetTripTankHornSwitch
  135. implicit none
  136. logical, intent(in) :: v
  137. TripTankHornSwitch = v
  138. #ifdef deb
  139. print*, 'TripTankHornSwitch=', TripTankHornSwitch
  140. #endif
  141. end subroutine
  142. subroutine SetAcidGasDetectionHornSwitch(v)
  143. !DEC$ ATTRIBUTES DLLEXPORT :: SetAcidGasDetectionHornSwitch
  144. !DEC$ ATTRIBUTES ALIAS: 'SetAcidGasDetectionHornSwitch' :: SetAcidGasDetectionHornSwitch
  145. implicit none
  146. logical, intent(in) :: v
  147. AcidGasDetectionHornSwitch = v
  148. #ifdef deb
  149. print*, 'AcidGasDetectionHornSwitch=', AcidGasDetectionHornSwitch
  150. #endif
  151. end subroutine
  152. subroutine SetTotalStrokeCounterResetSwitch(v)
  153. !DEC$ ATTRIBUTES DLLEXPORT :: SetTotalStrokeCounterResetSwitch
  154. !DEC$ ATTRIBUTES ALIAS: 'SetTotalStrokeCounterResetSwitch' :: SetTotalStrokeCounterResetSwitch
  155. implicit none
  156. logical, intent(in) :: v
  157. TotalStrokeCounterResetSwitch = v
  158. #ifdef deb
  159. print*, 'TotalStrokeCounterResetSwitch=', TotalStrokeCounterResetSwitch
  160. #endif
  161. end subroutine
  162. subroutine SetDrillingTrippingSelectorSwitch(v)
  163. !DEC$ ATTRIBUTES DLLEXPORT :: SetDrillingTrippingSelectorSwitch
  164. !DEC$ ATTRIBUTES ALIAS: 'SetDrillingTrippingSelectorSwitch' :: SetDrillingTrippingSelectorSwitch
  165. use CCommonVariables
  166. implicit none
  167. logical, intent(in) :: v
  168. DrillingTrippingSelectorSwitch = v
  169. DrillWatchOperationMode = v
  170. #ifdef deb
  171. print*, 'DrillingTrippingSelectorSwitch=', DrillingTrippingSelectorSwitch
  172. #endif
  173. end subroutine
  174. subroutine SetMVTSetAlarmLowKnob(v)
  175. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTSetAlarmLowKnob
  176. !DEC$ ATTRIBUTES ALIAS: 'SetMVTSetAlarmLowKnob' :: SetMVTSetAlarmLowKnob
  177. implicit none
  178. real*8, intent(in) :: v
  179. MVTSetAlarmLowKnob = v
  180. #ifdef deb
  181. print*, 'MVTSetAlarmLowKnob=', MVTSetAlarmLowKnob
  182. #endif
  183. end subroutine
  184. subroutine SetMVTSetAlarmHighKnob(v)
  185. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTSetAlarmHighKnob
  186. !DEC$ ATTRIBUTES ALIAS: 'SetMVTSetAlarmHighKnob' :: SetMVTSetAlarmHighKnob
  187. implicit none
  188. real*8, intent(in) :: v
  189. MVTSetAlarmHighKnob = v
  190. #ifdef deb
  191. print*, 'MVTSetAlarmHighKnob=', MVTSetAlarmHighKnob
  192. #endif
  193. end subroutine
  194. subroutine SetMVTSetAlarmSwitch(v)
  195. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTSetAlarmSwitch
  196. !DEC$ ATTRIBUTES ALIAS: 'SetMVTSetAlarmSwitch' :: SetMVTSetAlarmSwitch
  197. implicit none
  198. integer, intent(in) :: v
  199. MVTSetAlarmSwitch = v
  200. #ifdef deb
  201. print*, 'MVTSetAlarmSwitch=', MVTSetAlarmSwitch
  202. #endif
  203. end subroutine
  204. subroutine SetMudTank1Switch(v)
  205. !DEC$ ATTRIBUTES DLLEXPORT :: SetMudTank1Switch
  206. !DEC$ ATTRIBUTES ALIAS: 'SetMudTank1Switch' :: SetMudTank1Switch
  207. implicit none
  208. logical, intent(in) :: v
  209. MudTank1Switch = v
  210. #ifdef deb
  211. print*, 'MudTank1Switch=', MudTank1Switch
  212. #endif
  213. end subroutine
  214. subroutine SetMudTank2Switch(v)
  215. !DEC$ ATTRIBUTES DLLEXPORT :: SetMudTank2Switch
  216. !DEC$ ATTRIBUTES ALIAS: 'SetMudTank2Switch' :: SetMudTank2Switch
  217. implicit none
  218. logical, intent(in) :: v
  219. MudTank2Switch = v
  220. #ifdef deb
  221. print*, 'MudTank2Switch=', MudTank2Switch
  222. #endif
  223. end subroutine
  224. subroutine SetMudTank3Switch(v)
  225. !DEC$ ATTRIBUTES DLLEXPORT :: SetMudTank3Switch
  226. !DEC$ ATTRIBUTES ALIAS: 'SetMudTank3Switch' :: SetMudTank3Switch
  227. implicit none
  228. logical, intent(in) :: v
  229. MudTank3Switch = v
  230. #ifdef deb
  231. print*, 'MudTank3Switch=', MudTank3Switch
  232. #endif
  233. end subroutine
  234. subroutine SetMudTank4Switch(v)
  235. !DEC$ ATTRIBUTES DLLEXPORT :: SetMudTank4Switch
  236. !DEC$ ATTRIBUTES ALIAS: 'SetMudTank4Switch' :: SetMudTank4Switch
  237. implicit none
  238. logical, intent(in) :: v
  239. MudTank4Switch = v
  240. #ifdef deb
  241. print*, 'MudTank4Switch=', MudTank4Switch
  242. #endif
  243. end subroutine
  244. subroutine SetMVTFineKnob(v)
  245. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTFineKnob
  246. !DEC$ ATTRIBUTES ALIAS: 'SetMVTFineKnob' :: SetMVTFineKnob
  247. implicit none
  248. real*8, intent(in) :: v
  249. MVTFineKnob = v
  250. #ifdef deb
  251. print*, 'MVTFineKnob=', MVTFineKnob
  252. #endif
  253. end subroutine
  254. subroutine SetMVTCoarseKnob(v)
  255. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTCoarseKnob
  256. !DEC$ ATTRIBUTES ALIAS: 'SetMVTCoarseKnob' :: SetMVTCoarseKnob
  257. implicit none
  258. real*8, intent(in) :: v
  259. MVTCoarseKnob = v
  260. #ifdef deb
  261. print*, 'MVTCoarseKnob=', MVTCoarseKnob
  262. #endif
  263. end subroutine
  264. subroutine SetMVTHornSwitch(v)
  265. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTHornSwitch
  266. !DEC$ ATTRIBUTES ALIAS: 'SetMVTHornSwitch' :: SetMVTHornSwitch
  267. implicit none
  268. logical, intent(in) :: v
  269. MVTHornSwitch = v
  270. #ifdef deb
  271. print*, 'MVTHornSwitch=', MVTHornSwitch
  272. #endif
  273. end subroutine
  274. subroutine SetMVTDeviationTripSelectionSwitch(v)
  275. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTDeviationTripSelectionSwitch
  276. !DEC$ ATTRIBUTES ALIAS: 'SetMVTDeviationTripSelectionSwitch' :: SetMVTDeviationTripSelectionSwitch
  277. implicit none
  278. logical, intent(in) :: v
  279. MVTDeviationTripSelectionSwitch = v
  280. #ifdef deb
  281. print*, 'MVTDeviationTripSelectionSwitch=', MVTDeviationTripSelectionSwitch
  282. #endif
  283. end subroutine
  284. subroutine SetMVTPowerSwitch(v)
  285. !DEC$ ATTRIBUTES DLLEXPORT :: SetMVTPowerSwitch
  286. !DEC$ ATTRIBUTES ALIAS: 'SetMVTPowerSwitch' :: SetMVTPowerSwitch
  287. implicit none
  288. logical, intent(in) :: v
  289. MVTPowerSwitch = v
  290. #ifdef deb
  291. print*, 'MVTPowerSwitch=', MVTPowerSwitch
  292. #endif
  293. end subroutine
  294. subroutine SetMFFIResetTotalStrokes(v)
  295. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIResetTotalStrokes
  296. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIResetTotalStrokes' :: SetMFFIResetTotalStrokes
  297. implicit none
  298. logical, intent(in) :: v
  299. MFFIResetTotalStrokes = v
  300. #ifdef deb
  301. print*, 'MFFIResetTotalStrokes=', MFFIResetTotalStrokes
  302. #endif
  303. end subroutine
  304. subroutine SetMFFIResetFillCounter(v)
  305. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIResetFillCounter
  306. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIResetFillCounter' :: SetMFFIResetFillCounter
  307. implicit none
  308. logical, intent(in) :: v
  309. MFFIResetFillCounter = v
  310. #ifdef deb
  311. print*, 'MFFIResetFillCounter=', MFFIResetFillCounter
  312. #endif
  313. end subroutine
  314. subroutine SetMFFIPumpSelectorSwitch(v)
  315. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIPumpSelectorSwitch
  316. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIPumpSelectorSwitch' :: SetMFFIPumpSelectorSwitch
  317. implicit none
  318. integer, intent(in) :: v
  319. MFFIPumpSelectorSwitch = v
  320. #ifdef deb
  321. print*, 'MFFIPumpSelectorSwitch=', MFFIPumpSelectorSwitch
  322. #endif
  323. end subroutine
  324. subroutine SetMFFIFillSPMSelectorSwitch(v)
  325. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIFillSPMSelectorSwitch
  326. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIFillSPMSelectorSwitch' :: SetMFFIFillSPMSelectorSwitch
  327. implicit none
  328. logical, intent(in) :: v
  329. MFFIFillSPMSelectorSwitch = v
  330. #ifdef deb
  331. print*, 'MFFIFillSPMSelectorSwitch=', MFFIFillSPMSelectorSwitch
  332. #endif
  333. end subroutine
  334. subroutine SetMFFISetAlarmLowKnob(v)
  335. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFISetAlarmLowKnob
  336. !DEC$ ATTRIBUTES ALIAS: 'SetMFFISetAlarmLowKnob' :: SetMFFISetAlarmLowKnob
  337. implicit none
  338. real*8, intent(in) :: v
  339. MFFISetAlarmLowKnob = v
  340. #ifdef deb
  341. print*, 'MFFISetAlarmLowKnob=', MFFISetAlarmLowKnob
  342. #endif
  343. end subroutine
  344. subroutine SetMFFISetAlarmHighKnob(v)
  345. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFISetAlarmHighKnob
  346. !DEC$ ATTRIBUTES ALIAS: 'SetMFFISetAlarmHighKnob' :: SetMFFISetAlarmHighKnob
  347. implicit none
  348. real*8, intent(in) :: v
  349. MFFISetAlarmHighKnob = v
  350. #ifdef deb
  351. print*, 'MFFISetAlarmHighKnob=', MFFISetAlarmHighKnob
  352. #endif
  353. end subroutine
  354. subroutine SetMFFISetAlarmSwitch(v)
  355. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFISetAlarmSwitch
  356. !DEC$ ATTRIBUTES ALIAS: 'SetMFFISetAlarmSwitch' :: SetMFFISetAlarmSwitch
  357. implicit none
  358. integer, intent(in) :: v
  359. MFFISetAlarmSwitch = v
  360. #ifdef deb
  361. print*, 'MFFISetAlarmSwitch=', MFFISetAlarmSwitch
  362. #endif
  363. end subroutine
  364. subroutine SetMFFIPowerSwitch(v)
  365. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIPowerSwitch
  366. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIPowerSwitch' :: SetMFFIPowerSwitch
  367. implicit none
  368. logical, intent(in) :: v
  369. MFFIPowerSwitch = v
  370. #ifdef deb
  371. print*, 'MFFIPowerSwitch=', MFFIPowerSwitch
  372. #endif
  373. end subroutine
  374. subroutine SetMFFIHornSwitch(v)
  375. !DEC$ ATTRIBUTES DLLEXPORT :: SetMFFIHornSwitch
  376. !DEC$ ATTRIBUTES ALIAS: 'SetMFFIHornSwitch' :: SetMFFIHornSwitch
  377. implicit none
  378. logical, intent(in) :: v
  379. MFFIHornSwitch = v
  380. #ifdef deb
  381. print*, 'MFFIHornSwitch=', MFFIHornSwitch
  382. #endif
  383. end subroutine
  384. subroutine SetTotalWellDepth(v)
  385. !DEC$ ATTRIBUTES DLLEXPORT :: SetTotalWellDepth
  386. !DEC$ ATTRIBUTES ALIAS: 'SetTotalWellDepth' :: SetTotalWellDepth
  387. implicit none
  388. real(8), intent(in) :: v
  389. call Set_TotalDepth(v)
  390. #ifdef deb
  391. print*, 'TotalWellDepth=', v
  392. #endif
  393. end subroutine
  394. subroutine SetResetWob(v)
  395. !DEC$ ATTRIBUTES DLLEXPORT :: SetResetWob
  396. !DEC$ ATTRIBUTES ALIAS: 'SetResetWob' :: SetResetWob
  397. implicit none
  398. logical, intent(in) :: v
  399. ResetWob = v
  400. #ifdef deb
  401. print*, 'ResetWob=', ResetWob
  402. #endif
  403. end subroutine
  404. subroutine SetClutch(v)
  405. !DEC$ ATTRIBUTES DLLEXPORT :: SetClutch
  406. !DEC$ ATTRIBUTES ALIAS: 'SetClutch' :: SetClutch
  407. implicit none
  408. logical, intent(in) :: v
  409. Clutch = v
  410. #ifdef deb
  411. print*, 'Clutch=', Clutch
  412. #endif
  413. end subroutine
  414. ! Output routines
  415. real(8) function GetWOBPointer()
  416. !DEC$ ATTRIBUTES DLLEXPORT :: GetWOBPointer
  417. !DEC$ ATTRIBUTES ALIAS: 'GetWOBPointer' :: GetWOBPointer
  418. implicit none
  419. GetWOBPointer = WOBPointer
  420. end function
  421. real(8) function GetHookLoadPointer()
  422. !DEC$ ATTRIBUTES DLLEXPORT :: GetHookLoadPointer
  423. !DEC$ ATTRIBUTES ALIAS: 'GetHookLoadPointer' :: GetHookLoadPointer
  424. implicit none
  425. GetHookLoadPointer = HookLoadPointer
  426. end function
  427. real(8) function GetTripTankGauge()
  428. !DEC$ ATTRIBUTES DLLEXPORT :: GetTripTankGauge
  429. !DEC$ ATTRIBUTES ALIAS: 'GetTripTankGauge' :: GetTripTankGauge
  430. implicit none
  431. GetTripTankGauge = TripTankGauge / 42.0
  432. !GetTripTankGauge = 23
  433. end function
  434. integer function GetTripTankAlarmLED()
  435. !DEC$ ATTRIBUTES DLLEXPORT :: GetTripTankAlarmLED
  436. !DEC$ ATTRIBUTES ALIAS: 'GetTripTankAlarmLED' :: GetTripTankAlarmLED
  437. implicit none
  438. GetTripTankAlarmLED = TripTankAlarmLED
  439. !GetTripTankAlarmLED = 1
  440. end function
  441. integer function GetTripTankPumpLED()
  442. !DEC$ ATTRIBUTES DLLEXPORT :: GetTripTankPumpLED
  443. !DEC$ ATTRIBUTES ALIAS: 'GetTripTankPumpLED' :: GetTripTankPumpLED
  444. implicit none
  445. GetTripTankPumpLED = TripTankPumpLED
  446. end function
  447. real(8) function GetStandPipePressureGauge()
  448. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandPipePressureGauge
  449. !DEC$ ATTRIBUTES ALIAS: 'GetStandPipePressureGauge' :: GetStandPipePressureGauge
  450. implicit none
  451. GetStandPipePressureGauge = StandPipePressureGauge
  452. end function
  453. real(8) function GetCasingPressureGauge()
  454. !DEC$ ATTRIBUTES DLLEXPORT :: GetCasingPressureGauge
  455. !DEC$ ATTRIBUTES ALIAS: 'GetCasingPressureGauge' :: GetCasingPressureGauge
  456. implicit none
  457. GetCasingPressureGauge = CasingPressureGauge
  458. end function
  459. real(8) function GetMP1SPMGauge()
  460. !DEC$ ATTRIBUTES DLLEXPORT :: GetMP1SPMGauge
  461. !DEC$ ATTRIBUTES ALIAS: 'GetMP1SPMGauge' :: GetMP1SPMGauge
  462. implicit none
  463. GetMP1SPMGauge = MP1SPMGauge
  464. end function
  465. real(8) function GetMP2SPMGauge()
  466. !DEC$ ATTRIBUTES DLLEXPORT :: GetMP2SPMGauge
  467. !DEC$ ATTRIBUTES ALIAS: 'GetMP2SPMGauge' :: GetMP2SPMGauge
  468. implicit none
  469. GetMP2SPMGauge = MP2SPMGauge
  470. end function
  471. real(8) function GetReturnLineTempGauge()
  472. !DEC$ ATTRIBUTES DLLEXPORT :: GetReturnLineTempGauge
  473. !DEC$ ATTRIBUTES ALIAS: 'GetReturnLineTempGauge' :: GetReturnLineTempGauge
  474. implicit none
  475. GetReturnLineTempGauge = ReturnLineTempGauge
  476. end function
  477. real(8) function GetRotaryTorqueGauge()
  478. !DEC$ ATTRIBUTES DLLEXPORT :: GetRotaryTorqueGauge
  479. !DEC$ ATTRIBUTES ALIAS: 'GetRotaryTorqueGauge' :: GetRotaryTorqueGauge
  480. implicit none
  481. GetRotaryTorqueGauge = RotaryTorqueGauge
  482. end function
  483. real(8) function GetRotaryRPMGauge()
  484. !DEC$ ATTRIBUTES DLLEXPORT :: GetRotaryRPMGauge
  485. !DEC$ ATTRIBUTES ALIAS: 'GetRotaryRPMGauge' :: GetRotaryRPMGauge
  486. implicit none
  487. GetRotaryRPMGauge = RotaryRPMGauge
  488. end function
  489. integer function GetAcidGasDetectionLED()
  490. !DEC$ ATTRIBUTES DLLEXPORT :: GetAcidGasDetectionLED
  491. !DEC$ ATTRIBUTES ALIAS: 'GetAcidGasDetectionLED' :: GetAcidGasDetectionLED
  492. implicit none
  493. GetAcidGasDetectionLED = AcidGasDetectionLED
  494. end function
  495. real(8) function GetTotalStrokeCounter()
  496. !DEC$ ATTRIBUTES DLLEXPORT :: GetTotalStrokeCounter
  497. !DEC$ ATTRIBUTES ALIAS: 'GetTotalStrokeCounter' :: GetTotalStrokeCounter
  498. implicit none
  499. GetTotalStrokeCounter = TotalStrokeCounter
  500. !GetTotalStrokeCounter = 456.9
  501. end function
  502. real(8) function GetPitGainLossGauge()
  503. !DEC$ ATTRIBUTES DLLEXPORT :: GetPitGainLossGauge
  504. !DEC$ ATTRIBUTES ALIAS: 'GetPitGainLossGauge' :: GetPitGainLossGauge
  505. implicit none
  506. GetPitGainLossGauge = PitGainLossGauge
  507. !GetPitGainLossGauge = 44
  508. end function
  509. real(8) function GetMudTanksVolumeGauge()
  510. !DEC$ ATTRIBUTES DLLEXPORT :: GetMudTanksVolumeGauge
  511. !DEC$ ATTRIBUTES ALIAS: 'GetMudTanksVolumeGauge' :: GetMudTanksVolumeGauge
  512. implicit none
  513. GetMudTanksVolumeGauge = MudTanksVolumeGauge / 42.0
  514. end function
  515. integer function GetMVTAlarmLED()
  516. !DEC$ ATTRIBUTES DLLEXPORT :: GetMVTAlarmLED
  517. !DEC$ ATTRIBUTES ALIAS: 'GetMVTAlarmLED' :: GetMVTAlarmLED
  518. implicit none
  519. GetMVTAlarmLED = MVTAlarmLED
  520. !GetMVTAlarmLED = 1
  521. end function
  522. real(8) function GetReturnMudFlowGauge()
  523. !DEC$ ATTRIBUTES DLLEXPORT :: GetReturnMudFlowGauge
  524. !DEC$ ATTRIBUTES ALIAS: 'GetReturnMudFlowGauge' :: GetReturnMudFlowGauge
  525. implicit none
  526. GetReturnMudFlowGauge = ReturnMudFlowGauge
  527. !GetReturnMudFlowGauge = 12
  528. end function
  529. real(8) function GetFillStrokeCounter()
  530. !DEC$ ATTRIBUTES DLLEXPORT :: GetFillStrokeCounter
  531. !DEC$ ATTRIBUTES ALIAS: 'GetFillStrokeCounter' :: GetFillStrokeCounter
  532. implicit none
  533. GetFillStrokeCounter = FillStrokeCounter
  534. end function
  535. real(8) function GetMFFITotalStrokeCounter()
  536. !DEC$ ATTRIBUTES DLLEXPORT :: GetMFFITotalStrokeCounter
  537. !DEC$ ATTRIBUTES ALIAS: 'GetMFFITotalStrokeCounter' :: GetMFFITotalStrokeCounter
  538. implicit none
  539. GetMFFITotalStrokeCounter = MFFITotalStrokeCounter
  540. end function
  541. integer function GetMFFIAlarmLED()
  542. !DEC$ ATTRIBUTES DLLEXPORT :: GetMFFIAlarmLED
  543. !DEC$ ATTRIBUTES ALIAS: 'GetMFFIAlarmLED' :: GetMFFIAlarmLED
  544. implicit none
  545. GetMFFIAlarmLED = MFFIAlarmLED
  546. !GetMFFIAlarmLED = 1
  547. end function
  548. integer function GetMFFIPumpLED()
  549. !DEC$ ATTRIBUTES DLLEXPORT :: GetMFFIPumpLED
  550. !DEC$ ATTRIBUTES ALIAS: 'GetMFFIPumpLED' :: GetMFFIPumpLED
  551. implicit none
  552. GetMFFIPumpLED = MFFIPumpLED
  553. end function
  554. real(8) function GetTotalWellDepth()
  555. !DEC$ ATTRIBUTES DLLEXPORT :: GetTotalWellDepth
  556. !DEC$ ATTRIBUTES ALIAS: 'GetTotalWellDepth' :: GetTotalWellDepth
  557. implicit none
  558. GetTotalWellDepth = TotalWellDepth
  559. end function
  560. real(8) function GetBitDepth()
  561. !DEC$ ATTRIBUTES DLLEXPORT :: GetBitDepth
  562. !DEC$ ATTRIBUTES ALIAS: 'GetBitDepth' :: GetBitDepth
  563. implicit none
  564. GetBitDepth = BitDepth
  565. end function
  566. real(8) function GetHookLoad()
  567. !DEC$ ATTRIBUTES DLLEXPORT :: GetHookLoad
  568. !DEC$ ATTRIBUTES ALIAS: 'GetHookLoad' :: GetHookLoad
  569. implicit none
  570. GetHookLoad = HookLoad
  571. end function
  572. real(8) function GetStandPipePressure2()
  573. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandPipePressure2
  574. !DEC$ ATTRIBUTES ALIAS: 'GetStandPipePressure2' :: GetStandPipePressure2
  575. implicit none
  576. GetStandPipePressure2 = StandPipePressure
  577. end function
  578. real(8) function GetCasingPressure2()
  579. !DEC$ ATTRIBUTES DLLEXPORT :: GetCasingPressure2
  580. !DEC$ ATTRIBUTES ALIAS: 'GetCasingPressure2' :: GetCasingPressure2
  581. implicit none
  582. GetCasingPressure2 = CasingPressure
  583. end function
  584. real(8) function GetMP1SPM()
  585. !DEC$ ATTRIBUTES DLLEXPORT :: GetMP1SPM
  586. !DEC$ ATTRIBUTES ALIAS: 'GetMP1SPM' :: GetMP1SPM
  587. implicit none
  588. GetMP1SPM = MP1SPM
  589. end function
  590. real(8) function GetMP2SPM()
  591. !DEC$ ATTRIBUTES DLLEXPORT :: GetMP2SPM
  592. !DEC$ ATTRIBUTES ALIAS: 'GetMP2SPM' :: GetMP2SPM
  593. implicit none
  594. GetMP2SPM = MP2SPM
  595. end function
  596. real(8) function GetRTTorque()
  597. !DEC$ ATTRIBUTES DLLEXPORT :: GetRTTorque
  598. !DEC$ ATTRIBUTES ALIAS: 'GetRTTorque' :: GetRTTorque
  599. implicit none
  600. GetRTTorque = RTTorque
  601. end function
  602. real(8) function GetRTRPM()
  603. !DEC$ ATTRIBUTES DLLEXPORT :: GetRTRPM
  604. !DEC$ ATTRIBUTES ALIAS: 'GetRTRPM' :: GetRTRPM
  605. implicit none
  606. GetRTRPM = RTRPM
  607. end function
  608. real(8) function GetWOP()
  609. !DEC$ ATTRIBUTES DLLEXPORT :: GetWOP
  610. !DEC$ ATTRIBUTES ALIAS: 'GetWOP' :: GetWOP
  611. implicit none
  612. GetWOP = WOP
  613. end function
  614. real(8) function GetROP()
  615. !DEC$ ATTRIBUTES DLLEXPORT :: GetROP
  616. !DEC$ ATTRIBUTES ALIAS: 'GetROP' :: GetROP
  617. implicit none
  618. GetROP = ROP
  619. end function
  620. real(8) function GetMudWeightIn()
  621. !DEC$ ATTRIBUTES DLLEXPORT :: GetMudWeightIn
  622. !DEC$ ATTRIBUTES ALIAS: 'GetMudWeightIn' :: GetMudWeightIn
  623. implicit none
  624. GetMudWeightIn = MudWeightIn
  625. end function
  626. real(8) function GetMudWeightOut()
  627. !DEC$ ATTRIBUTES DLLEXPORT :: GetMudWeightOut
  628. !DEC$ ATTRIBUTES ALIAS: 'GetMudWeightOut' :: GetMudWeightOut
  629. implicit none
  630. GetMudWeightOut = MudWeightOut
  631. end function
  632. logical function GetBuzzer1()
  633. !DEC$ ATTRIBUTES DLLEXPORT :: GetBuzzer1
  634. !DEC$ ATTRIBUTES ALIAS: 'GetBuzzer1' :: GetBuzzer1
  635. implicit none
  636. GetBuzzer1 = Buzzer1
  637. !GetBuzzer1 = .true.
  638. end function
  639. logical function GetBuzzer2()
  640. !DEC$ ATTRIBUTES DLLEXPORT :: GetBuzzer2
  641. !DEC$ ATTRIBUTES ALIAS: 'GetBuzzer2' :: GetBuzzer2
  642. implicit none
  643. GetBuzzer2 = Buzzer2
  644. !GetBuzzer2 = .true.
  645. end function
  646. logical function GetBuzzer3()
  647. !DEC$ ATTRIBUTES DLLEXPORT :: GetBuzzer3
  648. !DEC$ ATTRIBUTES ALIAS: 'GetBuzzer3' :: GetBuzzer3
  649. implicit none
  650. GetBuzzer3 = Buzzer3
  651. !GetBuzzer3 = .true.
  652. end function
  653. logical function GetBuzzer4()
  654. !DEC$ ATTRIBUTES DLLEXPORT :: GetBuzzer4
  655. !DEC$ ATTRIBUTES ALIAS: 'GetBuzzer4' :: GetBuzzer4
  656. implicit none
  657. GetBuzzer4 = Buzzer4
  658. !GetBuzzer4 = .true.
  659. end function
  660. !portable
  661. real(8) function GetPortWeightOnBit()
  662. !DEC$ ATTRIBUTES DLLEXPORT :: GetPortWeightOnBit
  663. !DEC$ ATTRIBUTES ALIAS: 'GetPortWeightOnBit' :: GetPortWeightOnBit
  664. implicit none
  665. GetPortWeightOnBit = PortWeightOnBit
  666. end function
  667. real(8) function GetPortHookLoad()
  668. !DEC$ ATTRIBUTES DLLEXPORT :: GetPortHookLoad
  669. !DEC$ ATTRIBUTES ALIAS: 'GetPortHookLoad' :: GetPortHookLoad
  670. implicit none
  671. GetPortHookLoad = PortHookLoad
  672. end function
  673. real(8) function GetPortCasingPressure()
  674. !DEC$ ATTRIBUTES DLLEXPORT :: GetPortCasingPressure
  675. !DEC$ ATTRIBUTES ALIAS: 'GetPortCasingPressure' :: GetPortCasingPressure
  676. implicit none
  677. GetPortCasingPressure = PortCasingPressure
  678. end function
  679. real(8) function GetPortPumpPressure()
  680. !DEC$ ATTRIBUTES DLLEXPORT :: GetPortPumpPressure
  681. !DEC$ ATTRIBUTES ALIAS: 'GetPortPumpPressure' :: GetPortPumpPressure
  682. implicit none
  683. GetPortPumpPressure = PortPumpPressure
  684. end function
  685. end module CDataDisplayConsole