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.
 
 
 
 
 
 

150 lines
3.1 KiB

  1. module CHeadEnum
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_FillupHead()
  6. use CStudentStationVariables!, only: StudentStation%FillupHeadInstallation
  7. implicit none
  8. if (Hoisting%DriveType == TopDrive_DriveType) then
  9. #ifdef OST
  10. print*, 'Evaluate_FillupHead=TopDrive'
  11. #endif
  12. endif
  13. if (Hoisting%DriveType == Kelly_DriveType) then
  14. #ifdef OST
  15. print*, 'Evaluate_FillupHead=Kelly'
  16. #endif
  17. endif
  18. if (Get_FillupHead() == FILLUP_HEAD_INSTALL) then
  19. StudentStation%FillupHeadInstallation = .true.
  20. else if (Get_FillupHead() == FILLUP_HEAD_REMOVE) then
  21. StudentStation%FillupHeadInstallation = .false.
  22. endif
  23. end subroutine
  24. ! subroutine Subscribe_FillupHead()
  25. ! use CStudentStationVariables
  26. ! implicit none
  27. ! call OnStudentStation%FillupHeadInstallationPress%Add(ButtonPress_StudentStation%FillupHeadInstallation)
  28. ! call OnFillupHeadRemovePress%Add(ButtonPress_FillupHeadRemove)
  29. ! end subroutine
  30. subroutine ButtonPress_FillupHeadInstallation()
  31. implicit none
  32. if (Hoisting%DriveType == TopDrive_DriveType) then
  33. #ifdef OST
  34. print*, 'ButtonPress_StudentStation%FillupHeadInstallation=TopDrive'
  35. #endif
  36. !TOPDRIVE-CODE=67
  37. if (Get_FillupHeadPermission()) then
  38. call Set_FillupHead(FILLUP_HEAD_INSTALL)
  39. return
  40. end if
  41. endif
  42. if (Hoisting%DriveType == Kelly_DriveType) then
  43. #ifdef OST
  44. print*, 'ButtonPress_StudentStation%FillupHeadInstallation=Kelly'
  45. #endif
  46. !OPERATION-CODE=71
  47. if (Get_InstallFillupHeadPermission()) then
  48. call Set_FillupHead(FILLUP_HEAD_INSTALL)
  49. return
  50. end if
  51. endif
  52. end subroutine
  53. subroutine ButtonPress_FillupHeadRemove()
  54. implicit none
  55. if (Hoisting%DriveType == TopDrive_DriveType) then
  56. #ifdef OST
  57. print*, 'ButtonPress_FillupHeadRemove=TopDrive'
  58. #endif
  59. !TOPDRIVE-CODE=68
  60. if (Get_FillupHeadPermission()) then
  61. call Set_FillupHead(FILLUP_HEAD_REMOVE)
  62. return
  63. end if
  64. endif
  65. if (Hoisting%DriveType == Kelly_DriveType) then
  66. #ifdef OST
  67. print*, 'ButtonPress_FillupHeadRemove=Kelly'
  68. #endif
  69. !OPERATION-CODE=72
  70. if (Get_InstallFillupHeadPermission()) then
  71. call Set_FillupHead(FILLUP_HEAD_REMOVE)
  72. return
  73. end if
  74. endif
  75. end subroutine
  76. end module CHeadEnum