Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.5 KiB

  1. module CTdsBackupClamp
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_TdsBackupClamp()
  6. implicit none
  7. if (Hoisting%DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_TdsBackupClamp=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=79
  12. if(Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_END .and.&
  13. TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  14. TopDrivePanel%TopDriveTorqueWrench) then
  15. call Set_TdsBackupClamp(BACKUP_CLAMP_FW_BEGIN)
  16. endif
  17. !TOPDRIVE-CODE=80
  18. if(Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_END .and.&
  19. Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_BEGIN .and.&
  20. TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  21. TopDrivePanel%TopDriveTorqueWrench == .false.) then
  22. call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_BEGIN)
  23. endif
  24. endif
  25. if (Hoisting%DriveType == Kelly_DriveType) then
  26. #ifdef OST
  27. print*, 'Evaluate_TdsBackupClamp=Kelly'
  28. #endif
  29. endif
  30. end subroutine
  31. subroutine Subscribe_TdsBackupClamp()
  32. use CDrillingConsoleVariables
  33. implicit none
  34. end subroutine
  35. end module CTdsBackupClamp