Simulation Core
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CSwingTiltPermission.f90 1.2 KiB

1 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. module CSwingTiltPermission
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_SwingTiltPermission()
  6. implicit none
  7. if (DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_SwingTiltPermission=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=34
  12. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  13. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  14. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  15. Get_Slips() == SLIPS_SET_END .and.&
  16. TopDriveTdsPowerState /= TdsPower_OFF) then
  17. call Set_SwingTiltPermission(.true.)
  18. return
  19. end if
  20. call Set_SwingTiltPermission(.false.)
  21. endif
  22. ! if (DriveType == Kelly_DriveType) then
  23. !#ifdef OST
  24. ! print*, 'Evaluate_SwingTiltPermission=Kelly'
  25. !#endif
  26. ! endif
  27. end subroutine
  28. subroutine Subscribe_SwingTiltPermission()
  29. implicit none
  30. end subroutine
  31. end module CSwingTiltPermission