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.
 
 
 
 
 
 

59 lines
1.7 KiB

  1. module CTdsBackupClamp
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_TdsBackupClamp()
  6. implicit none
  7. if (data%Configuration%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. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  14. data%Equipments%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. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  21. data%Equipments%TopDrivePanel%TopDriveTorqueWrench == .false.) then
  22. call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_BEGIN)
  23. endif
  24. endif
  25. if (data%Configuration%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. use SimulationVariables
  34. use SimulationVariables
  35. implicit none
  36. end subroutine
  37. end module CTdsBackupClamp