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.

преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
преди 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. module CIrIBopLedNotification
  2. use OperationScenariosModule
  3. ! use CTopDrivePanelVariables
  4. use SimulationVariables
  5. implicit none
  6. contains
  7. subroutine Evaluate_IrIBopLed()
  8. implicit none
  9. ! if (DriveType == TopDrive_DriveType) then
  10. !#ifdef OST
  11. ! if(print_log) print*, 'Evaluate_IrIBopLed=TopDrive'
  12. !#endif
  13. ! endif
  14. !
  15. !
  16. !
  17. !
  18. !
  19. !
  20. !
  21. !
  22. ! if (DriveType == Kelly_DriveType) then
  23. !#ifdef OST
  24. ! if(print_log) print*, 'Evaluate_IrIBopLed=Kelly'
  25. !#endif
  26. ! endif
  27. end subroutine
  28. ! subroutine Subscribe_IrIBopLed()
  29. ! use CDrillingConsoleVariables
  30. !@ use ConfigurationVariables
  31. !@ use ConfigurationVariables
  32. ! implicit none
  33. ! call OnIRIBopPress%Add(ButtonPress_IrIBop)
  34. ! end subroutine
  35. subroutine ButtonPress_IrIBop()
  36. implicit none
  37. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  38. #ifdef OST
  39. if(print_log) print*, 'Evaluate_IrIBopLed=TopDrive'
  40. #endif
  41. !TOPDRIVE-CODE=59
  42. if (Get_IrIbopPermission() .and.&
  43. Get_IrIBopLed() == .false.) then
  44. call Set_IrIBopLed(.true.)
  45. return
  46. end if
  47. !TOPDRIVE-CODE=60
  48. if (Get_IrIbopPermission() .and.&
  49. Get_IrIBopLed() == .true. .and.&
  50. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_OFF) then
  51. call Set_IrIBopLed(.false.)
  52. return
  53. end if
  54. endif
  55. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  56. #ifdef OST
  57. if(print_log) print*, 'Evaluate_IrIBopLed=Kelly'
  58. #endif
  59. !OPERATION-CODE=63
  60. if (Get_IrIbopPermission() .and.&
  61. Get_IrIBopLed() == .false.) then
  62. call Set_IrIBopLed(.true.)
  63. return
  64. end if
  65. !OPERATION-CODE=64
  66. if (Get_IrIbopPermission() .and.&
  67. Get_IrIBopLed()) then
  68. call Set_IrIBopLed(.false.)
  69. return
  70. end if
  71. endif
  72. end subroutine
  73. end module CIrIBopLedNotification