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.

CFillupHeadPermission.i90 1.2 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # 1 "/home/admin/SimulationCore2/CSharp/OperationScenarios/Permissions/CFillupHeadPermission.f90"
  2. module CFillupHeadPermission
  3. use OperationScenariosModule
  4. implicit none
  5. contains
  6. subroutine Evaluate_FillupHeadPermission()
  7. ! use UnitySignalsModule !for CTdsConnectionModesEnum
  8. implicit none
  9. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  10. !TOPDRIVE-CODE=66
  11. if (Get_NearFloorConnection() >= 3 .and. Get_NearFloorConnection() <= 10 .and.&
  12. Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  13. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING) then
  14. call Set_FillupHeadPermission(.true.)
  15. return
  16. end if
  17. call Set_FillupHeadPermission(.false.)
  18. endif
  19. ! if (DriveType == Kelly_DriveType) then
  20. !#ifdef OST
  21. ! if(print_log) print*, 'Evaluate_FillupHeadPermission=Kelly'
  22. !#endif
  23. ! endif
  24. end subroutine
  25. subroutine Subscribe_FillupHeadPermission()
  26. implicit none
  27. end subroutine
  28. end module CFillupHeadPermission