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