fup-conv.awlpro 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  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="2018-05-31 13:37:12.677674"
  4. date_modify="2018-07-08 18:00:18.822920"
  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="1"
  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_TEST_conv_0"
  35. CALL "FC_TEST_conv_1"
  36. CALL SFC 46 // STOP CPU
  37. END_ORGANIZATION_BLOCK
  38. ]]></source>
  39. <!-- AWL/STL source code -->
  40. <source enabled="1"
  41. name="TEST conv_0"
  42. type="0"><![CDATA[
  43. FUNCTION "FC_TEST_conv_0" : VOID
  44. BEGIN
  45. L 0
  46. T MD 0
  47. T MW 4
  48. T MD 6
  49. T MW 10
  50. T MD 12
  51. T MD 16
  52. T MD 20
  53. T MD 24
  54. T MD 28
  55. T MD 32
  56. T MD 36
  57. T MW 40
  58. T MD 42
  59. T MW 46
  60. T MD 48
  61. T MW 52
  62. T MD 54
  63. CALL "FC_conv_0" (
  64. // VAR_INPUT
  65. IN00 := -1, // INT
  66. IN10 := 2, // INT
  67. IN20 := L#3, // DINT
  68. IN30 := 1, // INT
  69. IN40 := L#1, // DINT
  70. IN50 := L#4, // DINT
  71. IN60 := 5.0, // REAL
  72. IN70 := 6.6, // REAL
  73. IN80 := 8.6, // REAL
  74. IN90 := 9.6, // REAL
  75. IN100 := -10.6, // REAL
  76. IN110 := C#123, // WORD
  77. IN120 := DW#16#1234567, // DWORD
  78. IN130 := 765, // INT
  79. IN140 := L#7654321, // DINT
  80. IN150 := W#16#AABB, // WORD
  81. IN160 := DW#16#11223344, // DWORD
  82. // VAR_OUTPUT
  83. OUT00 := MD 0, // DINT
  84. OUT10 := MW 4, // INT
  85. OUT20 := MD 6, // DINT
  86. OUT30 := MW 10, // INT
  87. OUT40 := MD 12, // DINT
  88. OUT50 := MD 16, // REAL
  89. OUT60 := MD 20, // REAL
  90. OUT70 := MD 24, // DINT
  91. OUT80 := MD 28, // DINT
  92. OUT90 := MD 32, // DINT
  93. OUT100 := MD 36, // DINT
  94. OUT110 := MW 40, // INT
  95. OUT120 := MD 42, // DINT
  96. OUT130 := MW 46, // WORD
  97. OUT140 := MD 48, // DWORD
  98. OUT150 := MW 52, // WORD
  99. OUT160 := MD 54, // DWORD
  100. )
  101. __ASSERT== MD 0, L#-1
  102. __ASSERT== MW 4, -2
  103. __ASSERT== MD 6, L#-3
  104. __ASSERT== MW 10, W#16#FFFE
  105. __ASSERT== MD 12, DW#16#FFFFFFFE
  106. __ASSERT==R MD 16, 4.0
  107. __ASSERT==R MD 20, -5.0
  108. __ASSERT== MD 24, L#7
  109. __ASSERT== MD 28, L#8
  110. __ASSERT== MD 32, L#10
  111. __ASSERT== MD 36, L#-11
  112. __ASSERT== MW 40, 123
  113. __ASSERT== MD 42, L#1234567
  114. __ASSERT== MW 46, C#765
  115. __ASSERT== MD 48, DW#16#7654321
  116. __ASSERT== MW 52, W#16#BBAA
  117. __ASSERT== MD 54, DW#16#44332211
  118. BE
  119. END_FUNCTION
  120. ]]></source>
  121. <!-- AWL/STL source code -->
  122. <source enabled="1"
  123. name="TEST conv_1"
  124. type="0"><![CDATA[
  125. FUNCTION "FC_TEST_conv_1" : VOID
  126. BEGIN
  127. L 0
  128. T MD 0
  129. T MD 4
  130. T MD 8
  131. CALL "FC_conv_1" (
  132. // VAR_INPUT
  133. IN00 := -10, // INT
  134. IN10 := L#5, // DINT
  135. EN1 := FALSE, // BOOL
  136. // VAR_OUTPUT
  137. OUT20 := MD 0, // DINT
  138. OUT30 := MD 4, // DINT
  139. OUT40 := MD 8, // DINT
  140. )
  141. __ASSERT== MD 0, 0
  142. __ASSERT== MD 4, 0
  143. __ASSERT== MD 8, 0
  144. L 0
  145. T MD 0
  146. T MD 4
  147. T MD 8
  148. CALL "FC_conv_1" (
  149. // VAR_INPUT
  150. IN00 := -10, // INT
  151. IN10 := L#5, // DINT
  152. EN1 := TRUE, // BOOL
  153. // VAR_OUTPUT
  154. OUT20 := MD 0, // DINT
  155. OUT30 := MD 4, // DINT
  156. OUT40 := MD 8, // DINT
  157. )
  158. __ASSERT== MD 0, L#5
  159. __ASSERT== MD 4, L#-5
  160. __ASSERT== MD 8, L#5
  161. BE
  162. END_FUNCTION
  163. ]]></source>
  164. </language_awl>
  165. <!-- FUP/FBD language configuration -->
  166. <language_fup>
  167. <!-- FUP/FBD source code -->
  168. <source enabled="1"
  169. name="conv_0"
  170. type="1"><![CDATA[
  171. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  172. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  173. <FUP version="0" zoom="1.0">
  174. <blockdecl name='"FC_conv_0"' type="FC" />
  175. <interface allow_initvalue="0"
  176. allow_inouts="1"
  177. allow_inputs="1"
  178. allow_outputs="1"
  179. allow_retval="1"
  180. allow_stats="0"
  181. allow_temps="1">
  182. <inputs>
  183. <field name="IN00" type="INT" uuid="cbabfa61-9170-40fd-9915-6abd9b5d01e8" />
  184. <field name="IN10" type="INT" uuid="8e105887-d91e-4edd-a6fb-64fbc06ab8b6" />
  185. <field name="IN20" type="DINT" uuid="e2eeb4b8-a2a0-4b7a-a209-24dace7c520d" />
  186. <field name="IN30" type="INT" uuid="79459b61-848d-4676-867d-95581e7f29ba" />
  187. <field name="IN40" type="DINT" uuid="85ea106b-af7c-4057-9959-ff5dbc5d7dd3" />
  188. <field name="IN50" type="DINT" uuid="c36eb0df-2569-458e-aeff-ac2db1c6c017" />
  189. <field name="IN60" type="REAL" uuid="ed87d97b-5b6d-4bb5-87f8-881fe3e5c4a4" />
  190. <field name="IN70" type="REAL" uuid="e8ca60b2-d4fa-4fc0-89f8-66bfc3c29bef" />
  191. <field name="IN80" type="REAL" uuid="ef33fcde-3949-470b-aeef-78cef89cc884" />
  192. <field name="IN90" type="REAL" uuid="400f212b-c40f-4802-8b15-906195ef24d5" />
  193. <field name="IN100" type="REAL" uuid="b0152c4e-36f2-47c0-b0cf-5ff8e6f9a6f4" />
  194. <field name="IN110" type="WORD" uuid="05a97024-6cae-4877-a3da-0e6d4dcf995e" />
  195. <field name="IN120" type="DWORD" uuid="72991a61-f274-44d1-961e-c3e7fe02bf54" />
  196. <field name="IN130" type="INT" uuid="98bd0690-8928-49e6-9112-89e34aa79801" />
  197. <field name="IN140" type="DINT" uuid="1116890e-0808-4663-b24a-adee8f44f410" />
  198. <field name="IN150" type="WORD" uuid="58755b64-9163-442e-92b6-54e1f5f5e0b2" />
  199. <field name="IN160" type="DWORD" uuid="a3213792-2dcf-4bef-8866-006ffd7b4cda" />
  200. </inputs>
  201. <outputs>
  202. <field name="OUT00" type="DINT" uuid="8d05d8e0-3fe1-44d6-984b-4a9392606acd" />
  203. <field name="OUT10" type="INT" uuid="e25f6068-fdfe-45e9-95fc-71981d4cd6ae" />
  204. <field name="OUT20" type="DINT" uuid="98054625-01a3-42bc-b743-bc2846a90cff" />
  205. <field name="OUT30" type="INT" uuid="2d6df9ab-1f12-47d4-b187-c74a32b090af" />
  206. <field name="OUT40" type="DINT" uuid="91e2bff9-7e29-4565-90df-2b009104c931" />
  207. <field name="OUT50" type="REAL" uuid="2969a3b8-504c-431f-9071-2137ba0e2d99" />
  208. <field name="OUT60" type="REAL" uuid="85b350f0-3eb6-4941-867a-bd79b04c6985" />
  209. <field name="OUT70" type="DINT" uuid="5f8c852a-b23c-49ee-a243-ab016a886cd3" />
  210. <field name="OUT80" type="DINT" uuid="3e4eec6f-9289-4710-8ccd-7aff8d68884a" />
  211. <field name="OUT90" type="DINT" uuid="e660b2ed-08a6-49e1-abed-9449d6531d7d" />
  212. <field name="OUT100" type="DINT" uuid="2f7cef14-ab09-47f1-b2f7-36a650dc982e" />
  213. <field name="OUT110" type="INT" uuid="819cf1aa-10a3-4421-8c5b-e1b3d357a28d" />
  214. <field name="OUT120" type="DINT" uuid="fc35cd36-0948-4e94-a116-6e55b60197fc" />
  215. <field name="OUT130" type="WORD" uuid="d2f6e071-2875-4a30-879a-66956da3537b" />
  216. <field name="OUT140" type="DWORD" uuid="0c54de19-a47a-4645-9d65-ed69251696b9" />
  217. <field name="OUT150" type="WORD" uuid="a63cfe9d-0251-4681-bf7f-151773791790" />
  218. <field name="OUT160" type="DWORD" uuid="2bbbb9c9-5c66-4138-b90d-0cf698d06858" />
  219. </outputs>
  220. <retval>
  221. <field name="RET_VAL" type="VOID" uuid="8599759b-fb46-45db-98d8-87ded8cae10d" />
  222. </retval>
  223. </interface>
  224. <grids>
  225. <grid height="44" uuid="aa49ffe1-e8c1-403c-b4a2-90e4d7aee310" width="12">
  226. <optimizers all="1" enabled="1" type="awl" />
  227. <wires>
  228. <wire id="0" uuid="2477373a-6714-4d7e-a372-c0c072bef3b0" />
  229. <wire id="1" uuid="785d8d41-f636-44a8-9639-35fa157af167" />
  230. <wire id="2" uuid="cf8a5ee9-de7f-4ef4-afd7-de0d1836ec48" />
  231. <wire id="3" uuid="dec70e1b-43a4-4d84-847c-889dcb8a2bc2" />
  232. <wire id="4" uuid="b142b9c7-c623-4b18-9f97-5600851acf8e" />
  233. <wire id="5" uuid="f198fa07-38c2-432c-8702-257dec0dff9d" />
  234. <wire id="6" uuid="8baecd56-17dc-47a2-b752-c53eb12a56e9" />
  235. <wire id="7" uuid="34f1bebe-96fb-4e7a-8212-9f86fa51f525" />
  236. <wire id="8" uuid="3bd93f98-f7d5-4edc-b211-fd66ea81e1d9" />
  237. <wire id="9" uuid="53ed4004-7369-4ade-aa17-15b8c5ad9afc" />
  238. <wire id="10" uuid="a3bf2adf-bb23-420f-8a1b-89f397cebc88" />
  239. <wire id="11" uuid="4a08ca6a-9f74-4c85-a873-61d261277b85" />
  240. <wire id="12" uuid="ec0a196c-23c3-48f1-87dc-419e36f2e863" />
  241. <wire id="13" uuid="516876e5-d56b-408e-9a8b-d2cf2df3a960" />
  242. <wire id="14" uuid="2c2280ca-1dce-4fb4-8e11-27279ccce6a8" />
  243. <wire id="15" uuid="9ceb6fb8-bcab-424f-8583-c97962098514" />
  244. <wire id="16" uuid="8195885f-ff95-4eb8-88e5-451b5ec51d2b" />
  245. <wire id="17" uuid="b6cb864a-87e4-473a-9896-3f536ec69f6f" />
  246. <wire id="18" uuid="ae7abbbf-6106-454d-91c3-157db081be9b" />
  247. <wire id="19" uuid="b54a80da-9096-479e-b588-a42565d04cf1" />
  248. <wire id="20" uuid="687ed417-c5a3-430e-8890-63bcd9b850c7" />
  249. <wire id="21" uuid="682ee674-be20-4432-9e66-60a7ea50363f" />
  250. <wire id="22" uuid="3a231577-f756-4441-abc2-845bd67ca09f" />
  251. <wire id="23" uuid="e6c8a2ed-0116-4090-b6e5-73c453b62b6a" />
  252. <wire id="24" uuid="20614b4f-c360-4cec-8151-e0371769d1c5" />
  253. <wire id="25" uuid="2b8ad00e-5bf4-48c9-b93a-052b7075ce44" />
  254. <wire id="26" uuid="77f14cf3-d280-49e2-bc3c-260f734fa2a4" />
  255. <wire id="27" uuid="db4f7d19-4ce9-4a0c-b785-3e7312f0d57b" />
  256. <wire id="28" uuid="98ca94c4-e6cd-435d-b56b-a2b7f61e1792" />
  257. <wire id="29" uuid="56cd0b20-6820-4f3a-bd38-615bcf64a79c" />
  258. <wire id="30" uuid="4a9bb005-010e-4283-b9a5-11199e70dce2" />
  259. <wire id="31" uuid="a51e817d-429f-427f-9b5a-cc8a866afe63" />
  260. <wire id="32" uuid="0cd5aa07-99af-40aa-8a63-20482010ce54" />
  261. <wire id="33" uuid="0c4b0132-3c43-452b-99d1-4df2eb5ccca9" />
  262. </wires>
  263. <elements>
  264. <element subtype="itd" type="convert" uuid="4bee0416-5aa0-4ae5-b250-10d6169dde77" x="3" y="1">
  265. <connections>
  266. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="1f4e7949-6b45-43de-89e7-2fe2130133fb" wire="0" />
  267. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="57c377a5-4211-4257-9ec4-fb4fe4f91759" wire="1" />
  268. </connections>
  269. </element>
  270. <element subtype="negi" type="convert" uuid="0ffd789f-289d-4635-880b-388e3dad854e" x="3" y="3">
  271. <connections>
  272. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="07e8e03c-0eb1-451a-85bc-83104f5f4a06" wire="2" />
  273. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="13147e2b-5985-4437-9d75-97cddde4e4bc" wire="3" />
  274. </connections>
  275. </element>
  276. <element subtype="negd" type="convert" uuid="32ee6e4d-4012-45e3-af21-6e5fe8ac9de5" x="3" y="5">
  277. <connections>
  278. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="dff55cf9-a048-4f8b-a86f-d6a5bb2aaa30" wire="4" />
  279. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="bde29246-04a3-4943-8e6e-58fb1eb3fd4e" wire="5" />
  280. </connections>
  281. </element>
  282. <element subtype="invi" type="convert" uuid="f6e52457-4940-4009-9134-98ca10d797aa" x="3" y="7">
  283. <connections>
  284. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="4535ef9b-f42a-44f4-a115-26a9aec87a23" wire="6" />
  285. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="181bf356-4ed4-480b-a2d2-a2e3afbf5f84" wire="7" />
  286. </connections>
  287. </element>
  288. <element subtype="invd" type="convert" uuid="267f4416-9552-4b0f-aa1e-066bcecf13a1" x="3" y="9">
  289. <connections>
  290. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="8666b9a9-5484-4264-b30c-0a0d72edf2a9" wire="8" />
  291. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="76bb2348-a634-4d10-bdac-4d2f48576c70" wire="9" />
  292. </connections>
  293. </element>
  294. <element subtype="dtr" type="convert" uuid="2576517f-ec9a-44a5-83fd-223e83deaba1" x="3" y="13">
  295. <connections>
  296. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="f881edbd-eb40-4a81-9711-e6b150721960" wire="10" />
  297. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="f780a98a-1f8a-4241-80dd-47a84dbcaa08" wire="11" />
  298. </connections>
  299. </element>
  300. <element subtype="negr" type="convert" uuid="28740ef9-814a-4880-9d86-c582e87fd38d" x="3" y="15">
  301. <connections>
  302. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="3f3f3d3a-904a-4e7a-8448-6a5358787bf6" wire="12" />
  303. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="041d2553-a3dc-4dda-9ff4-6d18b79ae63c" wire="13" />
  304. </connections>
  305. </element>
  306. <element subtype="rnd" type="convert" uuid="e5802eae-8b1e-404f-90e0-de4caa1098e1" x="3" y="17">
  307. <connections>
  308. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="2cc24c27-ae83-4a06-9a16-dc03cf20984a" wire="14" />
  309. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="5d260a1d-13da-4d88-a251-d16bdc7e8a79" wire="15" />
  310. </connections>
  311. </element>
  312. <element subtype="trunc" type="convert" uuid="04f02f12-9e05-4461-a1af-8ebbff8ea77b" x="3" y="19">
  313. <connections>
  314. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="c4458332-2556-4097-ae30-e5a378df39b8" wire="16" />
  315. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="02968a54-75b6-421e-a581-071efe3675cf" wire="17" />
  316. </connections>
  317. </element>
  318. <element subtype="rndp" type="convert" uuid="fa88ac8c-4e00-4bf6-a9d1-ad4116529ce6" x="3" y="21">
  319. <connections>
  320. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="57804a81-26a8-47de-a712-1ee3bc5fc86b" wire="18" />
  321. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="ed063b9d-4887-4da6-811f-c68ff7a7aed5" wire="20" />
  322. </connections>
  323. </element>
  324. <element subtype="rndn" type="convert" uuid="df4e7a5f-e349-402c-876b-724d96ef6748" x="3" y="23">
  325. <connections>
  326. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="61569513-992f-4ea5-b02d-29ecfea9aa31" wire="19" />
  327. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="27905c96-a558-4d42-bfdc-4f9946e8bcef" wire="21" />
  328. </connections>
  329. </element>
  330. <element subtype="bti" type="convert" uuid="3f287fdd-4fa0-4d9d-abaf-d539f465fbcb" x="3" y="27">
  331. <connections>
  332. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="6dd4623f-79fb-4016-a777-8825d79ac683" wire="22" />
  333. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="b058dcfe-459f-431a-871c-68a4ef4050d8" wire="23" />
  334. </connections>
  335. </element>
  336. <element subtype="btd" type="convert" uuid="d12e3018-7d1b-4aa9-b8c9-7c7751a7ce49" x="3" y="29">
  337. <connections>
  338. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="219058c9-992e-46f9-93b9-13617d2cbc28" wire="24" />
  339. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="a2e69168-af24-4aa3-aca2-afc4627098d0" wire="25" />
  340. </connections>
  341. </element>
  342. <element subtype="itb" type="convert" uuid="e9c02eb7-2696-4d7d-9df4-ddbcc8a567b8" x="3" y="31">
  343. <connections>
  344. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="d314c582-0e80-4a24-bb0c-950f9d039e5d" wire="26" />
  345. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="f273a049-475b-45e3-bf7e-3e54e7a13712" wire="28" />
  346. </connections>
  347. </element>
  348. <element subtype="dtb" type="convert" uuid="b53792e4-d60a-4fce-a1a0-b911dc8ec700" x="3" y="33">
  349. <connections>
  350. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="b861f6cd-c358-401d-8cf1-074438524a7f" wire="27" />
  351. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="484133ee-4f57-41cf-842e-084524b00c35" wire="29" />
  352. </connections>
  353. </element>
  354. <element subtype="taw" type="convert" uuid="ac9733a4-0f95-49e1-8b3b-ed7ed475dac3" x="3" y="37">
  355. <connections>
  356. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="0da0b3b7-7f65-4698-a2d2-41298d3ddf3c" wire="30" />
  357. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="17af0c56-7a05-44b0-a945-5a33db9aed23" wire="32" />
  358. </connections>
  359. </element>
  360. <element subtype="tad" type="convert" uuid="7dd564c7-93e9-4f09-9245-ad6799f394c3" x="3" y="39">
  361. <connections>
  362. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="4b0f323a-822d-4579-9d42-010e26538f86" wire="31" />
  363. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c3837d35-79b7-4bf3-9ecf-608cb35f2b31" wire="33" />
  364. </connections>
  365. </element>
  366. <element content="#IN00" subtype="load" type="operand" uuid="564b1cbe-5de4-4780-a721-eac66e29ec11" x="2" y="1">
  367. <connections>
  368. <connection dir_in="0" dir_out="1" pos="0" uuid="8370fb85-a838-4c7a-970c-ace38f6e7851" wire="0" />
  369. </connections>
  370. </element>
  371. <element content="#OUT00" subtype="assign" type="operand" uuid="d63374bb-98c2-4dca-a2f6-d0044cbfd477" x="4" y="1">
  372. <connections>
  373. <connection dir_in="1" dir_out="0" pos="0" uuid="48fbfd1f-6dfd-4029-9190-2da2d1e63280" wire="1" />
  374. </connections>
  375. </element>
  376. <element content="#IN10" subtype="load" type="operand" uuid="b7c8229c-7a85-4b53-ab98-b0b6bb9b8484" x="2" y="3">
  377. <connections>
  378. <connection dir_in="0" dir_out="1" pos="0" uuid="30365c45-1805-46fa-950e-a3756d8a2aac" wire="2" />
  379. </connections>
  380. </element>
  381. <element content="#OUT10" subtype="assign" type="operand" uuid="cba13abf-3777-4684-a140-7bb2657b35d6" x="4" y="3">
  382. <connections>
  383. <connection dir_in="1" dir_out="0" pos="0" uuid="a2cbd515-50b3-4dae-90c5-95ade260718d" wire="3" />
  384. </connections>
  385. </element>
  386. <element content="#IN20" subtype="load" type="operand" uuid="f65b011e-4cba-4043-85e3-0565c4808ee9" x="2" y="5">
  387. <connections>
  388. <connection dir_in="0" dir_out="1" pos="0" uuid="a5ff3dca-3d2c-4f25-82fe-7fb89153d8ec" wire="4" />
  389. </connections>
  390. </element>
  391. <element content="#OUT20" subtype="assign" type="operand" uuid="673c5709-fcf0-4b59-85b5-abdf58d9bdb4" x="4" y="5">
  392. <connections>
  393. <connection dir_in="1" dir_out="0" pos="0" uuid="86053d44-a6eb-43da-b6c9-ba926c3f5f5e" wire="5" />
  394. </connections>
  395. </element>
  396. <element content="#IN30" subtype="load" type="operand" uuid="86dfc318-c57a-43e2-ad2c-1dd21135c71b" x="2" y="7">
  397. <connections>
  398. <connection dir_in="0" dir_out="1" pos="0" uuid="b0ca2a71-95b9-4cb4-beea-662ec1c4df62" wire="6" />
  399. </connections>
  400. </element>
  401. <element content="#OUT30" subtype="assign" type="operand" uuid="30be6f5a-a387-494a-8d6d-f3a9f1f4f46d" x="4" y="7">
  402. <connections>
  403. <connection dir_in="1" dir_out="0" pos="0" uuid="4772d0d8-47e1-45ec-b2d7-33b594ea695b" wire="7" />
  404. </connections>
  405. </element>
  406. <element content="#IN40" subtype="load" type="operand" uuid="04978c5e-3a63-4458-8e2b-dcd9ff03852b" x="2" y="9">
  407. <connections>
  408. <connection dir_in="0" dir_out="1" pos="0" uuid="b2ff12eb-1a24-4fa8-a364-8a8ee19bfea6" wire="8" />
  409. </connections>
  410. </element>
  411. <element content="#OUT40" subtype="assign" type="operand" uuid="20c7a210-bdc0-43c9-9805-4dde72588b8c" x="4" y="9">
  412. <connections>
  413. <connection dir_in="1" dir_out="0" pos="0" uuid="128a8a72-5d14-4223-940d-ec99ba9c59e2" wire="9" />
  414. </connections>
  415. </element>
  416. <element content="#IN50" subtype="load" type="operand" uuid="5bdb3d34-2743-484e-9351-ad4bac210bba" x="2" y="13">
  417. <connections>
  418. <connection dir_in="0" dir_out="1" pos="0" uuid="a31d0765-eb43-4174-ab6a-5601e32b300a" wire="10" />
  419. </connections>
  420. </element>
  421. <element content="#OUT50" subtype="assign" type="operand" uuid="e91ec58a-4e25-45e0-a39c-adbefa753e93" x="4" y="13">
  422. <connections>
  423. <connection dir_in="1" dir_out="0" pos="0" uuid="3ba70d43-8a10-4696-809f-4fd8295b54d1" wire="11" />
  424. </connections>
  425. </element>
  426. <element content="#IN60" subtype="load" type="operand" uuid="8897a9d5-1bd0-4c8b-9976-ed34f0447806" x="2" y="15">
  427. <connections>
  428. <connection dir_in="0" dir_out="1" pos="0" uuid="6216b6ee-f063-4620-85d8-6f0f5ad12e54" wire="12" />
  429. </connections>
  430. </element>
  431. <element content="#OUT60" subtype="assign" type="operand" uuid="f3aaedb7-0fcb-47b9-bdeb-99600054249a" x="4" y="15">
  432. <connections>
  433. <connection dir_in="1" dir_out="0" pos="0" uuid="40a4ba8e-fb56-4082-954f-6eb0ab2498b0" wire="13" />
  434. </connections>
  435. </element>
  436. <element content="#IN70" subtype="load" type="operand" uuid="36adf7c8-84a4-4fa7-a398-7efb540a8b62" x="2" y="17">
  437. <connections>
  438. <connection dir_in="0" dir_out="1" pos="0" uuid="f371d47c-b28d-497f-9edf-888abb9ece31" wire="14" />
  439. </connections>
  440. </element>
  441. <element content="#OUT70" subtype="assign" type="operand" uuid="637ec781-0610-4e25-9fa3-b0bb7b45fcb8" x="4" y="17">
  442. <connections>
  443. <connection dir_in="1" dir_out="0" pos="0" uuid="2dda1424-ce8c-48e7-b2c5-8cdf096ad747" wire="15" />
  444. </connections>
  445. </element>
  446. <element content="#IN80" subtype="load" type="operand" uuid="fc105052-dfc4-4be9-adfe-54515be3d0a6" x="2" y="19">
  447. <connections>
  448. <connection dir_in="0" dir_out="1" pos="0" uuid="1c9aeb00-01f2-4861-8070-4963f30cb750" wire="16" />
  449. </connections>
  450. </element>
  451. <element content="#OUT80" subtype="assign" type="operand" uuid="62c13a44-140a-4cd7-b6f7-d7fcf19e6470" x="4" y="19">
  452. <connections>
  453. <connection dir_in="1" dir_out="0" pos="0" uuid="d0dfeba7-fe7f-4d9d-8860-e1c3bcf4afb0" wire="17" />
  454. </connections>
  455. </element>
  456. <element content="#IN90" subtype="load" type="operand" uuid="5c41661f-1eaa-4a78-99ab-4ba098963f1d" x="2" y="21">
  457. <connections>
  458. <connection dir_in="0" dir_out="1" pos="0" uuid="0d50f8e9-4385-4d46-907e-a39a3633098a" wire="18" />
  459. </connections>
  460. </element>
  461. <element content="#IN100" subtype="load" type="operand" uuid="1dbe80bb-0d2b-4792-b6ee-0a88bfdf8aa7" x="2" y="23">
  462. <connections>
  463. <connection dir_in="0" dir_out="1" pos="0" uuid="7c7ce1ad-fb9b-4b5f-96e3-eade949bc2e8" wire="19" />
  464. </connections>
  465. </element>
  466. <element content="#OUT90" subtype="assign" type="operand" uuid="7c8d8785-0c7a-4fca-82c6-bcfbe02f8fe6" x="4" y="21">
  467. <connections>
  468. <connection dir_in="1" dir_out="0" pos="0" uuid="50d901fb-d1cf-4ef6-a695-b25051ae52f8" wire="20" />
  469. </connections>
  470. </element>
  471. <element content="#OUT100" subtype="assign" type="operand" uuid="b162d1bd-0825-4702-9a78-67bf01585d88" x="4" y="23">
  472. <connections>
  473. <connection dir_in="1" dir_out="0" pos="0" uuid="26c203c2-835b-4a79-9b72-deadd61bf0ff" wire="21" />
  474. </connections>
  475. </element>
  476. <element content="#IN110" subtype="load" type="operand" uuid="0967e366-b3d1-43b8-9016-a0fa23a5c901" x="2" y="27">
  477. <connections>
  478. <connection dir_in="0" dir_out="1" pos="0" uuid="3fcec08f-d827-4a27-ade4-0f52ad34d6d8" wire="22" />
  479. </connections>
  480. </element>
  481. <element content="#OUT110" subtype="assign" type="operand" uuid="4f007239-baa8-4576-b004-a1c8d391b5a7" x="4" y="27">
  482. <connections>
  483. <connection dir_in="1" dir_out="0" pos="0" uuid="0b5e308f-fdae-49d7-83af-644936b6b6c2" wire="23" />
  484. </connections>
  485. </element>
  486. <element content="#IN120" subtype="load" type="operand" uuid="15ee7f7d-a710-433c-be37-0d24d604f4b1" x="2" y="29">
  487. <connections>
  488. <connection dir_in="0" dir_out="1" pos="0" uuid="b3c5582c-5da4-4359-9dad-7a61a84b69cb" wire="24" />
  489. </connections>
  490. </element>
  491. <element content="#OUT120" subtype="assign" type="operand" uuid="a1a23732-d65d-4207-8238-082f6967d038" x="4" y="29">
  492. <connections>
  493. <connection dir_in="1" dir_out="0" pos="0" uuid="86565b1c-77e1-447c-a8ae-69b7d3a0b447" wire="25" />
  494. </connections>
  495. </element>
  496. <element content="#IN130" subtype="load" type="operand" uuid="b7fd4b8e-6c48-4bed-8cca-c63935d6b8b0" x="2" y="31">
  497. <connections>
  498. <connection dir_in="0" dir_out="1" pos="0" uuid="0f49f712-cea1-4f8c-a860-20395b6ef3f5" wire="26" />
  499. </connections>
  500. </element>
  501. <element content="#IN140" subtype="load" type="operand" uuid="2c028b17-9165-4f5d-911b-d3171bb30048" x="2" y="33">
  502. <connections>
  503. <connection dir_in="0" dir_out="1" pos="0" uuid="1a8125f9-cb35-4dc0-b231-d46760e9b2f8" wire="27" />
  504. </connections>
  505. </element>
  506. <element content="#OUT130" subtype="assign" type="operand" uuid="5e843a6c-43c4-4cf7-b456-13b8214b84a5" x="4" y="31">
  507. <connections>
  508. <connection dir_in="1" dir_out="0" pos="0" uuid="90e32d7e-016e-4917-8e45-ffe822870683" wire="28" />
  509. </connections>
  510. </element>
  511. <element content="#OUT140" subtype="assign" type="operand" uuid="7e17aa0c-e88f-4763-a10a-a6085ca3ef43" x="4" y="33">
  512. <connections>
  513. <connection dir_in="1" dir_out="0" pos="0" uuid="f9d82693-4bcd-4811-8dd6-f633e0d866b0" wire="29" />
  514. </connections>
  515. </element>
  516. <element content="#IN150" subtype="load" type="operand" uuid="ed0e3b09-f6ba-42fa-9eba-9b2f9cbcc9dd" x="2" y="37">
  517. <connections>
  518. <connection dir_in="0" dir_out="1" pos="0" uuid="5b881ca0-81ea-44d3-a093-57639d64df14" wire="30" />
  519. </connections>
  520. </element>
  521. <element content="#IN160" subtype="load" type="operand" uuid="fb34c253-6375-46e9-a22f-b1375dd9153f" x="2" y="39">
  522. <connections>
  523. <connection dir_in="0" dir_out="1" pos="0" uuid="07bc6d02-bfd8-4300-ac81-840d820e2f61" wire="31" />
  524. </connections>
  525. </element>
  526. <element content="#OUT150" subtype="assign" type="operand" uuid="aec3d084-6782-4363-a027-c125f90e16e7" x="4" y="37">
  527. <connections>
  528. <connection dir_in="1" dir_out="0" pos="0" uuid="8b3bf700-76eb-4156-8c2b-cd4696552008" wire="32" />
  529. </connections>
  530. </element>
  531. <element content="#OUT160" subtype="assign" type="operand" uuid="eb0c5ade-8fa9-4555-b431-15591d56cd17" x="4" y="39">
  532. <connections>
  533. <connection dir_in="1" dir_out="0" pos="0" uuid="eac83fc4-f0b3-4aac-a5cc-c0d9a94a5a68" wire="33" />
  534. </connections>
  535. </element>
  536. </elements>
  537. </grid>
  538. </grids>
  539. </FUP>
  540. ]]></source>
  541. <!-- FUP/FBD source code -->
  542. <source enabled="1"
  543. name="conv_1"
  544. type="1"><![CDATA[
  545. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  546. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  547. <FUP version="0" zoom="1.0">
  548. <blockdecl name='"FC_conv_1"' type="FC" />
  549. <interface allow_initvalue="0"
  550. allow_inouts="1"
  551. allow_inputs="1"
  552. allow_outputs="1"
  553. allow_retval="1"
  554. allow_stats="0"
  555. allow_temps="1">
  556. <inputs>
  557. <field name="IN00" type="INT" uuid="a99e914d-4cd0-40ab-9376-4c50e45c0079" />
  558. <field name="IN10" type="DINT" uuid="d5bbda1b-8f5e-435e-9ab9-d7d493878aed" />
  559. <field name="EN1" type="BOOL" uuid="c855784b-98dd-4c9b-9262-b815ed528e48" />
  560. </inputs>
  561. <outputs>
  562. <field name="OUT20" type="DINT" uuid="467b1834-440e-460d-8d82-f1f6a56d3e29" />
  563. <field name="OUT30" type="DINT" uuid="defbc534-834b-4646-908d-21b2e19a16ae" />
  564. <field name="OUT40" type="DINT" uuid="050e9d5d-3673-4479-ae3f-1881106e3850" />
  565. </outputs>
  566. <retval>
  567. <field name="RET_VAL" type="VOID" uuid="b55fe37e-4058-488a-b8d5-0089297a4ebb" />
  568. </retval>
  569. </interface>
  570. <grids>
  571. <grid height="18" uuid="78c5e264-be45-4798-a7aa-0f06f2033557" width="12">
  572. <optimizers all="1" enabled="1" type="awl" />
  573. <wires>
  574. <wire id="0" uuid="58dc877d-9992-4f3e-bcd1-c350f911b277" />
  575. <wire id="1" uuid="3d771a9a-58fe-4892-9fc3-1c959e6a46fd" />
  576. <wire id="2" uuid="ad2941f5-0212-4a35-9193-2e8793da31fa" />
  577. <wire id="3" uuid="a083be43-2edb-4d35-8423-021046cff667" />
  578. <wire id="4" uuid="f7514397-5222-40d6-b640-27be3436c35c" />
  579. <wire id="5" uuid="1a96ab6a-dcb2-4434-88a3-c61156188e40" />
  580. <wire id="6" uuid="c2277742-4302-4770-a557-14991b2deb1b" />
  581. <wire id="7" uuid="4cb57056-9a49-42ed-bfb8-a46983b7a82a" />
  582. </wires>
  583. <elements>
  584. <element content="#IN00" subtype="load" type="operand" uuid="a45f9d10-cdcd-4136-845a-46fcd47d5646" x="1" y="4">
  585. <connections>
  586. <connection dir_in="0" dir_out="1" pos="0" uuid="df507577-944b-407b-94c8-d7ddf563904a" wire="0" />
  587. </connections>
  588. </element>
  589. <element content="#EN1" subtype="load" type="operand" uuid="b5fcad39-3a2b-4fe2-b60c-ae76ccada838" x="2" y="2">
  590. <connections>
  591. <connection dir_in="0" dir_out="1" pos="0" uuid="16515998-ad75-4e54-bb02-f00e51b1beb7" wire="1" />
  592. </connections>
  593. </element>
  594. <element content="#IN10" subtype="load" type="operand" uuid="2ec0bf1c-2adc-4dcd-b552-a01e20ee7639" x="2" y="3">
  595. <connections>
  596. <connection dir_in="0" dir_out="1" pos="0" uuid="6fb6d406-3663-4964-82ea-b5ed5db9077b" wire="2" />
  597. </connections>
  598. </element>
  599. <element content="#OUT20" subtype="assign" type="operand" uuid="25dae408-cfc2-4e9b-8bef-a6e1eff6da4a" x="5" y="2">
  600. <connections>
  601. <connection dir_in="1" dir_out="0" pos="0" uuid="8cd4ce72-b6d0-4f70-9e14-a5b0601fa82e" wire="5" />
  602. </connections>
  603. </element>
  604. <element content="#OUT40" subtype="assign" type="operand" uuid="8d508322-5ce3-4896-9fdb-fc85f5d056c4" x="7" y="3">
  605. <connections>
  606. <connection dir_in="1" dir_out="0" pos="0" uuid="8dfeac9f-d423-4a61-857d-4d813afb305e" wire="7" />
  607. </connections>
  608. </element>
  609. <element subtype="itd" type="convert" uuid="889806a5-d25e-421d-93fc-e68eaf16fa53" x="2" y="4">
  610. <connections>
  611. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="ee64ca2b-b559-49ea-87ed-a53a966e60dd" wire="0" />
  612. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="7f45f9df-cf61-4b9d-9180-036e63a37457" wire="3" />
  613. </connections>
  614. </element>
  615. <element subtype="add-dint" type="arithmetic" uuid="cd577905-264d-4fd8-afac-cfb489fd65dc" x="3" y="2">
  616. <connections>
  617. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="155bf319-9781-46c9-8906-38f30b7e586a" wire="1" />
  618. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="d4960514-b963-4871-91f8-b375a010f274" wire="2" />
  619. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="27f85767-5f5a-4603-a6e2-edf05d1185e2" wire="3" />
  620. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c53cdbdf-23e0-40ab-852d-bf0ab640e051" wire="4" />
  621. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="86e7ab12-bb66-4064-8a2c-cd14997cbd38" wire="-1" />
  622. </connections>
  623. </element>
  624. <element subtype="negd" type="convert" uuid="1b572c2b-aaea-4a92-b05d-72f41bc6edef" x="4" y="3">
  625. <connections>
  626. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="31a807e3-7ebd-4e8c-b89c-7e5e30bae9db" wire="4" />
  627. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="bd25c359-3219-4b96-95c3-7d83cb6e8cf5" wire="5" />
  628. </connections>
  629. </element>
  630. <element subtype="negd" type="convert" uuid="2c4c6438-25f4-4a95-81bc-e04782233b17" x="5" y="4">
  631. <connections>
  632. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="c88d6d43-f9f9-4e17-978b-af1779b61d5a" wire="5" />
  633. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="8b416588-9858-41fa-b698-f3e9a0fa993a" wire="6" />
  634. </connections>
  635. </element>
  636. <element subtype="negd" type="convert" uuid="4a3480d1-d628-497d-91d6-c4d10bdcd5f2" x="6" y="3">
  637. <connections>
  638. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="3a8e5e1c-f953-4e29-9537-94c21cfd32c9" wire="6" />
  639. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="8be768cd-a3d7-4bdf-9d3b-7f8b6212e0a1" wire="7" />
  640. </connections>
  641. </element>
  642. <element content="#OUT30" subtype="assign" type="operand" uuid="55d26ea3-8cfe-4fbf-9003-33ba104c628f" x="6" y="5">
  643. <connections>
  644. <connection dir_in="1" dir_out="0" pos="0" uuid="e7d387d1-5305-4e7e-85a1-d433ff52f4f3" wire="6" />
  645. </connections>
  646. </element>
  647. </elements>
  648. </grid>
  649. </grids>
  650. </FUP>
  651. ]]></source>
  652. </language_fup>
  653. <!-- Symbol table configuration -->
  654. <symbols>
  655. <!-- symbol table source code -->
  656. <source enabled="1"
  657. name="Main table"
  658. type="3"><![CDATA[
  659. 126,FC_conv_0 FC 0 FC 0
  660. 126,FC_TEST_conv_0 FC 1 FC 1
  661. 126,FC_conv_1 FC 10 FC 10
  662. 126,FC_TEST_conv_1 FC 11 FC 11
  663. ]]></source>
  664. </symbols>
  665. <!-- Core server link configuration -->
  666. <core_link>
  667. <!-- Locally spawned core server -->
  668. <spawn_local enable="1"
  669. interpreters="$DEFAULT"
  670. port_range_begin="4183"
  671. port_range_end="8278" />
  672. <!-- Remote server connection -->
  673. <connect host="localhost"
  674. port="4151"
  675. timeout_ms="3000" />
  676. <!-- Transport tunnel -->
  677. <tunnel local_port="-1"
  678. type="0">
  679. <ssh executable="ssh"
  680. port="22"
  681. user="pi" />
  682. </tunnel>
  683. </core_link>
  684. <!-- Graphical user interface configuration -->
  685. <gui>
  686. <editor autoindent="1"
  687. paste_autoindent="1"
  688. validation="1" />
  689. </gui>
  690. </awlsim_project>