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.
 
 
 
 
 
 

40 lines
1.3 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. if(print_log) print*, 'Evaluate_SwingTiltPermission=TopDrive'
  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. data%Equipments%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. ! if(print_log) 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