Simulation Core
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

67 wiersze
1.8 KiB

  1. module CSwingOffPermission
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_SwingOffPermission()
  6. implicit none
  7. if (data%Configuration%Hoisting%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. data%Equipments%TopDrivePanel%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. data%Equipments%TopDrivePanel%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