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.
 
 
 
 
 
 

116 lines
2.3 KiB

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