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.

CSwingDrillPermission.f90 1.4 KiB

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