module TopDriveMain use CLog4 implicit none public contains subroutine TopDrive_Setup() use CSimulationVariables implicit none call OnSimulationStop%Add(TopDrive_Stop) call OnTopDriveStart%Add(TopDrive_Start) call OnTopDriveStep%Add(TopDrive_Step) call OnTopDriveMain%Add(TopDriveMainBody) end subroutine subroutine TopDrive_Stop implicit none call Log_4('TopDrive_Stop') end subroutine TopDrive_Stop subroutine TopDrive_Start implicit none call Log_4('TopDrive_Start') end subroutine TopDrive_Start subroutine TopDrive_Step implicit none call Log_4('TopDrive_Step') end subroutine TopDrive_Step subroutine TopDriveMainBody !use CDataDisplayConsoleVariables !use CDrillingConsoleVariables use CSimulationVariables use TopDrive_VARIABLES use CDrillWatchVariables use CWarningsVariables use CSounds use CTopDrivePanelVariables implicit none integer,dimension(8) :: TDS_START_TIME, TDS_END_TIME INTEGER :: TDS_SolDuration call Log_4('TopDriveMainBody') Call TopDrive_StartUp loopTopDrivestart : do call sleepqq(10) !if ( (TopDriveTdsPowerState==-1) .and. (RpmKnob==0.) ) then !FWD if ( (TopDriveTdsPowerState==-1) ) then !FWD TDS%SoundBlower = .true. !Call SetSoundBlowerRT(TDS%SoundBlower) TopDriveTdsPowerLed = 1 loopTopDriveswitchFWD: do CALL DATE_AND_TIME(values=TDS_START_TIME) !IF ( RTTransmissionLever /=0 .and. RotaryGearsAbuse==0 ) THEN !be in clutch mode ???? TDS%N_new = (RpmKnob/250.d0)*965.d0 ! 0