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.7 KiB

1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. !TOPDRIVE-CODE=1
  9. if (Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.&
  10. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  11. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.&
  12. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then
  13. call Set_TdsTong(TDS_TONG_MAKEUP_BEGIN)
  14. !TopDriveTorqueWrenchLed = LED_ON
  15. return
  16. end if
  17. !TOPDRIVE-CODE=2
  18. if (Get_TdsConnectionModes() == TDS_CONNECTION_STRING .and.&
  19. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  20. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.&
  21. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then
  22. call Set_TdsTong(TDS_TONG_BREAKOUT_BEGIN)
  23. !TopDriveTorqueWrenchLed = LED_ON
  24. return
  25. end if
  26. endif
  27. ! if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  28. ! if(print_log) print*, 'Evaluate_TdsTong=Kelly'
  29. ! endif
  30. end subroutine
  31. subroutine Subscribe_TdsTong()
  32. use CDrillingConsoleVariables
  33. use SimulationVariables
  34. use SimulationVariables
  35. implicit none
  36. end subroutine
  37. end module CTdsTongEnum