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.
 
 
 
 
 
 

40 lines
1.5 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. !TOPDRIVE-CODE=79
  9. if(Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_END .and.&
  10. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  11. data%Equipments%TopDrivePanel%TopDriveTorqueWrench) then
  12. call Set_TdsBackupClamp(BACKUP_CLAMP_FW_BEGIN)
  13. endif
  14. !TOPDRIVE-CODE=80
  15. if(Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_END .and.&
  16. Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_BEGIN .and.&
  17. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  18. data%Equipments%TopDrivePanel%TopDriveTorqueWrench == .false.) then
  19. call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_BEGIN)
  20. endif
  21. endif
  22. ! if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  23. ! if(print_log) print*, 'Evaluate_TdsBackupClamp=Kelly'
  24. ! endif
  25. end subroutine
  26. subroutine Subscribe_TdsBackupClamp()
  27. use CDrillingConsoleVariables
  28. use SimulationVariables
  29. use SimulationVariables
  30. implicit none
  31. end subroutine
  32. end module CTdsBackupClamp