module CTdsBackupClamp use COperationScenariosVariables implicit none contains subroutine Evaluate_TdsBackupClamp() implicit none if (Hoisting%DriveType == TopDrive_DriveType) then #ifdef OST print*, 'Evaluate_TdsBackupClamp=TopDrive' #endif !TOPDRIVE-CODE=79 if(Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_END .and.& TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.& TopDrivePanel%TopDriveTorqueWrench) then call Set_TdsBackupClamp(BACKUP_CLAMP_FW_BEGIN) endif !TOPDRIVE-CODE=80 if(Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_END .and.& Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_BEGIN .and.& TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.& TopDrivePanel%TopDriveTorqueWrench == .false.) then call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_BEGIN) endif endif if (Hoisting%DriveType == Kelly_DriveType) then #ifdef OST print*, 'Evaluate_TdsBackupClamp=Kelly' #endif endif end subroutine subroutine Subscribe_TdsBackupClamp() use CDrillingConsoleVariables implicit none end subroutine end module CTdsBackupClamp