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.

CTdsTorqueWrenchLedNotification.f90 1.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. module CTdsTorqueWrenchLedNotification
  2. use COperationScenariosVariables
  3. implicit none
  4. contains
  5. subroutine Evaluate_TorqueWrenchLed()
  6. implicit none
  7. if (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. 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. 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 (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