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.

CTdsSpineEnum.f90 1.9 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. module CTdsSpineEnum
  2. use OperationScenariosModule
  3. use UnityModule
  4. use UnitySignalsModule !for CTdsConnectionModesEnum, only:Get_TdsConnectionModes
  5. implicit none
  6. contains
  7. subroutine Evaluate_TdsSpine()
  8. implicit none
  9. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  10. #ifdef OST
  11. print*, 'Evaluate_TdsSpine=TopDrive'
  12. #endif
  13. !TOPDRIVE-CODE=83
  14. if (Get_TdsStemIn() .and.&
  15. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  16. !Get_TdsConnectionPossible() .and.&
  17. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.&
  18. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_SPINE) then
  19. call Set_TdsSpine(TDS_SPINE_CONNECT_BEGIN)
  20. return
  21. end if
  22. !TOPDRIVE-CODE=84
  23. if (Get_TdsStemIn() .and.&
  24. Get_TdsTong() == TDS_TONG_BREAKOUT_END .and.&
  25. Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.&
  26. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.&
  27. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_SPINE) then
  28. call Set_TdsSpine(TDS_SPINE_DISCONNECT_BEGIN)
  29. return
  30. end if
  31. endif
  32. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  33. #ifdef OST
  34. print*, 'Evaluate_TdsSpine=Kelly'
  35. #endif
  36. endif
  37. end subroutine
  38. subroutine Subscribe_TdsSpine()
  39. use CDrillingConsoleVariables
  40. use SimulationVariables
  41. use SimulationVariables
  42. implicit none
  43. end subroutine
  44. end module CTdsSpineEnum