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.i90 1.4 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/CSharp/OperationScenarios/Notifications/CTdsTorqueWrenchLedNotification.f90"
  2. module CTdsTorqueWrenchLedNotification
  3. use OperationScenariosModule
  4. implicit none
  5. contains
  6. subroutine Evaluate_TorqueWrenchLed()
  7. implicit none
  8. if (data%Configuration%Hoisting%DriveType == TopDrive_DriveType) then
  9. # 12
  10. !TOPDRIVE-CODE=81
  11. if((Get_TdsBackupClamp() == BACKUP_CLAMP_OFF_BEGIN .or.&
  12. Get_TdsBackupClamp() == BACKUP_CLAMP_FW_BEGIN) .and.&
  13. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  14. call Set_TorqueWrenchLed(LED_BLINK)
  15. return
  16. endif
  17. !TOPDRIVE-CODE=81
  18. if(Get_TdsBackupClamp() == BACKUP_CLAMP_FW_END .and.&
  19. data%Equipments%TopDrivePanel%TopDriveTdsPowerState /= TdsPower_OFF) then
  20. call Set_TorqueWrenchLed(LED_ON)
  21. return
  22. endif
  23. call Set_TorqueWrenchLed(LED_OFF)
  24. endif
  25. if (data%Configuration%Hoisting%DriveType == Kelly_DriveType) then
  26. # 45
  27. endif
  28. end subroutine
  29. ! subroutine Subscribe_TorqueWrenchLed()
  30. ! implicit none
  31. ! end subroutine
  32. end module CTdsTorqueWrenchLedNotification