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.2 KiB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738
  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. if(print_log) print*, 'Evaluate_SwingDrillPermission=TopDrive'
  11. !TOPDRIVE-CODE=33
  12. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  13. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  14. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  15. call Set_SwingDrillPermission(.true.)
  16. return
  17. end if
  18. call Set_SwingDrillPermission(.false.)
  19. endif
  20. ! if (DriveType == Kelly_DriveType) then
  21. !#ifdef OST
  22. ! if(print_log) print*, 'Evaluate_SwingDrillPermission=Kelly'
  23. !#endif
  24. ! endif
  25. end subroutine
  26. subroutine Subscribe_SwingDrillPermission()
  27. implicit none
  28. end subroutine
  29. end module CSwingDrillPermission