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

1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. module CSwingDrillPermission
  2. use COperationScenariosVariables
  3. use CTopDrivePanelVariables
  4. implicit none
  5. contains
  6. subroutine Evaluate_SwingDrillPermission()
  7. implicit none
  8. if (Hoisting%DriveType == TopDrive_DriveType) then
  9. #ifdef OST
  10. print*, 'Evaluate_SwingDrillPermission=TopDrive'
  11. #endif
  12. !TOPDRIVE-CODE=33
  13. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  14. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  15. 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