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.

CSwingTiltPermission.i90 1.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # 1 "/home/admin/SimulationCore2/CSharp/OperationScenarios/Permissions/CSwingTiltPermission.f90"
  2. module CSwingTiltPermission
  3. use UnitySignalsModule
  4. use OperationScenariosModule
  5. use SimulationVariables
  6. implicit none
  7. contains
  8. subroutine Evaluate_SwingTiltPermission()
  9. implicit none
  10. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  11. if(print_log) print*, 'Evaluate_SwingTiltPermission=TopDrive'
  12. !TOPDRIVE-CODE=34
  13. if (Get_TdsElevatorModes() == TDS_ELEVATOR_CONNECTION_NOTHING .and.&
  14. Get_TdsConnectionModes() == TDS_CONNECTION_NOTHING .and.&
  15. Get_TdsSwing() == TDS_SWING_OFF_END .and.&
  16. Get_Slips() == SLIPS_SET_END .and.&
  17. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  18. call Set_SwingTiltPermission(.true.)
  19. return
  20. end if
  21. call Set_SwingTiltPermission(.false.)
  22. endif
  23. ! if (DriveType == Kelly_DriveType) then
  24. !#ifdef OST
  25. ! if(print_log) print*, 'Evaluate_SwingTiltPermission=Kelly'
  26. !#endif
  27. ! endif
  28. end subroutine
  29. subroutine Subscribe_SwingTiltPermission()
  30. implicit none
  31. end subroutine
  32. end module CSwingTiltPermission