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.

CTdsPowerLedNotification.f90 1.0 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. module CTdsPowerLedNotification
  2. use OperationScenariosModule
  3. use SimulationVariables
  4. implicit none
  5. contains
  6. subroutine Evaluate_PowerLed()
  7. use CCommon
  8. implicit none
  9. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  10. #ifdef OST
  11. print*, 'Evaluate_PowerLed=TopDrive'
  12. #endif
  13. !TOPDRIVE-CODE=63
  14. if (data%EquipmentControl%TopDrivePanel%TopDriveTdsPowerState == TdsPower_OFF) then
  15. call Set_PowerLed(.true.)
  16. return
  17. end if
  18. endif
  19. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  20. #ifdef OST
  21. print*, 'Evaluate_PowerLed=Kelly'
  22. #endif
  23. endif
  24. end subroutine
  25. ! subroutine Subscribe_PowerLed()
  26. ! implicit none
  27. ! end subroutine
  28. end module CTdsPowerLedNotification