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.
 
 
 
 
 
 

65 lines
1.8 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/UnitySignals/CTdsSpineEnum.f90"
  2. module CTdsSpineEnum
  3. use OperationScenariosModule
  4. use UnityModule
  5. use UnitySignalsModule !for CTdsConnectionModesEnum, only:Get_TdsConnectionModes
  6. implicit none
  7. contains
  8. subroutine Evaluate_TdsSpine()
  9. implicit none
  10. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  11. # 14
  12. !TOPDRIVE-CODE=83
  13. if (Get_TdsStemIn() .and.&
  14. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  15. !Get_TdsConnectionPossible() .and.&
  16. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.&
  17. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_SPINE) then
  18. call Set_TdsSpine(TDS_SPINE_CONNECT_BEGIN)
  19. return
  20. end if
  21. !TOPDRIVE-CODE=84
  22. if (Get_TdsStemIn() .and.&
  23. Get_TdsTong() == TDS_TONG_BREAKOUT_END .and.&
  24. Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.&
  25. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.&
  26. data%Equipments%TopDrivePanel%TopDriveDrillTorqueState == TdsMu_SPINE) then
  27. call Set_TdsSpine(TDS_SPINE_DISCONNECT_BEGIN)
  28. return
  29. end if
  30. endif
  31. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  32. # 53
  33. endif
  34. end subroutine
  35. subroutine Subscribe_TdsSpine()
  36. use CDrillingConsoleVariables
  37. use SimulationVariables
  38. use SimulationVariables
  39. implicit none
  40. end subroutine
  41. end module CTdsSpineEnum