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.

CTdsTorqueWrenchLedNotificationVariables.f90 1.4 KiB

1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. module CTdsTorqueWrenchLedNotificationVariables
  2. use CVoidEventHandlerCollection
  3. implicit none
  4. integer :: TorqueWrenchLed = 0
  5. public
  6. type(VoidEventHandlerCollection) :: OnTorqueWrenchLedChange
  7. private :: TorqueWrenchLed
  8. contains
  9. subroutine Set_TorqueWrenchLed(v)
  10. use CTopDrivePanelVariables!, only: TopDrivePanel%TopDriveTorqueWrenchLed
  11. implicit none
  12. integer , intent(in) :: v
  13. #ifdef ExcludeExtraChanges
  14. if(TorqueWrenchLed == v) return
  15. #endif
  16. TorqueWrenchLed = v
  17. TopDrivePanel%TopDriveTorqueWrenchLed = v
  18. call OnTorqueWrenchLedChange%RunAll()
  19. end subroutine
  20. logical function Get_TorqueWrenchLed()
  21. implicit none
  22. Get_TorqueWrenchLed = TorqueWrenchLed
  23. end function
  24. subroutine Set_TorqueWrenchLed_WN(v)
  25. !DEC$ ATTRIBUTES DLLEXPORT :: Set_TorqueWrenchLed_WN
  26. !DEC$ ATTRIBUTES ALIAS: 'Set_TorqueWrenchLed_WN' :: Set_TorqueWrenchLed_WN
  27. implicit none
  28. integer , intent(in) :: v
  29. call Set_TorqueWrenchLed(v)
  30. end subroutine
  31. logical function Get_TorqueWrenchLed_WN()
  32. !DEC$ ATTRIBUTES DLLEXPORT :: Get_TorqueWrenchLed_WN
  33. !DEC$ ATTRIBUTES ALIAS: 'Get_TorqueWrenchLed_WN' :: Get_TorqueWrenchLed_WN
  34. implicit none
  35. Get_TorqueWrenchLed_WN = TorqueWrenchLed
  36. end function
  37. end module CTdsTorqueWrenchLedNotificationVariables