Simulation Core
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

50 行
1.7 KiB

  1. # 1 "/home/admin/SimulationCore2/CSharp/OperationScenarios/UnitySignals/CTdsTongEnum.f90"
  2. module CTdsTongEnum
  3. use OperationScenariosModule
  4. implicit none
  5. contains
  6. subroutine Evaluate_TdsTong()
  7. implicit none
  8. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  9. !TOPDRIVE-CODE=1
  10. if (Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.&
  11. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  12. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.&
  13. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then
  14. call Set_TdsTong(TDS_TONG_MAKEUP_BEGIN)
  15. !TopDriveTorqueWrenchLed = LED_ON
  16. return
  17. end if
  18. !TOPDRIVE-CODE=2
  19. if (Get_TdsConnectionModes() == TDS_CONNECTION_STRING .and.&
  20. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  21. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.&
  22. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then
  23. call Set_TdsTong(TDS_TONG_BREAKOUT_BEGIN)
  24. !TopDriveTorqueWrenchLed = LED_ON
  25. return
  26. end if
  27. endif
  28. ! if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  29. ! if(print_log) print*, 'Evaluate_TdsTong=Kelly'
  30. ! endif
  31. end subroutine
  32. subroutine Subscribe_TdsTong()
  33. use CDrillingConsoleVariables
  34. use SimulationVariables
  35. use SimulationVariables
  36. implicit none
  37. end subroutine
  38. end module CTdsTongEnum