Simulation Core
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

59 righe
1.5 KiB

  1. module CTdsTorqueWrenchLedNotification
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_TorqueWrenchLed()
  6. implicit none
  7. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  8. #ifdef OST
  9. print*, 'Evaluate_TorqueWrenchLed=TopDrive'
  10. #endif
  11. !TOPDRIVE-CODE=81
  12. if((Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_BEGIN .or.&
  13. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_BEGIN) .and.&
  14. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  15. call Set_TorqueWrenchLed(LED_BLINK)
  16. return
  17. endif
  18. !TOPDRIVE-CODE=81
  19. if(Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  20. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  21. call Set_TorqueWrenchLed(LED_ON)
  22. return
  23. endif
  24. call Set_TorqueWrenchLed(LED_OFF)
  25. endif
  26. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  27. #ifdef OST
  28. print*, 'Evaluate_SwingLed=Kelly'
  29. #endif
  30. endif
  31. end subroutine
  32. ! subroutine Subscribe_TorqueWrenchLed()
  33. ! implicit none
  34. ! end subroutine
  35. end module CTdsTorqueWrenchLedNotification