|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- module CFillMouseHoleLedNotification
- use COperationScenariosVariables
- implicit none
- contains
-
- subroutine Evaluate_FillMouseHoleLed()
- implicit none
-
-
- ! if (DriveType == TopDrive_DriveType) then
- !#ifdef OST
- ! print*, 'Evaluate_FillMouseHoleLed=TopDrive'
- !#endif
- ! endif
- !
- !
- !
- !
- !
- !
- !
- !
- ! if (DriveType == Kelly_DriveType) then
- !#ifdef OST
- ! print*, 'Evaluate_FillMouseHoleLed=Kelly'
- !#endif
- ! endif
-
-
-
- end subroutine
-
- ! subroutine Subscribe_FillMouseHoleLed()
- ! use CDrillingConsoleVariables
- ! implicit none
- ! call OnFillMouseHolePress%Add(ButtonPress_FillMouseHole)
- ! end subroutine
-
- subroutine ButtonPress_FillMouseHole()
- implicit none
-
-
-
- if (DriveType == TopDrive_DriveType) then
- #ifdef OST
- print*, 'Evaluate_FillMouseHoleLed=TopDrive'
- #endif
-
-
-
-
- !TOPDRIVE-CODE=71
- if (Get_FillMouseHoleLed()) then
-
- call Set_FillMouseHoleLed(.false.)
- call Set_MouseHole(MOUSE_HOLE_NEUTRAL)
- return
- end if
-
-
- !TOPDRIVE-CODE=72
- if (Get_TdsElevatorModes() /= TDS_ELEVATOR_CONNECTION_STRING .and.&
- Get_FillMouseHoleLed() == .false.) then
-
- call Set_FillMouseHoleLed(.true.)
- return
- end if
-
-
-
-
-
- endif
-
-
-
-
-
-
-
-
- if (DriveType == Kelly_DriveType) then
- #ifdef OST
- print*, 'Evaluate_FillMouseHoleLed=Kelly'
- #endif
-
-
- !OPERATION-CODE=81
- if (Get_FillMouseHoleLed()) then
- call Set_FillMouseHoleLed(.false.)
- call Set_MouseHole(MOUSE_HOLE_EMPTY)
- return
- end if
-
- !OPERATION-CODE=82
- if (Get_KellyConnection() /= KELLY_CONNECTION_SINGLE .and.&
- Get_ElevatorConnection() /= ELEVATOR_CONNECTION_SINGLE .and.&
- Get_FillMouseHoleLed() == .false.) then
- call Set_FillMouseHoleLed(.true.)
- call Set_MouseHole(MOUSE_HOLE_FILL)
- return
- end if
-
-
- endif
-
-
-
-
-
-
- end subroutine
-
- end module CFillMouseHoleLedNotification
|