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.
 
 
 
 
 
 

72 lines
1.6 KiB

  1. module CTdsIbopLedNotification
  2. use OperationScenariosModule
  3. implicit none
  4. contains
  5. subroutine Evaluate_IbopLed()
  6. use CCommon
  7. implicit none
  8. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  9. #ifdef OST
  10. if(print_log) print*, 'Evaluate_IbopLed=TopDrive'
  11. #endif
  12. !TOPDRIVE-CODE=61
  13. if (Get_IbopLed() == .false. .and.&
  14. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_OFF .and.&
  15. data%Equipments%TopDrivePanel%TopDriveIbop == .false.) then
  16. call Set_IbopLed(.true.)
  17. data%Equipments%TopDrivePanel%TopDriveLinkTiltLed = LED_OFF
  18. return
  19. end if
  20. !TOPDRIVE-CODE=62
  21. if (Get_IbopLed() .and.&
  22. data%Equipments%TopDrivePanel%TopDriveTdsPowerState == TdsPower_OFF .and.&
  23. data%Equipments%TopDrivePanel%TopDriveIbop) then
  24. call Set_IbopLed(.false.)
  25. data%Equipments%TopDrivePanel%TopDriveLinkTiltLed = LED_ON
  26. return
  27. end if
  28. endif
  29. ! if (DriveType == Kelly_DriveType) then
  30. !#ifdef OST
  31. ! if(print_log) print*, 'Evaluate_IbopLed=Kelly'
  32. !#endif
  33. !
  34. ! endif
  35. end subroutine
  36. ! subroutine Subscribe_IbopLed()
  37. ! implicit none
  38. ! end subroutine
  39. end module CTdsIbopLedNotification