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.
 
 
 
 
 
 

63 lines
1.7 KiB

  1. module COpenKellyCockLedNotificationVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. logical :: OpenKellyCockLed = .false.
  5. public
  6. type(VoidEventHandlerCollection) :: OnOpenKellyCockLedChange
  7. private :: OpenKellyCockLed
  8. contains
  9. subroutine Set_OpenKellyCockLed(v)
  10. ! use CDrillingConsoleVariables!, only: OpenKellyCockLedHw => OpenKellyCockLed
  11. use CManifolds, only: OpenKellyCock
  12. implicit none
  13. logical , intent(in) :: v
  14. #ifdef ExcludeExtraChanges
  15. if(OpenKellyCockLed == v) return
  16. #endif
  17. OpenKellyCockLed = v
  18. if(OpenKellyCockLed) then
  19. call OpenKellyCock()
  20. endif
  21. ! HAS BEEN IMPLEMENTED IN CMANIFOLD
  22. !if(OpenKellyCockLed) then
  23. ! OpenKellyCockLedHw = 1
  24. !else
  25. ! OpenKellyCockLedHw = 0
  26. !endif
  27. call OnOpenKellyCockLedChange%RunAll()
  28. end subroutine
  29. logical function Get_OpenKellyCockLed()
  30. implicit none
  31. Get_OpenKellyCockLed = OpenKellyCockLed
  32. end function
  33. subroutine Set_OpenKellyCockLed_WN(v)
  34. !DEC$ ATTRIBUTES DLLEXPORT :: Set_OpenKellyCockLed_WN
  35. !DEC$ ATTRIBUTES ALIAS: 'Set_OpenKellyCockLed_WN' :: Set_OpenKellyCockLed_WN
  36. implicit none
  37. logical , intent(in) :: v
  38. call Set_OpenKellyCockLed(v)
  39. end subroutine
  40. logical function Get_OpenKellyCockLed_WN()
  41. !DEC$ ATTRIBUTES DLLEXPORT :: Get_OpenKellyCockLed_WN
  42. !DEC$ ATTRIBUTES ALIAS: 'Get_OpenKellyCockLed_WN' :: Get_OpenKellyCockLed_WN
  43. implicit none
  44. Get_OpenKellyCockLed_WN = OpenKellyCockLed
  45. end function
  46. end module COpenKellyCockLedNotificationVariables