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.
 
 
 
 
 
 

68 lines
1.8 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/Permissions/CSwingOffPermission.f90"
  2. module CSwingOffPermission
  3. use OperationScenariosModule
  4. implicit none
  5. contains
  6. subroutine Evaluate_SwingOffPermission()
  7. implicit none
  8. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  9. # 14
  10. !TOPDRIVE-CODE=35
  11. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  12. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  13. Get_TdsSwing() == TDS_SWING_TILT_END .and.&
  14. Get_Slips() == SLIPS_SET_END .and.&
  15. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  16. call Set_SwingOffPermission(.true.)
  17. return
  18. end if
  19. !TOPDRIVE-CODE=36
  20. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  21. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  22. Get_TdsSwing() == TDS_SWING_DRILL_END .and.&
  23. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  24. call Set_SwingOffPermission(.true.)
  25. return
  26. end if
  27. call Set_SwingOffPermission(.false.)
  28. endif
  29. ! if (DriveType == Kelly_DriveType) then
  30. !#ifdef OST
  31. ! print*, 'Evaluate_SwingOffPermission=Kelly'
  32. !#endif
  33. ! endif
  34. end subroutine
  35. subroutine Subscribe_SwingOffPermission()
  36. implicit none
  37. end subroutine
  38. end module CSwingOffPermission