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 rivejä
2.4 KiB

  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/Notifications/CIrIBopLedNotification.f90"
  2. module CIrIBopLedNotification
  3. use OperationScenariosModule
  4. ! use CTopDrivePanelVariables
  5. use SimulationVariables
  6. implicit none
  7. contains
  8. subroutine Evaluate_IrIBopLed()
  9. implicit none
  10. ! if (DriveType == TopDrive_DriveType) then
  11. !#ifdef OST
  12. ! print*, 'Evaluate_IrIBopLed=TopDrive'
  13. !#endif
  14. ! endif
  15. !
  16. !
  17. !
  18. !
  19. !
  20. !
  21. !
  22. !
  23. ! if (DriveType == Kelly_DriveType) then
  24. !#ifdef OST
  25. ! print*, 'Evaluate_IrIBopLed=Kelly'
  26. !#endif
  27. ! endif
  28. end subroutine
  29. ! subroutine Subscribe_IrIBopLed()
  30. ! use CDrillingConsoleVariables
  31. !@ use ConfigurationVariables
  32. !@ use ConfigurationVariables
  33. ! implicit none
  34. ! call OnIRIBopPress%Add(ButtonPress_IrIBop)
  35. ! end subroutine
  36. subroutine ButtonPress_IrIBop()
  37. implicit none
  38. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  39. # 55
  40. !TOPDRIVE-CODE=59
  41. if (Get_IrIbopPermission() .and.&
  42. Get_IrIBopLed() == .false.) then
  43. call Set_IrIBopLed(.true.)
  44. return
  45. end if
  46. !TOPDRIVE-CODE=60
  47. if (Get_IrIbopPermission() .and.&
  48. Get_IrIBopLed() == .true. .and.&
  49. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_OFF) then
  50. call Set_IrIBopLed(.false.)
  51. return
  52. end if
  53. endif
  54. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  55. # 93
  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