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.
 
 
 
 
 
 

64 lines
1.6 KiB

  1. module CTdsTongEnum
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_TdsTong()
  6. implicit none
  7. if (DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_TdsTong=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=1
  12. if (Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.&
  13. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  14. TopDriveTdsPowerState == TdsPower_FWD .and.&
  15. TopDriveDrillTorqueState == TdsMu_TORQ) then
  16. call Set_TdsTong(TDS_TONG_MAKEUP_BEGIN)
  17. !TopDriveTorqueWrenchLed = LED_ON
  18. return
  19. end if
  20. !TOPDRIVE-CODE=2
  21. if (Get_TdsConnectionModes() == TDS_CONNECTION_STRING .and.&
  22. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  23. TopDriveTdsPowerState == TdsPower_REV .and.&
  24. TopDriveDrillTorqueState == TdsMu_TORQ) then
  25. call Set_TdsTong(TDS_TONG_BREAKOUT_BEGIN)
  26. !TopDriveTorqueWrenchLed = LED_ON
  27. return
  28. end if
  29. endif
  30. if (DriveType == Kelly_DriveType) then
  31. #ifdef OST
  32. print*, 'Evaluate_TdsTong=Kelly'
  33. #endif
  34. endif
  35. end subroutine
  36. subroutine Subscribe_TdsTong()
  37. use CDrillingConsoleVariables
  38. implicit none
  39. end subroutine
  40. end module CTdsTongEnum