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.
 
 
 
 
 
 

52 lines
1.2 KiB

  1. module CSwingTiltPermission
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_SwingTiltPermission()
  6. implicit none
  7. if (Hoisting%DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_SwingTiltPermission=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=34
  12. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  13. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  14. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  15. Get_Slips() == SLIPS_SET_END .and.&
  16. TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  17. call Set_SwingTiltPermission(.true.)
  18. return
  19. end if
  20. call Set_SwingTiltPermission(.false.)
  21. endif
  22. ! if (DriveType == Kelly_DriveType) then
  23. !#ifdef OST
  24. ! print*, 'Evaluate_SwingTiltPermission=Kelly'
  25. !#endif
  26. ! endif
  27. end subroutine
  28. subroutine Subscribe_SwingTiltPermission()
  29. implicit none
  30. end subroutine
  31. end module CSwingTiltPermission