|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- module CTongEnum
- use COperationScenariosVariables
- implicit none
- contains
-
- subroutine Evaluate_Tong()
- implicit none
-
- ! if (DriveType == TopDrive_DriveType) then
- !#ifdef OST
- ! print*, 'Evaluate_Tong=TopDrive'
- !#endif
- ! endif
- !
- !
- !
- !
- !
- !
- !
- !
- ! if (DriveType == Kelly_DriveType) then
- !#ifdef OST
- ! print*, 'Evaluate_Tong=Kelly'
- !#endif
- ! endif
-
- end subroutine
-
- ! subroutine Subscribe_Tong()
- ! use CDrillingConsoleVariables
- ! implicit none
-
- ! call OnBreakoutLeverPress%Add(ButtonPress_Breakout_TongNotification)
- ! call OnMakeupLeverPress%Add(ButtonPress_Makeup_TongNotification)
- ! call OnTongNeutralPress%Add(ButtonPress_Neutral_TongNotification)
-
- ! end subroutine
-
-
-
- subroutine ButtonPress_Breakout_TongNotification()
- implicit none
-
-
-
-
-
-
-
- if (DriveType == TopDrive_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Breakout_TongNotification=TopDrive'
- #endif
-
- !TOPDRIVE-CODE=70
- if (Get_TongNotification()) then
-
- call Set_Tong(TONG_BREAKOUT_BEGIN)
- return
- end if
-
-
- endif
-
-
-
-
-
-
-
-
- if (DriveType == Kelly_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Breakout_TongNotification=Kelly'
- #endif
-
-
- !OPERATION-CODE=74
- if (Get_TongNotification()) then
- call Set_Tong(TONG_BREAKOUT_BEGIN)
- endif
-
-
-
-
-
- endif
-
-
-
-
-
-
-
-
-
-
-
- end subroutine
-
-
-
-
-
-
-
- subroutine ButtonPress_Makeup_TongNotification()
- use CTongNotificationVariables
- implicit none
-
-
-
- if (DriveType == TopDrive_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Makeup_TongNotification=TopDrive'
- #endif
-
-
- !TOPDRIVE-CODE=69
- if (Get_TongNotification()) then
-
- call Set_Tong(TONG_MAKEUP_BEGIN)
- return
- end if
-
- endif
-
-
-
-
-
-
-
-
- if (DriveType == Kelly_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Makeup_TongNotification=Kelly'
- #endif
-
-
- !OPERATION-CODE=73
- if (Get_TongNotification()) then
- call Set_Tong(TONG_MAKEUP_BEGIN)
- endif
-
- endif
-
-
-
-
-
-
-
-
- end subroutine
-
- subroutine ButtonPress_Neutral_TongNotification()
- implicit none
-
-
-
- if (DriveType == TopDrive_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Neutral_TongNotification=TopDrive'
- #endif
- endif
-
-
-
-
-
-
-
-
- if (DriveType == Kelly_DriveType) then
- #ifdef OST
- print*, 'ButtonPress_Neutral_TongNotification=Kelly'
- #endif
-
- call Set_Tong(TONG_NEUTRAL)
-
-
- endif
-
-
- end subroutine
-
- end module CTongEnum
|