Simulation Core
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CTdsTorqueWrenchLedNotificationVariables.f90 1.4 KiB

há 2 anos
há 2 anos
há 2 anos
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