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.
 
 
 
 
 
 

42 lines
1.5 KiB

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