Simulation Core
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

67 satır
1.7 KiB

  1. module CSwingOffPermission
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_SwingOffPermission()
  6. implicit none
  7. if (DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_SwingOffPermission=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=35
  12. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  13. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  14. Get_TdsSwing() == TDS_SWING_TILT_END .and.&
  15. Get_Slips() == SLIPS_SET_END .and.&
  16. TopDriveTdsPowerState /= TdsPower_OFF) then
  17. call Set_SwingOffPermission(.true.)
  18. return
  19. end if
  20. !TOPDRIVE-CODE=36
  21. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  22. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  23. Get_TdsSwing() == TDS_SWING_DRILL_END .and.&
  24. TopDriveTdsPowerState /= TdsPower_OFF) then
  25. call Set_SwingOffPermission(.true.)
  26. return
  27. end if
  28. call Set_SwingOffPermission(.false.)
  29. endif
  30. ! if (DriveType == Kelly_DriveType) then
  31. !#ifdef OST
  32. ! print*, 'Evaluate_SwingOffPermission=Kelly'
  33. !#endif
  34. ! endif
  35. end subroutine
  36. subroutine Subscribe_SwingOffPermission()
  37. implicit none
  38. end subroutine
  39. end module CSwingOffPermission