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.6 KiB

  1. # 1 "/mnt/c/Projects/VSIM/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. # 12
  10. !TOPDRIVE-CODE=79
  11. if(Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_END .and.&
  12. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  13. data%Equipments%TopDrivePanel%TopDriveTorqueWrench) then
  14. call Set_TdsBackupClamp(BACKUP_CLAMP_FW_BEGIN)
  15. endif
  16. !TOPDRIVE-CODE=80
  17. if(Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_END .and.&
  18. Get_TdsBackupClamp() /= BACKUP_CLAMP_OFF_BEGIN .and.&
  19. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF .and.&
  20. data%Equipments%TopDrivePanel%TopDriveTorqueWrench == .false.) then
  21. call Set_TdsBackupClamp(BACKUP_CLAMP_OFF_BEGIN)
  22. endif
  23. endif
  24. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  25. # 47
  26. endif
  27. end subroutine
  28. subroutine Subscribe_TdsBackupClamp()
  29. use CDrillingConsoleVariables
  30. use SimulationVariables
  31. use SimulationVariables
  32. implicit none
  33. end subroutine
  34. end module CTdsBackupClamp