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.
 
 
 
 
 
 

66 lines
1.7 KiB

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