|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- subroutine DWMalfunction_ClutchEngage
-
- use CDrillingConsoleVariables
- use CDataDisplayConsoleVariables
- use CHoistingVariables
- use Drawworks_VARIABLES
- use CSounds
- use CLog4
- IMPLICIT NONE
-
-
-
-
-
- ! Sound Generation
- if ( Drawworks%SoundClutch) then
- Drawworks%SoundClutch = .false.
- Call SetSoundDwClutch(Drawworks%SoundClutch)
- end if
- if ( DW_OldClutchMode/=0 .and. DWClutchLever==0 ) then
- Drawworks%SoundClutch = .true.
- Call SetSoundDwClutch(Drawworks%SoundClutch)
- end if
- DW_OldClutchMode = DWClutchLever
-
-
-
-
- ! Drawworks Malfunction ----> Clutch Engage
- if ( Drawworks%ClutchEngageMalf==1 ) then
- if ( Drawworks%ClutchMode==1 .or. Drawworks%ClutchMode==-1 ) then
- Drawworks%ClutchMode = Drawworks%ClutchMode
- else if ( Drawworks%ClutchMode==0 ) then
- Drawworks%ClutchMode = -1
- end if
- return
- end if
-
-
-
-
- ! Drawworks Malfunction ----> Clutch Disengage
- if ( Drawworks%ClutchDisengageMalf==1 ) then
- Drawworks%ClutchMode = 0
- return
- end if
-
-
- Drawworks%ClutchMode = DWClutchLever
-
-
-
-
-
- end subroutine
|