Simulation Core
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

CTdsTongEnum.i90 1.7 KiB

1 anno fa
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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