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.

CTdsTongEnum.f90 1.9 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. module CTdsTongEnum
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_TdsTong()
  6. implicit none
  7. if (data%Configuration%Hoisting%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. data%EquipmentControl%TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.&
  15. data%EquipmentControl%TopDrivePanel%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. data%EquipmentControl%TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.&
  24. data%EquipmentControl%TopDrivePanel%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 (data%Configuration%Hoisting%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. use SimulationVariables
  39. use SimulationVariables
  40. implicit none
  41. end subroutine
  42. end module CTdsTongEnum