headers.awl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. ORGANIZATION_BLOCK OB 1
  2. TITLE = This is the title
  3. { attribute1 := 'value 1';
  4. attribute2 := 'value 2' }
  5. AUTHOR : This is the author
  6. FAMILY : This is the family
  7. NAME : This is the name
  8. VERSION : 0.1
  9. KNOW_HOW_PROTECT
  10. STANDARD
  11. VAR_TEMP
  12. // Temporary variables
  13. a : INT;
  14. END_VAR
  15. BEGIN
  16. NETWORK
  17. TITLE = This is the first network title
  18. NOP 0
  19. NETWORK
  20. TITLE = This is the second network title
  21. NOP 0
  22. CALL SFC 46 // STOP CPU
  23. END_ORGANIZATION_BLOCK
  24. FUNCTION FC 1: VOID
  25. TITLE = This is the title
  26. { attribute1 := 'value 1'; attribute2 := 'value 2' }
  27. AUTHOR : This is the author
  28. FAMILY : This is the family
  29. NAME : This is the name
  30. VERSION : 0.1
  31. KNOW_HOW_PROTECT
  32. STANDARD
  33. VAR_INPUT
  34. // Input variables
  35. a : INT;
  36. END_VAR
  37. VAR_OUTPUT
  38. // Output variables
  39. b : INT;
  40. END_VAR
  41. VAR_IN_OUT
  42. // Input/output variables
  43. c : INT;
  44. END_VAR
  45. VAR_TEMP
  46. // Temporary variables
  47. d : INT;
  48. END_VAR
  49. BEGIN
  50. NETWORK
  51. TITLE = This is the first network title
  52. NOP 0
  53. NETWORK
  54. TITLE = This is the second network title
  55. NOP 0
  56. END_FUNCTION
  57. FUNCTION_BLOCK FB 1
  58. TITLE = This is the title
  59. { attribute1 := 'value 1'; attribute2 := 'value 2' }
  60. AUTHOR : This is the author
  61. FAMILY : This is the family
  62. NAME : This is the name
  63. VERSION : 0.1
  64. KNOW_HOW_PROTECT
  65. STANDARD
  66. VAR
  67. // Static variables
  68. a : INT;
  69. END_VAR
  70. VAR_INPUT
  71. // Input variables
  72. b : INT;
  73. END_VAR
  74. VAR_OUTPUT
  75. // Output variables
  76. c : INT;
  77. END_VAR
  78. VAR_IN_OUT
  79. // Input/output variables
  80. d : INT;
  81. END_VAR
  82. VAR_TEMP
  83. // Temporary variables
  84. e : INT;
  85. END_VAR
  86. BEGIN
  87. NETWORK
  88. TITLE = This is the first network title
  89. NOP 0
  90. NETWORK
  91. TITLE = This is the second network title
  92. NOP 0
  93. END_FUNCTION_BLOCK
  94. DATA_BLOCK DB 1
  95. TITLE = This is the title
  96. AUTHOR : This is the author
  97. FAMILY : This is the family
  98. NAME : This is the name
  99. VERSION : 0.1
  100. KNOW_HOW_PROTECT
  101. STANDARD
  102. STRUCT
  103. // Data structure
  104. a : INT;
  105. END_STRUCT;
  106. BEGIN
  107. END_DATA_BLOCK
  108. DATA_BLOCK DB 2
  109. FB 1
  110. TITLE = This is the title
  111. AUTHOR : This is the author
  112. FAMILY : This is the family
  113. NAME : This is the name
  114. VERSION : 0.1
  115. KNOW_HOW_PROTECT
  116. STANDARD
  117. BEGIN
  118. END_DATA_BLOCK
  119. DATA_BLOCK DB 3
  120. SFB -1
  121. TITLE = This is the title
  122. AUTHOR : This is the author
  123. FAMILY : This is the family
  124. NAME : This is the name
  125. VERSION : 0.1
  126. KNOW_HOW_PROTECT
  127. STANDARD
  128. BEGIN
  129. END_DATA_BLOCK
  130. TYPE UDT 1
  131. TITLE = This is the title
  132. AUTHOR : This is the author
  133. FAMILY : This is the family
  134. NAME : This is the name
  135. VERSION : 0.1
  136. KNOW_HOW_PROTECT
  137. STANDARD
  138. STRUCT
  139. // Data structure
  140. a : INT;
  141. END_STRUCT;
  142. END_TYPE