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.
 
 
 
 
 
 

62 lines
1.4 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/Permissions/CSwingDrillPermission.f90"
  2. module CSwingDrillPermission
  3. use OperationScenariosModule
  4. use CTopDrivePanelVariables
  5. use SimulationVariables
  6. implicit none
  7. contains
  8. subroutine Evaluate_SwingDrillPermission()
  9. implicit none
  10. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  11. # 16
  12. !TOPDRIVE-CODE=33
  13. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  14. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  15. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  16. call Set_SwingDrillPermission(.true.)
  17. return
  18. end if
  19. call Set_SwingDrillPermission(.false.)
  20. endif
  21. ! if (DriveType == Kelly_DriveType) then
  22. !#ifdef OST
  23. ! print*, 'Evaluate_SwingDrillPermission=Kelly'
  24. !#endif
  25. ! endif
  26. end subroutine
  27. subroutine Subscribe_SwingDrillPermission()
  28. implicit none
  29. end subroutine
  30. end module CSwingDrillPermission