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.
 
 
 
 
 
 

61 lines
1.5 KiB

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