stoerungsanzeige.awlpro 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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:01:09.688147"
  4. date_modify="2018-07-08 18:00:11.196283"
  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="100"
  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 "multiinst_aufruf", DB 1
  47. CALL "stoeranzeige_fc" (
  48. stoerung := E 10.0,
  49. quittieren := E 10.1,
  50. blinktakt := M 100.3,
  51. anzeige := A 10.0,
  52. meldespeicher := M 10.0,
  53. flankenmerker := M 10.1,
  54. )
  55. END_ORGANIZATION_BLOCK
  56. ]]></source>
  57. <!-- AWL/STL source code -->
  58. <source enabled="1"
  59. name="Stoerungsanzeige"
  60. type="0"><![CDATA[
  61. FUNCTION_BLOCK "stoeranzeige_fb"
  62. TITLE =
  63. VERSION : 0.1
  64. VAR_INPUT
  65. stoerung : BOOL ;
  66. quittieren : BOOL ;
  67. blinktakt : BOOL ;
  68. END_VAR
  69. VAR_OUTPUT
  70. anzeige : BOOL ;
  71. END_VAR
  72. VAR
  73. meldespeicher : BOOL ;
  74. flankenmerker : BOOL ;
  75. END_VAR
  76. BEGIN
  77. NETWORK
  78. TITLE =
  79. U( ;
  80. U #quittieren;
  81. R #meldespeicher;
  82. U #stoerung;
  83. FP #flankenmerker;
  84. S #meldespeicher;
  85. U #meldespeicher;
  86. ) ;
  87. U #blinktakt;
  88. O ;
  89. UN #meldespeicher;
  90. U #stoerung;
  91. = #anzeige;
  92. END_FUNCTION_BLOCK
  93. FUNCTION "stoeranzeige_fc" : VOID
  94. TITLE =
  95. VERSION : 0.1
  96. VAR_INPUT
  97. stoerung : BOOL ;
  98. quittieren : BOOL ;
  99. blinktakt : BOOL ;
  100. END_VAR
  101. VAR_OUTPUT
  102. anzeige : BOOL ;
  103. END_VAR
  104. VAR_IN_OUT
  105. meldespeicher : BOOL ;
  106. flankenmerker : BOOL ;
  107. END_VAR
  108. BEGIN
  109. NETWORK
  110. TITLE =
  111. U( ;
  112. U #quittieren;
  113. R #meldespeicher;
  114. U #stoerung;
  115. FP #flankenmerker;
  116. S #meldespeicher;
  117. U #meldespeicher;
  118. ) ;
  119. U #blinktakt;
  120. O ;
  121. UN #meldespeicher;
  122. U #stoerung;
  123. = #anzeige;
  124. END_FUNCTION
  125. FUNCTION_BLOCK "multiinst_aufruf"
  126. TITLE =
  127. VERSION : 0.1
  128. VAR
  129. anz1 : "stoeranzeige_fb";
  130. anz2 : "stoeranzeige_fb";
  131. anz3 : "stoeranzeige_fb";
  132. END_VAR
  133. BEGIN
  134. NETWORK
  135. TITLE =
  136. U E 0.0;
  137. = L 0.0;
  138. BLD 103;
  139. U E 1.0;
  140. = L 0.1;
  141. BLD 103;
  142. U M 100.3;
  143. = L 0.2;
  144. BLD 103;
  145. CALL #anz1 (
  146. stoerung := L 0.0,
  147. quittieren := L 0.1,
  148. blinktakt := L 0.2,
  149. anzeige := A 4.0);
  150. NOP 0;
  151. NETWORK
  152. TITLE =
  153. U E 0.1;
  154. = L 0.0;
  155. BLD 103;
  156. U E 1.1;
  157. = L 0.1;
  158. BLD 103;
  159. U M 100.3;
  160. = L 0.2;
  161. BLD 103;
  162. CALL #anz2 (
  163. stoerung := L 0.0,
  164. quittieren := L 0.1,
  165. blinktakt := L 0.2,
  166. anzeige := A 4.1);
  167. NOP 0;
  168. NETWORK
  169. TITLE =
  170. U E 0.2;
  171. = L 0.0;
  172. BLD 103;
  173. U E 1.2;
  174. = L 0.1;
  175. BLD 103;
  176. U M 100.3;
  177. = L 0.2;
  178. BLD 103;
  179. CALL #anz3 (
  180. stoerung := L 0.0,
  181. quittieren := L 0.1,
  182. blinktakt := L 0.2,
  183. anzeige := A 4.2);
  184. NOP 0;
  185. END_FUNCTION_BLOCK
  186. ]]></source>
  187. <!-- AWL/STL source code -->
  188. <source enabled="1"
  189. name="DB"
  190. type="0"><![CDATA[
  191. DATA_BLOCK DB 1
  192. "multiinst_aufruf"
  193. BEGIN
  194. END_DATA_BLOCK
  195. ]]></source>
  196. </language_awl>
  197. <!-- Symbol table configuration -->
  198. <symbols>
  199. <!-- symbol table source code -->
  200. <source enabled="1"
  201. name="Symbol table"
  202. type="3"><![CDATA[
  203. 126,array_db DB 60 DB 60
  204. 126,array_uebung FC 60 FC 60
  205. 126,BLKMOV SFC 20 SFC 20 Copy Variables
  206. 126,CREAT_DB SFC 22 SFC 22 Create Data Block
  207. 126,CTD SFB 1 SFB 1 Count Down
  208. 126,CTU SFB 0 SFB 0 Count Up
  209. 126,date_and_time_db DB 20 DB 20
  210. 126,date_and_time_uebung FC 8 FC 8
  211. 126,db_dynamisch FC 20 FC 20
  212. 126,db_zugriff FC 7 FC 7
  213. 126,dbtest_fb FB 40 FB 40
  214. 126,dbtest_fc FC 10 FC 10
  215. 126,DEL_DB SFC 23 SFC 23 Delete Data Block
  216. 126,DELETE FC 104 FC 104 Delete String
  217. 126,DT_DAY FC 107 FC 107 DT to DAY
  218. 126,flankenerkennung FB 20 FB 20
  219. 126,impulszaehler FB 30 FB 30
  220. 126,impulszaehler_aufruf FB 31 FB 31
  221. 126,laufbandsteuerung FC 3 FC 3
  222. 126,laufbandsteuerung_aufrufFC 4 FC 4
  223. 126,Motor UDT 99 UDT 99
  224. 126,multiinst_aufruf FB 100 FB 100
  225. 126,pufferspeicher FC 5 FC 5
  226. 126,pufferspeicher_aufruf FC 6 FC 6
  227. 126,READ_CLK SFC 1 SFC 1 Read System Clock
  228. 126,Rollfeld_Motor_aufruf FC 53 FC 53
  229. 126,Rollfeld_Motor_FC FC 52 FC 52
  230. 126,Rollfeld_Motoren DB 51 DB 51
  231. 126,SB_DT_DT FC 34 FC 34 Subtract DT - DT
  232. 126,stoeranzeige_fb FB 1 FB 1
  233. 126,stoeranzeige_fc FC 1 FC 1
  234. 126,string_db DB 50 DB 50
  235. 126,string_uebung FC 50 FC 50
  236. 126,taktgenerator FB 15 FB 15
  237. 126,taktgenerator_aufruf FB 16 FB 16
  238. 126,tauchbad FB 10 FB 10
  239. 126,tauchbad_aufruf FB 11 FB 11
  240. 126,TEST_DB SFC 24 SFC 24 Test Data Block
  241. 126,TON SFB 4 SFB 4 Generate an On Delay
  242. 126,TP SFB 3 SFB 3 Generate a Pulse
  243. 126,zaehler_fc FC 2 FC 2
  244. ]]></source>
  245. </symbols>
  246. <!-- Core server link configuration -->
  247. <core_link>
  248. <!-- Locally spawned core server -->
  249. <spawn_local enable="1"
  250. interpreters="$DEFAULT"
  251. port_range_begin="4183"
  252. port_range_end="8278" />
  253. <!-- Remote server connection -->
  254. <connect host="localhost"
  255. port="4151"
  256. timeout_ms="3000" />
  257. <!-- Transport tunnel -->
  258. <tunnel local_port="-1"
  259. type="0">
  260. <ssh executable="ssh"
  261. port="22"
  262. user="pi" />
  263. </tunnel>
  264. </core_link>
  265. <!-- Graphical user interface configuration -->
  266. <gui>
  267. <editor autoindent="1"
  268. paste_autoindent="1"
  269. validation="1" />
  270. </gui>
  271. </awlsim_project>