Simulation Core
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.7 KiB

  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