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.
 
 
 
 
 
 

62 lines
1.5 KiB

  1. module COpenKellyCockLedNotification
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_OpenKellyCockLed()
  6. implicit none
  7. ! if (DriveType == TopDrive_DriveType) then
  8. !#ifdef OST
  9. ! print*, 'Evaluate_OpenKellyCockLed=TopDrive'
  10. !#endif
  11. ! endif
  12. ! if (DriveType == Kelly_DriveType) then
  13. !#ifdef OST
  14. ! print*, 'Evaluate_OpenKellyCockLed=Kelly'
  15. !#endif
  16. ! endif
  17. end subroutine
  18. ! subroutine Subscribe_OpenKellyCockLed()
  19. ! use CDrillingConsoleVariables
  20. ! implicit none
  21. ! call OnOpenKellyCockPress%Add(ButtonPress_OpenKellyCock)
  22. ! end subroutine
  23. subroutine ButtonPress_OpenKellyCock()
  24. implicit none
  25. if (DriveType == TopDrive_DriveType) then
  26. #ifdef OST
  27. print*, 'ButtonPress_OpenKellyCock=TopDrive'
  28. #endif
  29. endif
  30. if (DriveType == Kelly_DriveType) then
  31. #ifdef OST
  32. print*, 'ButtonPress_OpenKellyCock=Kelly'
  33. #endif
  34. !OPERATION-CODE=65
  35. if (Get_OperationCondition() == OPERATION_DRILL .and.&
  36. Get_OpenKellyCockLed() == .false. .and.&
  37. Get_CloseKellyCockLed()) then
  38. call Set_OpenKellyCockLed(.true.)
  39. call Set_CloseKellyCockLed(.false.)
  40. return
  41. end if
  42. endif
  43. end subroutine
  44. end module COpenKellyCockLedNotification