Simulation Core
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CCloseKellyCockLedNotification.i90 1.6 KiB

há 1 ano
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/Notifications/CCloseKellyCockLedNotification.f90"
  2. module CCloseKellyCockLedNotification
  3. use OperationScenariosModule
  4. implicit none
  5. contains
  6. subroutine Evaluate_CloseKellyCockLed()
  7. implicit none
  8. ! if (DriveType == TopDrive_DriveType) then
  9. !#ifdef OST
  10. ! print*, 'Evaluate_CloseKellyCockLed=TopDrive'
  11. !#endif
  12. ! endif
  13. !
  14. !
  15. !
  16. !
  17. !
  18. !
  19. !
  20. !
  21. !
  22. !
  23. ! if (DriveType == Kelly_DriveType) then
  24. !#ifdef OST
  25. ! print*, 'Evaluate_CloseKellyCockLed=Kelly'
  26. !#endif
  27. ! endif
  28. end subroutine
  29. ! subroutine Subscribe_CloseKellyCockLed()
  30. ! use CDrillingConsoleVariables
  31. ! use ConfigurationVariables
  32. ! use ConfigurationVariables
  33. ! implicit none
  34. ! call OnCloseKellyCockPress%Add(ButtonPress_CloseKellyCock)
  35. ! end subroutine
  36. subroutine ButtonPress_CloseKellyCock()
  37. implicit none
  38. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  39. # 49
  40. endif
  41. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  42. # 55
  43. !OPERATION-CODE=66
  44. if (Get_OperationCondition() == OPERATION_DRILL .and.&
  45. Get_CloseKellyCockLed() == .false. .and.&
  46. Get_OpenKellyCockLed()) then
  47. call Set_OpenKellyCockLed(.false.)
  48. call Set_CloseKellyCockLed(.true.)
  49. return
  50. end if
  51. endif
  52. end subroutine
  53. end module CCloseKellyCockLedNotification