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. 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. if(print_log) 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. if(print_log) 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