EXAMPLE.awlpro 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <!-- Awlsim project file generated by awlsim-0.68.0-pre -->
  3. <awlsim_project date_create="2012-08-13 00:00:00.000000"
  4. date_modify="2018-10-06 19:47:37.884575"
  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="2"
  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="Main"
  31. type="0"><![CDATA[
  32. ORGANIZATION_BLOCK OB 1
  33. BEGIN
  34. CALL FC 1
  35. CALL FC 2
  36. CALL FB 1, DB 2 (
  37. INPUT_VAR := 1
  38. )
  39. CALL FB 30, DB 30 (
  40. INP0 := E 42.0,
  41. INP1 := E 42.1,
  42. INP2 := E 42.2,
  43. INP3 := E 42.3,
  44. INP4 := E 42.4,
  45. OUT0 := A 42.0,
  46. OUT1 := A 42.1,
  47. )
  48. END_ORGANIZATION_BLOCK
  49. ]]></source>
  50. <!-- AWL/STL source code -->
  51. <source enabled="1"
  52. name="FC 1"
  53. type="0"><![CDATA[
  54. FUNCTION FC 1: VOID
  55. BEGIN
  56. U E 0.0
  57. = A 0.0
  58. U "test_symbol_E"
  59. = "test_symbol_A"
  60. END_FUNCTION
  61. ]]></source>
  62. <!-- AWL/STL source code -->
  63. <source enabled="1"
  64. name="FC 2"
  65. type="0"><![CDATA[
  66. FUNCTION FC 2: VOID
  67. TITLE = light chaser
  68. BEGIN
  69. U M 0.0
  70. L S5T#200MS
  71. SV T 10
  72. UN T 10
  73. = M 0.0
  74. L MD 4
  75. L 1
  76. ==D
  77. S M 0.1
  78. RRD 1
  79. ==D
  80. R M 0.1
  81. L MD 4
  82. UD L#-1
  83. L 1
  84. SPZ _001
  85. TAK
  86. U M 0.0
  87. SPBN _001
  88. U M 0.1
  89. SPBN _000
  90. RLD 2
  91. _000: RRD 1
  92. _001: T MD 4
  93. // Outputs in AD 4 and AD 8
  94. L MD 4
  95. T AD 4
  96. TAD
  97. T AD 8
  98. END_FUNCTION
  99. ]]></source>
  100. <!-- AWL/STL source code -->
  101. <source enabled="1"
  102. name="FB 1"
  103. type="0"><![CDATA[
  104. FUNCTION_BLOCK FB 1
  105. VAR_INPUT
  106. INPUT_VAR : INT;
  107. END_VAR
  108. BEGIN
  109. L #INPUT_VAR
  110. T MW 20
  111. END_FUNCTION_BLOCK
  112. DATA_BLOCK DB 2
  113. TITLE = This is an instance DB for FB 1
  114. FB 1
  115. BEGIN
  116. INPUT_VAR := 123;
  117. END_DATA_BLOCK
  118. ]]></source>
  119. <!-- AWL/STL source code -->
  120. <source enabled="1"
  121. name="DB 1"
  122. type="0"><![CDATA[
  123. DATA_BLOCK DB 1
  124. TITLE = This is global DB 1
  125. STRUCT
  126. VAR1 : INT; // DBW0: VAR1 => 16 bit signed int
  127. VAR2 : DWORD; // DBD2: VAR2 => 32 bit unsigned dword
  128. VAR3 : WORD; // DBW6: VAR3 => 16 bit unsigned word
  129. END_STRUCT
  130. BEGIN
  131. VAR1 := 1337;
  132. VAR2 := DW#16#DEADBEEF;
  133. VAR3 := B#(1, 2);
  134. END_DATA_BLOCK
  135. ]]></source>
  136. <!-- AWL/STL source code -->
  137. <source enabled="1"
  138. name="UDT 1"
  139. type="0"><![CDATA[
  140. TYPE UDT 1
  141. // This is an unused example user data type
  142. STRUCT
  143. // ... Insert data structure definitions here ...
  144. TEST : INT;
  145. END_STRUCT;
  146. END_TYPE
  147. ]]></source>
  148. </language_awl>
  149. <!-- FUP/FBD language configuration -->
  150. <language_fup>
  151. <!-- FUP/FBD source code -->
  152. <source enabled="1"
  153. name="Diagram 1"
  154. type="1"><![CDATA[
  155. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  156. <!-- Awlsim FUP/FBD source generated by awlsim-0.68.0-pre -->
  157. <FUP version="0" zoom="1.0">
  158. <blockdecl name="FB 30" type="FB">
  159. <instance_dbs>
  160. <db name="DB 30" />
  161. </instance_dbs>
  162. </blockdecl>
  163. <interface allow_initvalue="1"
  164. allow_inouts="1"
  165. allow_inputs="1"
  166. allow_outputs="1"
  167. allow_retval="0"
  168. allow_stats="1"
  169. allow_temps="1">
  170. <inputs>
  171. <field comment="First input" name="INP0" type="BOOL" uuid="5badb62a-531d-4e6d-b710-5f20fc137f4b" />
  172. <field comment="Second input" name="INP1" type="BOOL" uuid="986cd5c4-de6a-4908-8d41-856fc28cd569" />
  173. <field comment="Third input" name="INP2" type="BOOL" uuid="ea52e5fd-53f8-4530-8468-4221772074e0" />
  174. <field comment="Fourth input" name="INP3" type="BOOL" uuid="158db682-a459-4733-9c1b-341a204a73b1" />
  175. <field comment="Fifth input" name="INP4" type="BOOL" uuid="5f178cf6-4216-41c9-a8e1-8ae442c20379" />
  176. </inputs>
  177. <outputs>
  178. <field comment="First output" name="OUT0" type="BOOL" uuid="23d6599c-269f-45b1-bd26-38daf3101c5d" />
  179. <field comment="Second output" name="OUT1" type="BOOL" uuid="16f1e33c-2f6b-459d-adb7-6c2b857cdf0e" />
  180. </outputs>
  181. <stats>
  182. <field comment="First memory" name="MERKER_0" type="BOOL" uuid="d69f6016-71de-465b-aed3-e78cc03778a7" />
  183. <field comment="Second memory" name="MERKER_1" type="BOOL" uuid="9ff71905-eea8-4b32-9b39-ffc2f766529f" />
  184. </stats>
  185. </interface>
  186. <grids>
  187. <grid height="22" uuid="ec6729e2-b816-4358-a449-8a3d4d20e26a" width="12">
  188. <optimizers all="1" enabled="1" type="awl">
  189. <optimizer enabled="1" name="noprem" />
  190. </optimizers>
  191. <wires>
  192. <wire id="0" uuid="6c29ba8e-97aa-47fc-b4ca-dbbbce3650bf" />
  193. <wire id="1" uuid="4f2bf585-801d-4c0c-8303-ee8a0502590b" />
  194. <wire id="2" uuid="eaa5577c-26e8-410e-825b-337e7cd42dac" />
  195. <wire id="3" uuid="cd4e335a-b773-4a34-97f1-097a319dbecf" />
  196. <wire id="4" uuid="571939a3-5a1b-4d45-9306-1126c0872547" />
  197. <wire id="5" uuid="03ed19d9-1568-46d0-a6a2-0447d14d2fe9" />
  198. <wire id="6" uuid="b5748045-54e9-4f7a-b058-c97d4d1bb0c3" />
  199. <wire id="7" uuid="4044619f-355e-4d5e-bfe7-2357d248e9d9" />
  200. <wire id="8" uuid="4f86ae21-aae4-4ce0-b23b-fa6985e27d1a" />
  201. <wire id="9" uuid="1c42b4af-6c9a-4a59-8f3a-1a144b7fec71" />
  202. <wire id="10" uuid="1f4cb2da-7789-406d-a430-da11682e977d" />
  203. <wire id="11" uuid="1ca64678-ba7e-4304-9952-20ed627f6803" />
  204. <wire id="12" uuid="dae7f0c8-67a7-45e4-b2b2-d44002b4aef4" />
  205. <wire id="13" uuid="359d02c6-f98d-487b-8c1f-67a1b726fde5" />
  206. <wire id="14" uuid="7c698942-28db-44b8-9678-9a8b9c32ba2f" />
  207. <wire id="15" uuid="36383637-c89e-4b67-8ca3-957f6943c55f" />
  208. <wire id="16" uuid="15121298-30a4-4806-8372-d721a2922c07" />
  209. <wire id="17" uuid="45377560-471a-4834-8438-b23e47dfa0e7" />
  210. <wire id="18" uuid="1ead0dad-7c03-4255-98ad-256b1c95380a" />
  211. <wire id="19" uuid="f8c214f0-9c53-4a31-b9db-363557cc09c6" />
  212. <wire id="20" uuid="5c532d43-e8ec-4942-9859-54e21e062e2a" />
  213. <wire id="21" uuid="171763a5-f9a3-4b91-aae4-4db88d55678a" />
  214. </wires>
  215. <elements>
  216. <element content="#INP0" subtype="load" type="operand" uuid="dd40fe96-3dc8-4ee3-aa1c-61e80db3c0db" x="4" y="2">
  217. <connections>
  218. <connection dir_in="0" dir_out="1" pos="0" uuid="594272e2-62ec-4c58-8ab2-707a6df5131a" wire="9" />
  219. </connections>
  220. </element>
  221. <element content="#OUT0" subtype="assign" type="operand" uuid="fac61190-bcd9-47a2-aa71-b976414a5451" x="7" y="3">
  222. <connections>
  223. <connection dir_in="1" dir_out="0" pos="0" uuid="895bbddb-e219-4463-9b8a-4668c26f8abb" wire="2" />
  224. </connections>
  225. </element>
  226. <element subtype="or" type="boolean" uuid="db790707-d101-46c2-8df5-24348afb3558" x="5" y="2">
  227. <connections>
  228. <connection dir_in="1" dir_out="0" pos="0" uuid="5f8acff9-659b-4ced-b069-d9e9ce7bef26" wire="9" />
  229. <connection dir_in="1" dir_out="0" pos="1" uuid="2abe45d9-0227-4e11-8caa-caa98987c0ea" wire="5" />
  230. <connection dir_in="0" dir_out="1" inverted="1" pos="0" uuid="eb786b6c-a689-479b-94fc-cc9e274f7ec3" wire="2" />
  231. </connections>
  232. </element>
  233. <element subtype="and" type="boolean" uuid="f3fe3795-7812-4cb2-b0ae-79bafefb4c81" x="2" y="1">
  234. <connections>
  235. <connection dir_in="1" dir_out="0" pos="0" uuid="bab2bf91-5f0c-4dc2-84e8-dc416fcfe1e9" wire="0" />
  236. <connection dir_in="1" dir_out="0" inverted="1" pos="1" uuid="df8866c1-86bf-44de-b957-e77d47726591" wire="1" />
  237. <connection dir_in="1" dir_out="0" pos="2" uuid="670fda0d-b6ef-43af-8508-9a8b8c999df1" wire="8" />
  238. <connection dir_in="0" dir_out="1" inverted="1" pos="0" uuid="f60d2f61-1bd5-4385-853b-b1bd0cb5e849" wire="5" />
  239. </connections>
  240. </element>
  241. <element content="#INP1" subtype="load" type="operand" uuid="f1fa06a8-4483-4c14-b978-9c942d2c7050" x="1" y="1">
  242. <connections>
  243. <connection dir_in="0" dir_out="1" pos="0" uuid="2aef6fbe-4fda-40e3-947a-e784bf8ff747" wire="0" />
  244. </connections>
  245. </element>
  246. <element content="#INP2" subtype="load" type="operand" uuid="5c19d461-ec9d-4e05-80ac-358bd0fa2286" x="1" y="2">
  247. <connections>
  248. <connection dir_in="0" dir_out="1" pos="0" uuid="2cab50ca-736c-4525-96df-b5b2669c7b20" wire="1" />
  249. </connections>
  250. </element>
  251. <element content="#INP4" subtype="load" type="operand" uuid="990642f2-5319-4259-b031-fefa1f48daad" x="5" y="7">
  252. <connections>
  253. <connection dir_in="0" dir_out="1" pos="0" uuid="9fe9278a-ce65-410a-92b6-d658d5443058" wire="11" />
  254. </connections>
  255. </element>
  256. <element content="#OUT1" subtype="assign" type="operand" uuid="b65c891b-c36e-4d3e-a812-b034fb1d2e65" x="7" y="7">
  257. <connections>
  258. <connection dir_in="1" dir_out="0" pos="0" uuid="0e1f15f4-34a1-437c-aa6e-5472ba0bcb91" wire="10" />
  259. </connections>
  260. </element>
  261. <element type="move" uuid="61d759e9-a8de-44c9-99ea-85872ca89083" x="3" y="11">
  262. <connections>
  263. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="8e404730-f73a-4703-8446-f4672f05b229" wire="13" />
  264. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="6051eed2-320f-4fb1-b39a-d0066d3fe2f9" wire="3" />
  265. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="cefaa754-bfa0-4f73-aa42-18c3f1743e33" wire="4" />
  266. <connection dir_in="0" dir_out="1" pos="1" text="OUT1" uuid="5760f279-a838-452b-8df5-c6bf024b283e" wire="16" />
  267. <connection dir_in="0" dir_out="1" pos="2" text="ENO" uuid="3e52f396-89a9-41db-805b-361509fb9470" wire="6" />
  268. </connections>
  269. </element>
  270. <element content="DB1.DBD 2" subtype="load" type="operand" uuid="520ffe5d-31f6-4bb0-a3e8-c81adaebd58b" x="2" y="13">
  271. <connections>
  272. <connection dir_in="0" dir_out="1" pos="0" uuid="17fadabf-48d6-4875-883c-7e72d282a5bb" wire="3" />
  273. </connections>
  274. </element>
  275. <element content="AD 104" subtype="assign" type="operand" uuid="7501bc2a-dbfe-47f1-b1c8-8053a60d531d" x="4" y="12">
  276. <connections>
  277. <connection dir_in="1" dir_out="0" pos="0" uuid="a926036a-6a87-4c75-962a-66f7fa862744" wire="4" />
  278. </connections>
  279. </element>
  280. <element content="E 100.0" subtype="load" type="operand" uuid="4a41670d-a790-41e5-8b57-f15771f27026" x="1" y="11">
  281. <connections>
  282. <connection dir_in="0" dir_out="1" pos="0" uuid="d12d0dec-7bec-49bb-b4e7-1f02374b8774" wire="12" />
  283. </connections>
  284. </element>
  285. <element content="A 100.0" subtype="assign" type="operand" uuid="36ce2179-3ecf-4598-98e6-4945f7d2a56e" x="5" y="17">
  286. <connections>
  287. <connection dir_in="1" dir_out="0" pos="0" uuid="451b037e-391f-4813-aed2-d4415b3438c9" wire="7" />
  288. </connections>
  289. </element>
  290. <element content="AD 108" subtype="assign" type="operand" uuid="50662a02-8373-4e40-94a6-12828e3e3470" x="7" y="11">
  291. <connections>
  292. <connection dir_in="1" dir_out="0" pos="0" uuid="d6d9166a-4ab5-4794-8eec-3bfa56b51209" wire="15" />
  293. </connections>
  294. </element>
  295. <element content="E 100.1" subtype="load" type="operand" uuid="55795003-889e-47d2-bfe2-2322a0080555" x="5" y="11">
  296. <connections>
  297. <connection dir_in="0" dir_out="1" pos="0" uuid="759743ed-e15f-4e69-957d-410d7bac4b45" wire="14" />
  298. </connections>
  299. </element>
  300. <element content="E 100.2" subtype="load" type="operand" uuid="fde63657-c6d9-475f-a47c-8a2e8904c622" x="3" y="17">
  301. <connections>
  302. <connection dir_in="0" dir_out="1" pos="0" uuid="e74781af-3f49-4a7e-9f8c-23475ff43a09" wire="20" />
  303. </connections>
  304. </element>
  305. <element subtype="xor" type="boolean" uuid="bcf15bb6-c979-4da4-9f38-8c4c34f17775" x="4" y="15">
  306. <connections>
  307. <connection dir_in="1" dir_out="0" inverted="1" pos="0" uuid="986bcbd0-491e-41c1-80c8-069838095afc" wire="6" />
  308. <connection dir_in="1" dir_out="0" pos="1" uuid="332f338a-d62b-4e7d-9aa5-0915868d89dd" wire="21" />
  309. <connection dir_in="1" dir_out="0" pos="2" uuid="97523b32-5541-4d65-8448-b0e57ceba2df" wire="20" />
  310. <connection dir_in="0" dir_out="1" pos="0" uuid="635205a3-4d49-4a2b-89bd-634365bbf47e" wire="7" />
  311. </connections>
  312. </element>
  313. <element content="#INP3" subtype="load" type="operand" uuid="f7986f75-bcad-41e1-a088-189287c2f6dc" x="1" y="3">
  314. <connections>
  315. <connection dir_in="0" dir_out="1" pos="0" uuid="b3021391-4d23-4a9b-8b4a-4655709ed40d" wire="8" />
  316. </connections>
  317. </element>
  318. <element subtype="sr" type="boolean" uuid="de7e967b-1b7a-4d64-85f6-0fe74ab2a293" x="6" y="5">
  319. <connections>
  320. <connection dir_in="1" dir_out="0" inverted="1" pos="0" text="S" uuid="3ec06cec-5501-44b7-b472-3635e6134449" wire="2" />
  321. <connection dir_in="1" dir_out="0" pos="1" text="R" uuid="33ce3395-fd86-4c5f-8310-95ddc342a8aa" wire="11" />
  322. <connection dir_in="0" dir_out="1" inverted="1" pos="0" text="Q" uuid="44d5ab22-25a9-4fb6-b48f-39410cf15c1f" wire="10" />
  323. </connections>
  324. <subelements>
  325. <element content="#MERKER_0" subtype="embedded" type="operand" uuid="1bb3bbe2-14eb-4daa-aedf-d2f7ec5cb146" x="0" y="0" />
  326. </subelements>
  327. </element>
  328. <element subtype="fp" type="boolean" uuid="4ce699a0-8dd7-4d3b-a317-d41da7a1dccb" x="2" y="10">
  329. <connections>
  330. <connection dir_in="1" dir_out="0" pos="0" uuid="bfe98549-a876-496d-8b5b-ba7d6da8bd39" wire="12" />
  331. <connection dir_in="0" dir_out="1" pos="0" uuid="4eedf698-fea8-4628-9767-271bbe1c510e" wire="13" />
  332. </connections>
  333. <subelements>
  334. <element content="#MERKER_1" subtype="embedded" type="operand" uuid="16127cfe-52ce-403a-969e-7fcaf803ef72" x="0" y="0" />
  335. </subelements>
  336. </element>
  337. <element subtype="mul-dint" type="arithmetic" uuid="dffd0a31-1b30-4c13-9501-70b2948f236d" x="6" y="11">
  338. <connections>
  339. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="193df81e-8874-4800-9c8f-ccf68bc5163f" wire="14" />
  340. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="551c416c-5f1b-4515-965b-6bf9d3c70410" wire="17" />
  341. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="6589c55e-c38e-4383-898e-0dcf009d4dd0" wire="16" />
  342. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="60cff0ce-7946-4ca8-827e-8f959bfb0e5e" wire="15" />
  343. <connection dir_in="0" dir_out="1" pos="1" text="==0" uuid="603a2ca1-0dbb-4dbe-a853-aec8237a3b50" wire="18" />
  344. <connection dir_in="0" dir_out="1" pos="2" text="OV" uuid="d43d948e-4d15-4b78-a0fd-044cad0bd68a" wire="19" />
  345. <connection dir_in="0" dir_out="1" pos="3" text="ENO" uuid="4d09c31c-0563-403e-a811-d849443509de" wire="-1" />
  346. </connections>
  347. </element>
  348. <element content="L#2" subtype="load" type="operand" uuid="9f75d612-dda4-4198-be1b-fde2cabc60da" x="5" y="12">
  349. <connections>
  350. <connection dir_in="0" dir_out="1" pos="0" uuid="bcc4da37-adfd-4929-9e62-a9acc72f38af" wire="17" />
  351. </connections>
  352. </element>
  353. <element content="A 112.0" subtype="assign" type="operand" uuid="cf215e40-2edf-4da8-a7c4-38394b4c6553" x="7" y="12">
  354. <connections>
  355. <connection dir_in="1" dir_out="0" pos="0" uuid="d69a26b0-e748-4271-884e-dc35b4353b16" wire="18" />
  356. </connections>
  357. </element>
  358. <element content="A 112.1" subtype="assign" type="operand" uuid="4dd79e00-1125-440b-875e-d820094d7224" x="7" y="13">
  359. <connections>
  360. <connection dir_in="1" dir_out="0" pos="0" uuid="e131342e-f15a-4799-9061-60b23607cb8f" wire="19" />
  361. </connections>
  362. </element>
  363. <element content="Warning:&#10;This is an important comment.&#10;&#10;Lorem ipsum dolor sit amet,&#10;consectetur adipiscing elit,&#10;sed do eiusmod tempor&#10;incididunt ut labore et dolore&#10;magna aliqua." type="comment" uuid="22d35b12-35d9-434c-b7c7-471eb389b3e8" x="2" y="5" />
  364. <element content="E 100.3" enabled="0" subtype="load" type="operand" uuid="1fd32ff9-0fbb-4af8-b319-f85ea84a76a0" x="3" y="16">
  365. <connections>
  366. <connection dir_in="0" dir_out="1" pos="0" uuid="9c3d36dc-37c5-4fca-a2cc-36b56016a4b7" wire="21" />
  367. </connections>
  368. </element>
  369. </elements>
  370. </grid>
  371. </grids>
  372. </FUP>
  373. ]]></source>
  374. </language_fup>
  375. <!-- Symbol table configuration -->
  376. <symbols>
  377. <!-- symbol table source code -->
  378. <source enabled="1"
  379. name="symbol table"
  380. type="3"><![CDATA[
  381. 126,test_symbol_E E 32.0 BOOL This is a symbol
  382. 126,test_symbol_A A 32.0 BOOL
  383. ]]></source>
  384. </symbols>
  385. <!-- Standard library selections -->
  386. <libraries>
  387. <!-- Standard library selection -->
  388. <lib_selection effective_index="21"
  389. index="21"
  390. name="IEC"
  391. type="FC" />
  392. </libraries>
  393. <!-- Core server link configuration -->
  394. <core_link>
  395. <!-- Locally spawned core server -->
  396. <spawn_local enable="1"
  397. interpreters="$DEFAULT"
  398. port_range_begin="4183"
  399. port_range_end="8278" />
  400. <!-- Remote server connection -->
  401. <connect host="192.168.179.31"
  402. port="4151"
  403. timeout_ms="3000" />
  404. <!-- Transport tunnel -->
  405. <tunnel local_port="-1"
  406. type="0">
  407. <ssh executable="ssh"
  408. port="22"
  409. user="pi" />
  410. </tunnel>
  411. </core_link>
  412. <!-- Hardware modules configuration -->
  413. <hardware>
  414. <!-- Loaded hardware module -->
  415. <module name="dummy">
  416. <params>
  417. <param name="enabled"
  418. value="True" />
  419. <param name="inputAddressBase"
  420. value="0" />
  421. <param name="outputAddressBase"
  422. value="0" />
  423. </params>
  424. </module>
  425. </hardware>
  426. <!-- Graphical user interface configuration -->
  427. <gui>
  428. <!-- AWL editor settings -->
  429. <editor autoindent="1"
  430. font="Courier,11,-1,5,50,0,0,0,0,0"
  431. paste_autoindent="1"
  432. validation="1" />
  433. <!-- CPU state view layout -->
  434. <cpu_view>
  435. <cpu_view_window config=""
  436. type="0"
  437. x="0"
  438. y="0" />
  439. <cpu_view_window config="addr=0;addrspace=E;format=checkbox;width=8"
  440. type="2"
  441. x="1068"
  442. y="0" />
  443. <cpu_view_window config="addr=4;addrspace=A;format=checkbox;width=32"
  444. type="2"
  445. x="461"
  446. y="0" />
  447. <cpu_view_window config="addr=0;addrspace=A;format=checkbox;width=8"
  448. type="2"
  449. x="1068"
  450. y="114" />
  451. <cpu_view_window config=""
  452. type="1"
  453. x="0"
  454. y="364" />
  455. <cpu_view_window config="addr=4;addrspace=M;format=hex;width=32"
  456. type="2"
  457. x="712"
  458. y="410" />
  459. <cpu_view_window config="addr=2;addrspace=DB;db=1;format=hex;width=32"
  460. type="2"
  461. x="712"
  462. y="522" />
  463. <cpu_view_window config="format=s5t;index=10"
  464. type="4"
  465. x="713"
  466. y="207" />
  467. <cpu_view_window config="format=bcd;index=1"
  468. type="5"
  469. x="713"
  470. y="309" />
  471. <cpu_view_window config="addr=4;endian=be;format=signed-bcd;width=32"
  472. type="3"
  473. x="461"
  474. y="207" />
  475. </cpu_view>
  476. </gui>
  477. </awlsim_project>