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.
 
 
 
 
 
 

54 lines
1.4 KiB

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