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.

CIrIBopLedNotification.f90 2.4 KiB

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