laufbandsteuerung.awlpro 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!-- Awlsim project file generated by awlsim-0.66.0-pre -->
  3. <awlsim_project date_create="2015-02-01 14:31:01.558026"
  4. date_modify="2018-07-08 18:00:12.249856"
  5. format_version="1">
  6. <!-- CPU core configuration -->
  7. <cpu>
  8. <!-- CPU core feature specification -->
  9. <specs call_stack_size="256"
  10. nr_accus="2"
  11. nr_counters="256"
  12. nr_flags="2048"
  13. nr_inputs="128"
  14. nr_localbytes="1024"
  15. nr_outputs="128"
  16. nr_timers="256"
  17. parenthesis_stack_size="7" />
  18. <!-- CPU core configuration -->
  19. <config clock_memory_byte="-1"
  20. cycle_time_limit_us="1000000"
  21. ext_insns_enable="0"
  22. mnemonics="0"
  23. ob_startinfo_enable="0"
  24. run_time_limit_us="-1" />
  25. </cpu>
  26. <!-- AWL/STL language configuration -->
  27. <language_awl>
  28. <!-- AWL/STL source code -->
  29. <source enabled="1"
  30. name="OB1"
  31. type="0"><![CDATA[
  32. ORGANIZATION_BLOCK OB 1
  33. VAR_TEMP
  34. OB1_EV_CLASS : BYTE; // Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
  35. OB1_SCAN_1 : BYTE; // 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
  36. OB1_PRIORITY : BYTE; // Priority of OB execution
  37. OB1_OB_NUMBR : BYTE; // 1 (Organization block 1, OB 1)
  38. OB1_RESERVED_1 : BYTE;
  39. OB1_RESERVED_2 : BYTE;
  40. OB1_PREV_CYCLE : INT; // Cycle time of previous OB 1 scan (milliseconds)
  41. OB1_MIN_CYCLE : INT; // Minimum cycle time of OB 1 (milliseconds)
  42. OB1_MAX_CYCLE : INT; // Maximum cycle time of OB 1 (milliseconds)
  43. OB1_DATE_TIME : DATE_AND_TIME; // Date and time OB 1 started
  44. END_VAR
  45. BEGIN
  46. CALL "laufbandsteuerung_aufruf"
  47. END_ORGANIZATION_BLOCK
  48. ]]></source>
  49. <!-- AWL/STL source code -->
  50. <source enabled="1"
  51. name="Laufbandsteuerung"
  52. type="0"><![CDATA[
  53. FUNCTION "laufbandsteuerung" : VOID
  54. TITLE =
  55. VERSION : 0.1
  56. VAR_INPUT
  57. start : BOOL ;
  58. endschalter : BOOL ;
  59. zaehler : COUNTER ;
  60. anzahl_teile_bcd : WORD ;
  61. END_VAR
  62. VAR_OUTPUT
  63. meldeleuchte : BOOL ;
  64. motor : BOOL ;
  65. END_VAR
  66. BEGIN
  67. NETWORK
  68. TITLE =
  69. U #endschalter;
  70. ZR #zaehler;
  71. BLD 101;
  72. U #start;
  73. L #anzahl_teile_bcd;
  74. S #zaehler;
  75. NOP 0;
  76. NOP 0;
  77. NOP 0;
  78. U #zaehler;
  79. = L 0.0;
  80. UN L 0.0;
  81. = #meldeleuchte;
  82. U L 0.0;
  83. BLD 102;
  84. = #motor;
  85. END_FUNCTION
  86. FUNCTION "laufbandsteuerung_aufruf" : VOID
  87. TITLE =
  88. VERSION : 0.1
  89. BEGIN
  90. NETWORK
  91. TITLE =
  92. U E 1.1;
  93. = L 0.0;
  94. BLD 103;
  95. U E 2.1;
  96. = L 0.1;
  97. BLD 103;
  98. CALL "laufbandsteuerung" (
  99. start := L 0.0,
  100. endschalter := L 0.1,
  101. zaehler := Z 1,
  102. anzahl_teile_bcd := W#16#10,
  103. meldeleuchte := A 4.1,
  104. motor := A 5.1);
  105. NOP 0;
  106. NETWORK
  107. TITLE =
  108. U E 1.2;
  109. = L 0.0;
  110. BLD 103;
  111. U E 2.2;
  112. = L 0.1;
  113. BLD 103;
  114. CALL "laufbandsteuerung" (
  115. start := L 0.0,
  116. endschalter := L 0.1,
  117. zaehler := Z 2,
  118. anzahl_teile_bcd := W#16#12,
  119. meldeleuchte := A 4.2,
  120. motor := A 5.2);
  121. NOP 0;
  122. NETWORK
  123. TITLE =
  124. U E 1.3;
  125. = L 0.0;
  126. BLD 103;
  127. U E 2.3;
  128. = L 0.1;
  129. BLD 103;
  130. CALL "laufbandsteuerung" (
  131. start := L 0.0,
  132. endschalter := L 0.1,
  133. zaehler := Z 3,
  134. anzahl_teile_bcd := W#16#18,
  135. meldeleuchte := A 4.3,
  136. motor := A 5.3);
  137. NOP 0;
  138. END_FUNCTION
  139. ]]></source>
  140. </language_awl>
  141. <!-- Symbol table configuration -->
  142. <symbols>
  143. <!-- symbol table source code -->
  144. <source enabled="1"
  145. name="Symbol table"
  146. type="3"><![CDATA[
  147. 126,array_db DB 60 DB 60
  148. 126,array_uebung FC 60 FC 60
  149. 126,BLKMOV SFC 20 SFC 20 Copy Variables
  150. 126,CREAT_DB SFC 22 SFC 22 Create Data Block
  151. 126,CTD SFB 1 SFB 1 Count Down
  152. 126,CTU SFB 0 SFB 0 Count Up
  153. 126,date_and_time_db DB 20 DB 20
  154. 126,date_and_time_uebung FC 8 FC 8
  155. 126,db_dynamisch FC 20 FC 20
  156. 126,db_zugriff FC 7 FC 7
  157. 126,dbtest_fb FB 40 FB 40
  158. 126,dbtest_fc FC 10 FC 10
  159. 126,DEL_DB SFC 23 SFC 23 Delete Data Block
  160. 126,DELETE FC 104 FC 104 Delete String
  161. 126,DT_DAY FC 107 FC 107 DT to DAY
  162. 126,flankenerkennung FB 20 FB 20
  163. 126,impulszaehler FB 30 FB 30
  164. 126,impulszaehler_aufruf FB 31 FB 31
  165. 126,laufbandsteuerung FC 3 FC 3
  166. 126,laufbandsteuerung_aufrufFC 4 FC 4
  167. 126,Motor UDT 99 UDT 99
  168. 126,multiinst_aufruf FB 100 FB 100
  169. 126,pufferspeicher FC 5 FC 5
  170. 126,pufferspeicher_aufruf FC 6 FC 6
  171. 126,READ_CLK SFC 1 SFC 1 Read System Clock
  172. 126,Rollfeld_Motor_aufruf FC 53 FC 53
  173. 126,Rollfeld_Motor_FC FC 52 FC 52
  174. 126,Rollfeld_Motoren DB 51 DB 51
  175. 126,SB_DT_DT FC 34 FC 34 Subtract DT - DT
  176. 126,stoeranzeige_fb FB 1 FB 1
  177. 126,stoeranzeige_fc FC 1 FC 1
  178. 126,string_db DB 50 DB 50
  179. 126,string_uebung FC 50 FC 50
  180. 126,taktgenerator FB 15 FB 15
  181. 126,taktgenerator_aufruf FB 16 FB 16
  182. 126,tauchbad FB 10 FB 10
  183. 126,tauchbad_aufruf FB 11 FB 11
  184. 126,TEST_DB SFC 24 SFC 24 Test Data Block
  185. 126,TON SFB 4 SFB 4 Generate an On Delay
  186. 126,TP SFB 3 SFB 3 Generate a Pulse
  187. 126,zaehler_fc FC 2 FC 2
  188. ]]></source>
  189. </symbols>
  190. <!-- Core server link configuration -->
  191. <core_link>
  192. <!-- Locally spawned core server -->
  193. <spawn_local enable="1"
  194. interpreters="$DEFAULT"
  195. port_range_begin="4183"
  196. port_range_end="8278" />
  197. <!-- Remote server connection -->
  198. <connect host="localhost"
  199. port="4151"
  200. timeout_ms="3000" />
  201. <!-- Transport tunnel -->
  202. <tunnel local_port="-1"
  203. type="0">
  204. <ssh executable="ssh"
  205. port="22"
  206. user="pi" />
  207. </tunnel>
  208. </core_link>
  209. <!-- Graphical user interface configuration -->
  210. <gui>
  211. <editor autoindent="1"
  212. paste_autoindent="1"
  213. validation="1" />
  214. </gui>
  215. </awlsim_project>