module CTdsTongEnum use COperationScenariosVariables implicit none contains subroutine Evaluate_TdsTong() implicit none if (Hoisting%DriveType == TopDrive_DriveType) then #ifdef OST print*, 'Evaluate_TdsTong=TopDrive' #endif !TOPDRIVE-CODE=1 if (Get_TdsConnectionModes() == TDS_CONNECTION_SPINE .and.& Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.& TopDrivePanel%TopDriveTdsPowerState == TdsPower_FWD .and.& TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then call Set_TdsTong(TDS_TONG_MAKEUP_BEGIN) !TopDriveTorqueWrenchLed = LED_ON return end if !TOPDRIVE-CODE=2 if (Get_TdsConnectionModes() == TDS_CONNECTION_STRING .and.& Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.& TopDrivePanel%TopDriveTdsPowerState == TdsPower_REV .and.& TopDrivePanel%TopDriveDrillTorqueState == TdsMu_TORQ) then call Set_TdsTong(TDS_TONG_BREAKOUT_BEGIN) !TopDriveTorqueWrenchLed = LED_ON return end if endif if (Hoisting%DriveType == Kelly_DriveType) then #ifdef OST print*, 'Evaluate_TdsTong=Kelly' #endif endif end subroutine subroutine Subscribe_TdsTong() use CDrillingConsoleVariables implicit none end subroutine end module CTdsTongEnum