plc-connector-main.plantuml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @startuml PLC-Connector-main
  2. header <font color=white>**Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample Text Sample**</font>
  3. skinparam dpi 400
  4. skinparam TitleFontSize 24
  5. title Programmablauf PLC-Connector
  6. right footer jomueller, 08.2022
  7. <style>
  8. activityDiagram {
  9. BackgroundColor #C8C7FF
  10. BorderColor #7777cc
  11. partition {
  12. LineColor #7777cc
  13. RoundCorner 10
  14. BackgroundColor #fff
  15. }
  16. diamond {
  17. BackgroundColor #fff
  18. LineColor #000
  19. }
  20. }
  21. document {
  22. BackgroundColor #fff
  23. }
  24. </style>
  25. start
  26. :read config file;
  27. : initialze
  28. input modules,
  29. middlewares, and
  30. output modules;
  31. partition Inputs {
  32. while (foreach input module)
  33. if (enabled?) then (yes)
  34. #FFC5C4:start input thread|
  35. endif
  36. end while (end)
  37. }
  38. repeat
  39. :read input queues<
  40. partition Middlewares {
  41. -> values;
  42. :initialize list of results;
  43. while (foreach middlewares module)
  44. if (module enabled?) then (yes)
  45. #FFC5C4:execute module|
  46. if (output enabled?) then (yes)
  47. :append result to list/
  48. endif
  49. :run submodules recursively;
  50. endif
  51. end while (end)
  52. }
  53. -> results;
  54. partition Outputs {
  55. while (foreach output module)
  56. if (enabled?) then (yes)
  57. #FFC5C4:write results to output>
  58. endif
  59. end while (end)
  60. }
  61. backward :sleep;
  62. repeat while(end program?)
  63. -> yes;
  64. :stop input threads;
  65. stop
  66. @enduml