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.
 
 
 
 
 
 

120 lines
2.6 KiB

  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. ! 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. ! 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. 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%EquipmentControl%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. 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