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.
 
 
 
 
 
 

831 lines
26 KiB

  1. module TestOperationScenarios
  2. use CKellyConnectionEnumVariables
  3. use CElevatorConnectionEnumVariables
  4. use CCloseKellyCockLedNotificationVariables
  5. use CCloseSafetyValveLedNotificationVariables
  6. use CFillMouseHoleLedNotificationVariables
  7. use CIrIBopLedNotificationVariables
  8. use CIrSafetyValveLedNotificationVariables
  9. use CLatchLedNotificationVariables
  10. use COpenKellyCockLedNotificationVariables
  11. use COpenSafetyValveLedNotificationVariables
  12. use CSlipsNotificationVariables
  13. use CSwingLedNotificationVariables
  14. use CTongNotificationVariables
  15. use CUnlatchLedNotificationVariables
  16. use CInstallFillupHeadPermissionVariables
  17. use CInstallMudBucketPermissionVariables
  18. use CIrIbopPermissionVariables
  19. use CIrSafetyValvePermissionVariables
  20. use CRemoveFillupHeadPermissionVariables
  21. use CRemoveMudBucketPermissionVariables
  22. use CHookHeight
  23. use CIbopHeight
  24. use CNearFloorConnection
  25. use CSafetyValveHeight
  26. use CSlackOff
  27. use CStandRack
  28. use CStringPressure
  29. use CZeroStringSpeed
  30. use CUnityInputs
  31. !, only: &
  32. ! Get_ElevatorConnectionPossible, &
  33. ! Get_JointConnectionPossible, &
  34. ! Get_NearMonkeyBoardPosition, &
  35. ! Get_NearFloorPosition, &
  36. ! Get_SingleSetInMouseHole, &
  37. ! Get_SwingCenter, &
  38. ! Get_NewHookHeight
  39. use CUnityOutputs
  40. use CBucketEnumVariables
  41. use CElevatorEnumVariables
  42. use CHeadEnumVariables
  43. use CIbopEnumVariables
  44. use CKellyEnumVariables
  45. use CMouseHoleEnumVariables
  46. use COperationConditionEnumVariables
  47. use CSafetyValveEnumVariables
  48. use CSlipsEnumVariables
  49. use CSwingEnumVariables
  50. use CTongEnumVariables
  51. use CRigSizeVariables
  52. use CHoistingVariables
  53. use CFlowPipeDisconnectEnumVariables
  54. use CFlowKellyDisconnectEnumVariables
  55. use CStringUpdateVariables
  56. implicit none
  57. public
  58. contains
  59. integer function GetElevatorConnection()
  60. !DEC$ ATTRIBUTES DLLEXPORT :: GetElevatorConnection
  61. !DEC$ ATTRIBUTES ALIAS: 'GetElevatorConnection' :: GetElevatorConnection
  62. implicit none
  63. GetElevatorConnection = Get_ElevatorConnection()
  64. end function
  65. integer function GetKellyConnection()
  66. !DEC$ ATTRIBUTES DLLEXPORT :: GetKellyConnection
  67. !DEC$ ATTRIBUTES ALIAS: 'GetKellyConnection' :: GetKellyConnection
  68. implicit none
  69. GetKellyConnection = Get_KellyConnection()
  70. end function
  71. logical function GetCloseKellyCockLedU()
  72. !DEC$ ATTRIBUTES DLLEXPORT :: GetCloseKellyCockLedU
  73. !DEC$ ATTRIBUTES ALIAS: 'GetCloseKellyCockLedU' :: GetCloseKellyCockLedU
  74. implicit none
  75. GetCloseKellyCockLedU = Get_CloseKellyCockLed()
  76. end function
  77. logical function GetCloseSafetyValveLedU()
  78. !DEC$ ATTRIBUTES DLLEXPORT :: GetCloseSafetyValveLedU
  79. !DEC$ ATTRIBUTES ALIAS: 'GetCloseSafetyValveLedU' :: GetCloseSafetyValveLedU
  80. implicit none
  81. GetCloseSafetyValveLedU = Get_CloseSafetyValveLed()
  82. end function
  83. logical function GetFillMouseHoleLedU()
  84. !DEC$ ATTRIBUTES DLLEXPORT :: GetFillMouseHoleLedU
  85. !DEC$ ATTRIBUTES ALIAS: 'GetFillMouseHoleLedU' :: GetFillMouseHoleLedU
  86. implicit none
  87. GetFillMouseHoleLedU = Get_FillMouseHoleLed()
  88. end function
  89. logical function GetIrIBopLedU()
  90. !DEC$ ATTRIBUTES DLLEXPORT :: GetIrIBopLedU
  91. !DEC$ ATTRIBUTES ALIAS: 'GetIrIBopLedU' :: GetIrIBopLedU
  92. implicit none
  93. GetIrIBopLedU = Get_IrIBopLed()
  94. end function
  95. logical function GetIrSafetyValveLedU()
  96. !DEC$ ATTRIBUTES DLLEXPORT :: GetIrSafetyValveLedU
  97. !DEC$ ATTRIBUTES ALIAS: 'GetIrSafetyValveLedU' :: GetIrSafetyValveLedU
  98. implicit none
  99. GetIrSafetyValveLedU = Get_IrSafetyValveLed()
  100. end function
  101. logical function GetLatchLedU()
  102. !DEC$ ATTRIBUTES DLLEXPORT :: GetLatchLedU
  103. !DEC$ ATTRIBUTES ALIAS: 'GetLatchLedU' :: GetLatchLedU
  104. implicit none
  105. GetLatchLedU = Get_LatchLed()
  106. end function
  107. logical function GetOpenKellyCockLedU()
  108. !DEC$ ATTRIBUTES DLLEXPORT :: GetOpenKellyCockLedU
  109. !DEC$ ATTRIBUTES ALIAS: 'GetOpenKellyCockLedU' :: GetOpenKellyCockLedU
  110. implicit none
  111. GetOpenKellyCockLedU = Get_OpenKellyCockLed()
  112. end function
  113. logical function GetOpenSafetyValveLedU()
  114. !DEC$ ATTRIBUTES DLLEXPORT :: GetOpenSafetyValveLedU
  115. !DEC$ ATTRIBUTES ALIAS: 'GetOpenSafetyValveLedU' :: GetOpenSafetyValveLedU
  116. implicit none
  117. GetOpenSafetyValveLedU = Get_OpenSafetyValveLed()
  118. end function
  119. logical function GetSlipsNotification()
  120. !DEC$ ATTRIBUTES DLLEXPORT :: GetSlipsNotification
  121. !DEC$ ATTRIBUTES ALIAS: 'GetSlipsNotification' :: GetSlipsNotification
  122. implicit none
  123. GetSlipsNotification = Get_SlipsNotification()
  124. end function
  125. logical function GetSwingLedU()
  126. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwingLedU
  127. !DEC$ ATTRIBUTES ALIAS: 'GetSwingLedU' :: GetSwingLedU
  128. implicit none
  129. GetSwingLedU = Get_SwingLed()
  130. end function
  131. logical function GetTongNotification()
  132. !DEC$ ATTRIBUTES DLLEXPORT :: GetTongNotification
  133. !DEC$ ATTRIBUTES ALIAS: 'GetTongNotification' :: GetTongNotification
  134. implicit none
  135. GetTongNotification = Get_TongNotification()
  136. end function
  137. logical function GetUnlatchLed()
  138. !DEC$ ATTRIBUTES DLLEXPORT :: GetUnlatchLed
  139. !DEC$ ATTRIBUTES ALIAS: 'GetUnlatchLed' :: GetUnlatchLed
  140. implicit none
  141. GetUnlatchLed = Get_UnlatchLed()
  142. end function
  143. logical function GetInstallFillupHeadPermission()
  144. !DEC$ ATTRIBUTES DLLEXPORT :: GetInstallFillupHeadPermission
  145. !DEC$ ATTRIBUTES ALIAS: 'GetInstallFillupHeadPermission' :: GetInstallFillupHeadPermission
  146. implicit none
  147. GetInstallFillupHeadPermission = Get_InstallFillupHeadPermission()
  148. end function
  149. logical function GetInstallMudBucketPermission()
  150. !DEC$ ATTRIBUTES DLLEXPORT :: GetInstallMudBucketPermission
  151. !DEC$ ATTRIBUTES ALIAS: 'GetInstallMudBucketPermission' :: GetInstallMudBucketPermission
  152. implicit none
  153. GetInstallMudBucketPermission = Get_InstallMudBucketPermission()
  154. end function
  155. logical function GetIrIbopPermission()
  156. !DEC$ ATTRIBUTES DLLEXPORT :: GetIrIbopPermission
  157. !DEC$ ATTRIBUTES ALIAS: 'GetIrIbopPermission' :: GetIrIbopPermission
  158. implicit none
  159. GetIrIbopPermission = Get_IrIbopPermission()
  160. end function
  161. logical function GetIrSafetyValvePermission()
  162. !DEC$ ATTRIBUTES DLLEXPORT :: GetIrSafetyValvePermission
  163. !DEC$ ATTRIBUTES ALIAS: 'GetIrSafetyValvePermission' :: GetIrSafetyValvePermission
  164. implicit none
  165. GetIrSafetyValvePermission = Get_IrSafetyValvePermission()
  166. end function
  167. logical function GetRemoveFillupHeadPermission()
  168. !DEC$ ATTRIBUTES DLLEXPORT :: GetRemoveFillupHeadPermission
  169. !DEC$ ATTRIBUTES ALIAS: 'GetRemoveFillupHeadPermission' :: GetRemoveFillupHeadPermission
  170. implicit none
  171. GetRemoveFillupHeadPermission = Get_RemoveFillupHeadPermission()
  172. end function
  173. logical function GetRemoveMudBucketPermission()
  174. !DEC$ ATTRIBUTES DLLEXPORT :: GetRemoveMudBucketPermission
  175. !DEC$ ATTRIBUTES ALIAS: 'GetRemoveMudBucketPermission' :: GetRemoveMudBucketPermission
  176. implicit none
  177. GetRemoveMudBucketPermission = Get_RemoveMudBucketPermission()
  178. end function
  179. real function GetHookHeightU()
  180. !DEC$ ATTRIBUTES DLLEXPORT :: GetHookHeightU
  181. !DEC$ ATTRIBUTES ALIAS: 'GetHookHeightU' :: GetHookHeightU
  182. implicit none
  183. GetHookHeightU = Get_HookHeight()
  184. end function
  185. real(8) function GetIbopHeight()
  186. !DEC$ ATTRIBUTES DLLEXPORT :: GetIbopHeight
  187. !DEC$ ATTRIBUTES ALIAS: 'GetIbopHeight' :: GetIbopHeight
  188. implicit none
  189. GetIbopHeight = Get_IbopHeight()
  190. end function
  191. real(8) function GetNearFloorConnection()
  192. !DEC$ ATTRIBUTES DLLEXPORT :: GetNearFloorConnection
  193. !DEC$ ATTRIBUTES ALIAS: 'GetNearFloorConnection' :: GetNearFloorConnection
  194. implicit none
  195. GetNearFloorConnection = Get_NearFloorConnection()
  196. end function
  197. real(8) function GetSafetyValveHeight()
  198. !DEC$ ATTRIBUTES DLLEXPORT :: GetSafetyValveHeight
  199. !DEC$ ATTRIBUTES ALIAS: 'GetSafetyValveHeight' :: GetSafetyValveHeight
  200. implicit none
  201. GetSafetyValveHeight = Get_SafetyValveHeight()
  202. end function
  203. logical function GetSlackOff()
  204. !DEC$ ATTRIBUTES DLLEXPORT :: GetSlackOff
  205. !DEC$ ATTRIBUTES ALIAS: 'GetSlackOff' :: GetSlackOff
  206. implicit none
  207. GetSlackOff = Get_SlackOff()
  208. end function
  209. integer function GetStandRackU()
  210. !DEC$ ATTRIBUTES DLLEXPORT :: GetStandRackU
  211. !DEC$ ATTRIBUTES ALIAS: 'GetStandRackU' :: GetStandRackU
  212. implicit none
  213. GetStandRackU = Get_StandRack()
  214. end function
  215. real(8) function GetRotaryRpmU()
  216. !DEC$ ATTRIBUTES DLLEXPORT :: GetRotaryRpmU
  217. !DEC$ ATTRIBUTES ALIAS: 'GetRotaryRpmU' :: GetRotaryRpmU
  218. implicit none
  219. GetRotaryRpmU = GetRotaryRpm()
  220. end function
  221. real(8) function GetStringPressure()
  222. !DEC$ ATTRIBUTES DLLEXPORT :: GetStringPressure
  223. !DEC$ ATTRIBUTES ALIAS: 'GetStringPressure' :: GetStringPressure
  224. implicit none
  225. GetStringPressure = Get_StringPressure()
  226. end function
  227. logical function GetZeroStringSpeed()
  228. !DEC$ ATTRIBUTES DLLEXPORT :: GetZeroStringSpeed
  229. !DEC$ ATTRIBUTES ALIAS: 'GetZeroStringSpeed' :: GetZeroStringSpeed
  230. implicit none
  231. GetZeroStringSpeed = Get_ZeroStringSpeed()
  232. end function
  233. real(8) function GetFlowRateU()
  234. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlowRateU
  235. !DEC$ ATTRIBUTES ALIAS: 'GetFlowRateU' :: GetFlowRateU
  236. implicit none
  237. GetFlowRateU = GetFlowRate()
  238. end function
  239. real(8) function GetPedalU()
  240. !DEC$ ATTRIBUTES DLLEXPORT :: GetPedalU
  241. !DEC$ ATTRIBUTES ALIAS: 'GetPedalU' :: GetPedalU
  242. implicit none
  243. GetPedalU = GetPedal()
  244. end function
  245. real(8) function GetFloorHeightU()
  246. !DEC$ ATTRIBUTES DLLEXPORT :: GetFloorHeightU
  247. !DEC$ ATTRIBUTES ALIAS: 'GetFloorHeightU' :: GetFloorHeightU
  248. implicit none
  249. GetFloorHeightU = RigFloorHeight
  250. end function
  251. real(8) function GetCrownHeightU()
  252. !DEC$ ATTRIBUTES DLLEXPORT :: GetCrownHeightU
  253. !DEC$ ATTRIBUTES ALIAS: 'GetCrownHeightU' :: GetCrownHeightU
  254. implicit none
  255. GetCrownHeightU = CrownHeight
  256. end function
  257. real(8) function GetKellyHoseVibrationRateU()
  258. !DEC$ ATTRIBUTES DLLEXPORT :: GetKellyHoseVibrationRateU
  259. !DEC$ ATTRIBUTES ALIAS: 'GetKellyHoseVibrationRateU' :: GetKellyHoseVibrationRateU
  260. implicit none
  261. GetKellyHoseVibrationRateU = GetKellyHoseVibrationRate()
  262. end function
  263. integer function GetDriveTypeU()
  264. !DEC$ ATTRIBUTES DLLEXPORT :: GetDriveTypeU
  265. !DEC$ ATTRIBUTES ALIAS: 'GetDriveTypeU' :: GetDriveTypeU
  266. implicit none
  267. GetDriveTypeU = DriveType
  268. end function
  269. logical function GetElevatorConnectionPossibility()
  270. !DEC$ ATTRIBUTES DLLEXPORT :: GetElevatorConnectionPossibility
  271. !DEC$ ATTRIBUTES ALIAS: 'GetElevatorConnectionPossibility' :: GetElevatorConnectionPossibility
  272. implicit none
  273. GetElevatorConnectionPossibility = Get_ElevatorConnectionPossible()
  274. end function
  275. logical function GetJointConnectionPossibility()
  276. !DEC$ ATTRIBUTES DLLEXPORT :: GetJointConnectionPossibility
  277. !DEC$ ATTRIBUTES ALIAS: 'GetJointConnectionPossibility' :: GetJointConnectionPossibility
  278. implicit none
  279. GetJointConnectionPossibility = Get_JointConnectionPossible()
  280. end function
  281. logical function GetElevatorPickup()
  282. !DEC$ ATTRIBUTES DLLEXPORT :: GetElevatorPickup
  283. !DEC$ ATTRIBUTES ALIAS: 'GetElevatorPickup' :: GetElevatorPickup
  284. implicit none
  285. GetElevatorPickup = Get_ElevatorPickup()
  286. end function
  287. logical function GetNearFloorPosition()
  288. !DEC$ ATTRIBUTES DLLEXPORT :: GetNearFloorPosition
  289. !DEC$ ATTRIBUTES ALIAS: 'GetNearFloorPosition' :: GetNearFloorPosition
  290. implicit none
  291. GetNearFloorPosition = Get_NearFloorPosition()
  292. end function
  293. logical function GetSingleSetInMouseHole()
  294. !DEC$ ATTRIBUTES DLLEXPORT :: GetSingleSetInMouseHole
  295. !DEC$ ATTRIBUTES ALIAS: 'GetSingleSetInMouseHole' :: GetSingleSetInMouseHole
  296. implicit none
  297. GetSingleSetInMouseHole = Get_SingleSetInMouseHole()
  298. end function
  299. logical function GetSwingCenter()
  300. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwingCenter
  301. !DEC$ ATTRIBUTES ALIAS: 'GetSwingCenter' :: GetSwingCenter
  302. implicit none
  303. !GetSwingCenter = Get_SwingCenter()
  304. GetSwingCenter = .false.
  305. end function
  306. integer function GetMudBucket()
  307. !DEC$ ATTRIBUTES DLLEXPORT :: GetMudBucket
  308. !DEC$ ATTRIBUTES ALIAS: 'GetMudBucket' :: GetMudBucket
  309. implicit none
  310. GetMudBucket = Get_MudBucket()
  311. end function
  312. integer function GetElevator()
  313. !DEC$ ATTRIBUTES DLLEXPORT :: GetElevator
  314. !DEC$ ATTRIBUTES ALIAS: 'GetElevator' :: GetElevator
  315. implicit none
  316. GetElevator = Get_Elevator()
  317. end function
  318. integer function GetFlow()
  319. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlow
  320. !DEC$ ATTRIBUTES ALIAS: 'GetFlow' :: GetFlow
  321. implicit none
  322. GetFlow = 0
  323. end function
  324. integer function GetFillupHead()
  325. !DEC$ ATTRIBUTES DLLEXPORT :: GetFillupHead
  326. !DEC$ ATTRIBUTES ALIAS: 'GetFillupHead' :: GetFillupHead
  327. implicit none
  328. GetFillupHead = Get_FillupHead()
  329. end function
  330. integer function GetIbop()
  331. !DEC$ ATTRIBUTES DLLEXPORT :: GetIbop
  332. !DEC$ ATTRIBUTES ALIAS: 'GetIbop' :: GetIbop
  333. implicit none
  334. GetIbop = Get_Ibop()
  335. end function
  336. integer function GetKelly()
  337. !DEC$ ATTRIBUTES DLLEXPORT :: GetKelly
  338. !DEC$ ATTRIBUTES ALIAS: 'GetKelly' :: GetKelly
  339. implicit none
  340. GetKelly = Get_Kelly()
  341. end function
  342. integer function GetMouseHole()
  343. !DEC$ ATTRIBUTES DLLEXPORT :: GetMouseHole
  344. !DEC$ ATTRIBUTES ALIAS: 'GetMouseHole' :: GetMouseHole
  345. implicit none
  346. GetMouseHole = Get_MouseHole()
  347. end function
  348. integer function GetOperationCondition()
  349. !DEC$ ATTRIBUTES DLLEXPORT :: GetOperationCondition
  350. !DEC$ ATTRIBUTES ALIAS: 'GetOperationCondition' :: GetOperationCondition
  351. implicit none
  352. GetOperationCondition = Get_OperationCondition()
  353. end function
  354. integer function GetSafetyValve()
  355. !DEC$ ATTRIBUTES DLLEXPORT :: GetSafetyValve
  356. !DEC$ ATTRIBUTES ALIAS: 'GetSafetyValve' :: GetSafetyValve
  357. implicit none
  358. GetSafetyValve = Get_SafetyValve()
  359. end function
  360. integer function GetSlips()
  361. !DEC$ ATTRIBUTES DLLEXPORT :: GetSlips
  362. !DEC$ ATTRIBUTES ALIAS: 'GetSlips' :: GetSlips
  363. implicit none
  364. GetSlips = Get_Slips()
  365. end function
  366. integer function GetSwing()
  367. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwing
  368. !DEC$ ATTRIBUTES ALIAS: 'GetSwing' :: GetSwing
  369. implicit none
  370. GetSwing = Get_Swing()
  371. end function
  372. integer function GetTong()
  373. !DEC$ ATTRIBUTES DLLEXPORT :: GetTong
  374. !DEC$ ATTRIBUTES ALIAS: 'GetTong' :: GetTong
  375. implicit none
  376. GetTong = Get_Tong()
  377. end function
  378. integer function GetStringUpdateU()
  379. !DEC$ ATTRIBUTES DLLEXPORT :: GetStringUpdateU
  380. !DEC$ ATTRIBUTES ALIAS: 'GetStringUpdateU' :: GetStringUpdateU
  381. implicit none
  382. GetStringUpdateU = Get_StringUpdate()
  383. end function
  384. real(8) function GetNewHookHeightU()
  385. !DEC$ ATTRIBUTES DLLEXPORT :: GetNewHookHeightU
  386. !DEC$ ATTRIBUTES ALIAS: 'GetNewHookHeightU' :: GetNewHookHeightU
  387. implicit none
  388. !GetNewHookHeightU = Get_NewHookHeight()
  389. GetNewHookHeightU = 0d0
  390. end function
  391. real(8) function GetBlowoutFromStringPercentU()
  392. !DEC$ ATTRIBUTES DLLEXPORT :: GetBlowoutFromStringPercentU
  393. !DEC$ ATTRIBUTES ALIAS: 'GetBlowoutFromStringPercentU' :: GetBlowoutFromStringPercentU
  394. implicit none
  395. GetBlowoutFromStringPercentU = GetBlowoutFromStringPercent()
  396. end function
  397. logical function GetMakeupTong()
  398. !DEC$ ATTRIBUTES DLLEXPORT :: GetMakeupTong
  399. !DEC$ ATTRIBUTES ALIAS: 'GetMakeupTong' :: GetMakeupTong
  400. implicit none
  401. !GetMakeupTong = Get_MakeupTong()
  402. GetMakeupTong = .false.
  403. end function
  404. logical function GetBreakupTong()
  405. !DEC$ ATTRIBUTES DLLEXPORT :: GetBreakupTong
  406. !DEC$ ATTRIBUTES ALIAS: 'GetBreakupTong' :: GetBreakupTong
  407. implicit none
  408. !GetBreakupTong = Get_BreakupTong()
  409. GetBreakupTong = .false.
  410. end function
  411. logical function GetSlipsSet()
  412. !DEC$ ATTRIBUTES DLLEXPORT :: GetSlipsSet
  413. !DEC$ ATTRIBUTES ALIAS: 'GetSlipsSet' :: GetSlipsSet
  414. implicit none
  415. !GetSlipsSet = Get_SlipsSetU()
  416. GetSlipsSet = .false.
  417. end function
  418. logical function GetSlipsUnSet()
  419. !DEC$ ATTRIBUTES DLLEXPORT :: GetSlipsUnSet
  420. !DEC$ ATTRIBUTES ALIAS: 'GetSlipsUnSet' :: GetSlipsUnSet
  421. implicit none
  422. !GetSlipsUnSet = Get_SlipsUnSetU()
  423. GetSlipsUnSet = .false.
  424. end function
  425. logical function GetLatch()
  426. !DEC$ ATTRIBUTES DLLEXPORT :: GetLatch
  427. !DEC$ ATTRIBUTES ALIAS: 'GetLatch' :: GetLatch
  428. implicit none
  429. !GetLatch = Get_Latch()
  430. GetLatch = .false.
  431. end function
  432. logical function GetUnlatch()
  433. !DEC$ ATTRIBUTES DLLEXPORT :: GetUnlatch
  434. !DEC$ ATTRIBUTES ALIAS: 'GetUnlatch' :: GetUnlatch
  435. implicit none
  436. !GetUnlatch = Get_Unlatch()
  437. GetUnlatch = .false.
  438. end function
  439. logical function GetOutOfMouseHole()
  440. !DEC$ ATTRIBUTES DLLEXPORT :: GetOutOfMouseHole
  441. !DEC$ ATTRIBUTES ALIAS: 'GetOutOfMouseHole' :: GetOutOfMouseHole
  442. implicit none
  443. !GetOutOfMouseHole = Get_OutOfMouseHole()
  444. GetOutOfMouseHole = .false.
  445. end function
  446. logical function GetIsKellyBushingSetInTable()
  447. !DEC$ ATTRIBUTES DLLEXPORT :: GetIsKellyBushingSetInTable
  448. !DEC$ ATTRIBUTES ALIAS: 'GetIsKellyBushingSetInTable' :: GetIsKellyBushingSetInTable
  449. implicit none
  450. GetIsKellyBushingSetInTable = Get_IsKellyBushingSetInTable()
  451. end function
  452. ! TempVars
  453. logical function GetSignal1U()
  454. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal1U
  455. !DEC$ ATTRIBUTES ALIAS: 'GetSignal1U' :: GetSignal1U
  456. implicit none
  457. !GetSignal1U = GetSignal1()
  458. GetSignal1U = .false.
  459. end function
  460. logical function GetSignal2U()
  461. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal2U
  462. !DEC$ ATTRIBUTES ALIAS: 'GetSignal2U' :: GetSignal2U
  463. implicit none
  464. !GetSignal2U = GetSignal2()
  465. GetSignal2U = .false.
  466. end function
  467. logical function GetSignal3U()
  468. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal3U
  469. !DEC$ ATTRIBUTES ALIAS: 'GetSignal3U' :: GetSignal3U
  470. implicit none
  471. !GetSignal3U = GetSignal3()
  472. GetSignal3U = .false.
  473. end function
  474. logical function GetSignal4U()
  475. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal4U
  476. !DEC$ ATTRIBUTES ALIAS: 'GetSignal4U' :: GetSignal4U
  477. implicit none
  478. !GetSignal4U = GetSignal4()
  479. GetSignal4U = .false.
  480. end function
  481. logical function GetSignal5U()
  482. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal5U
  483. !DEC$ ATTRIBUTES ALIAS: 'GetSignal5U' :: GetSignal5U
  484. implicit none
  485. !GetSignal5U = GetSignal5()
  486. GetSignal5U = .false.
  487. end function
  488. logical function GetSignal6U()
  489. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal6U
  490. !DEC$ ATTRIBUTES ALIAS: 'GetSignal6U' :: GetSignal6U
  491. implicit none
  492. !GetSignal6U = GetSignal6()
  493. GetSignal6U = .false.
  494. end function
  495. logical function GetSignal7U()
  496. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal7U
  497. !DEC$ ATTRIBUTES ALIAS: 'GetSignal7U' :: GetSignal7U
  498. implicit none
  499. !GetSignal7U = GetSignal7()
  500. GetSignal7U = .false.
  501. end function
  502. logical function GetSignal8U()
  503. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal8U
  504. !DEC$ ATTRIBUTES ALIAS: 'GetSignal8U' :: GetSignal8U
  505. implicit none
  506. !GetSignal8U = GetSignal8()
  507. GetSignal8U = .false.
  508. end function
  509. logical function GetSignal9U()
  510. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal9U
  511. !DEC$ ATTRIBUTES ALIAS: 'GetSignal9U' :: GetSignal9U
  512. implicit none
  513. !GetSignal9U = GetSignal9()
  514. GetSignal9U = .false.
  515. end function
  516. logical function GetSignal10U()
  517. !DEC$ ATTRIBUTES DLLEXPORT :: GetSignal10U
  518. !DEC$ ATTRIBUTES ALIAS: 'GetSignal10U' :: GetSignal10U
  519. implicit none
  520. !GetSignal10U = GetSignal10()
  521. GetSignal10U = .false.
  522. end function
  523. real(8) function GetTopJiontHeight()
  524. !DEC$ ATTRIBUTES DLLEXPORT :: GetTopJiontHeight
  525. !DEC$ ATTRIBUTES ALIAS: 'GetTopJiontHeight' :: GetTopJiontHeight
  526. use TD_DrillStemComponents
  527. implicit none
  528. GetTopJiontHeight = TD_TopJointHeight
  529. end function
  530. logical function GetBlowoutFromStringT()
  531. !DEC$ ATTRIBUTES DLLEXPORT :: GetBlowoutFromStringT
  532. !DEC$ ATTRIBUTES ALIAS: 'GetBlowoutFromStringT' :: GetBlowoutFromStringT
  533. implicit none
  534. GetBlowoutFromStringT = Get_BlowoutFromString()
  535. end function
  536. logical function GetBlowoutFromAnnularT()
  537. !DEC$ ATTRIBUTES DLLEXPORT :: GetBlowoutFromAnnularT
  538. !DEC$ ATTRIBUTES ALIAS: 'GetBlowoutFromAnnularT' :: GetBlowoutFromAnnularT
  539. implicit none
  540. GetBlowoutFromAnnularT = Get_BlowoutFromAnnular()
  541. end function
  542. logical function GetFlowFromReturnLineT()
  543. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlowFromReturnLineT
  544. !DEC$ ATTRIBUTES ALIAS: 'GetFlowFromReturnLineT' :: GetFlowFromReturnLineT
  545. implicit none
  546. GetFlowFromReturnLineT = Get_FlowFromReturnLine()
  547. end function
  548. real function GetFlowFromKellyT()
  549. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlowFromKellyT
  550. !DEC$ ATTRIBUTES ALIAS: 'GetFlowFromKellyT' :: GetFlowFromKellyT
  551. implicit none
  552. GetFlowFromKellyT = Get_FlowFromKelly()
  553. end function
  554. logical function GetFlowKellyDisconnectT()
  555. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlowKellyDisconnectT
  556. !DEC$ ATTRIBUTES ALIAS: 'GetFlowKellyDisconnectT' :: GetFlowKellyDisconnectT
  557. implicit none
  558. GetFlowKellyDisconnectT = Get_FlowKellyDisconnect()
  559. end function
  560. logical function GetFlowPipeDisconnectT()
  561. !DEC$ ATTRIBUTES DLLEXPORT :: GetFlowPipeDisconnectT
  562. !DEC$ ATTRIBUTES ALIAS: 'GetFlowPipeDisconnectT' :: GetFlowPipeDisconnectT
  563. implicit none
  564. GetFlowPipeDisconnectT = Get_FlowPipeDisconnect()
  565. end function
  566. !integer function GetFlowKellyDisconnectT2()
  567. !!DEC$ ATTRIBUTES DLLEXPORT :: GetFlowKellyDisconnectT2
  568. !!DEC$ ATTRIBUTES ALIAS: 'GetFlowKellyDisconnectT2' :: GetFlowKellyDisconnectT2
  569. ! implicit none
  570. ! GetFlowKellyDisconnectT2 = Get_FlowKellyDisconnect2()
  571. !end function
  572. !integer function GetFlowPipeDisconnectT2()
  573. !!DEC$ ATTRIBUTES DLLEXPORT :: GetFlowPipeDisconnectT2
  574. !!DEC$ ATTRIBUTES ALIAS: 'GetFlowPipeDisconnectT2' :: GetFlowPipeDisconnectT2
  575. ! implicit none
  576. ! GetFlowPipeDisconnectT2 = Get_FlowPipeDisconnect2()
  577. !end function
  578. logical function GetSingleOutOfMouseHole()
  579. !DEC$ ATTRIBUTES DLLEXPORT :: GetSingleOutOfMouseHole
  580. !DEC$ ATTRIBUTES ALIAS: 'GetSingleOutOfMouseHole' :: GetSingleOutOfMouseHole
  581. implicit none
  582. GetSingleOutOfMouseHole = .true. !Get_SingleOutOfMouseHole()
  583. end function
  584. integer function GetTdsSwing()
  585. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsSwing
  586. !DEC$ ATTRIBUTES ALIAS: 'GetTdsSwing' :: GetTdsSwing
  587. use CTdsSwingEnumVariables
  588. implicit none
  589. GetTdsSwing = Get_TdsSwing()
  590. end function
  591. integer function GetTdsSpine()
  592. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsSpine
  593. !DEC$ ATTRIBUTES ALIAS: 'GetTdsSpine' :: GetTdsSpine
  594. use CTdsSpineEnumVariables
  595. implicit none
  596. GetTdsSpine = Get_TdsSpine()
  597. end function
  598. integer function GetTdsTong()
  599. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsTong
  600. !DEC$ ATTRIBUTES ALIAS: 'GetTdsTong' :: GetTdsTong
  601. use CTdsTongEnumVariables
  602. implicit none
  603. GetTdsTong = Get_TdsTong()
  604. end function
  605. integer function GetTdsBackupClamp()
  606. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsBackupClamp
  607. !DEC$ ATTRIBUTES ALIAS: 'GetTdsBackupClamp' :: GetTdsBackupClamp
  608. use CTdsBackupClampVariables
  609. implicit none
  610. GetTdsBackupClamp = Get_TdsBackupClamp()
  611. end function
  612. logical function GetTdsConnectionPossibility()
  613. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsConnectionPossibility
  614. !DEC$ ATTRIBUTES ALIAS: 'GetTdsConnectionPossibility' :: GetTdsConnectionPossibility
  615. implicit none
  616. GetTdsConnectionPossibility = Get_TdsConnectionPossible()
  617. end function
  618. logical function GetTdsStemIn()
  619. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsStemIn
  620. !DEC$ ATTRIBUTES ALIAS: 'GetTdsStemIn' :: GetTdsStemIn
  621. implicit none
  622. GetTdsStemIn = Get_TdsStemIn()
  623. end function
  624. logical function GetFillupHeadPermission()
  625. !DEC$ ATTRIBUTES DLLEXPORT :: GetFillupHeadPermission
  626. !DEC$ ATTRIBUTES ALIAS: 'GetFillupHeadPermission' :: GetFillupHeadPermission
  627. use CFillupHeadPermissionVariables
  628. implicit none
  629. GetFillupHeadPermission = Get_FillupHeadPermission()
  630. end function
  631. logical function GetSwingDrillPermission()
  632. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwingDrillPermission
  633. !DEC$ ATTRIBUTES ALIAS: 'GetSwingDrillPermission' :: GetSwingDrillPermission
  634. use CSwingDrillPermissionVariables
  635. implicit none
  636. GetSwingDrillPermission = Get_SwingDrillPermission()
  637. end function
  638. logical function GetSwingOffPermission()
  639. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwingOffPermission
  640. !DEC$ ATTRIBUTES ALIAS: 'GetSwingOffPermission' :: GetSwingOffPermission
  641. use CSwingOffPermissionVariables
  642. implicit none
  643. GetSwingOffPermission = Get_SwingOffPermission()
  644. end function
  645. logical function GetSwingTiltPermission()
  646. !DEC$ ATTRIBUTES DLLEXPORT :: GetSwingTiltPermission
  647. !DEC$ ATTRIBUTES ALIAS: 'GetSwingTiltPermission' :: GetSwingTiltPermission
  648. use CSwingTiltPermissionVariables
  649. implicit none
  650. GetSwingTiltPermission = Get_SwingTiltPermission()
  651. end function
  652. real(8) function GetTdsStemJointHeight()
  653. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsStemJointHeight
  654. !DEC$ ATTRIBUTES ALIAS: 'GetTdsStemJointHeight' :: GetTdsStemJointHeight
  655. implicit none
  656. GetTdsStemJointHeight = 10.0
  657. end function
  658. integer function GetTdsConnectionModes()
  659. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsConnectionModes
  660. !DEC$ ATTRIBUTES ALIAS: 'GetTdsConnectionModes' :: GetTdsConnectionModes
  661. use CTdsConnectionModesEnumVariables
  662. implicit none
  663. GetTdsConnectionModes = Get_TdsConnectionModes()
  664. end function
  665. integer function GetTdsElevatorModes()
  666. !DEC$ ATTRIBUTES DLLEXPORT :: GetTdsElevatorModes
  667. !DEC$ ATTRIBUTES ALIAS: 'GetTdsElevatorModes' :: GetTdsElevatorModes
  668. use CTdsElevatorModesEnumVariables
  669. implicit none
  670. GetTdsElevatorModes = Get_TdsElevatorModes()
  671. end function
  672. end module TestOperationScenarios