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.

COpenKellyCockLedNotification.f90 1.5 KiB

1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 (Hoisting%DriveType == TopDrive_DriveType) then
  26. #ifdef OST
  27. print*, 'ButtonPress_OpenKellyCock=TopDrive'
  28. #endif
  29. endif
  30. if (Hoisting%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