raspberrypi-pixtend.awlpro 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284
  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-01-28 13:13:18.830042"
  4. date_modify="2018-07-08 18:00:05.665214"
  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="0"
  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="OB 1"
  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 "FC_DigitalOut"
  47. CALL "FC_Relays"
  48. CALL "FC_GPIOs"
  49. CALL "FC_TempHum"
  50. CALL "FC_PWM"
  51. CALL "FC_analog"
  52. END_ORGANIZATION_BLOCK
  53. ]]></source>
  54. </language_awl>
  55. <!-- FUP/FBD language configuration -->
  56. <language_fup>
  57. <!-- FUP/FBD source code -->
  58. <source enabled="1"
  59. name="Digital outputs"
  60. type="1"><![CDATA[
  61. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  62. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  63. <FUP version="0" zoom="1.0">
  64. <blockdecl name='"FC_DigitalOut"' type="FC" />
  65. <interface allow_initvalue="0"
  66. allow_inouts="1"
  67. allow_inputs="1"
  68. allow_outputs="1"
  69. allow_retval="1"
  70. allow_stats="0"
  71. allow_temps="1">
  72. <retval>
  73. <field name="RET_VAL" type="VOID" uuid="af73b059-9d86-40eb-817a-4b0e39d142d8" />
  74. </retval>
  75. </interface>
  76. <grids>
  77. <grid height="19" uuid="41aede88-7467-4205-9611-9f2626543ced" width="12">
  78. <optimizers all="1" enabled="1" type="awl" />
  79. <wires>
  80. <wire id="0" uuid="bae3fd2b-154b-4715-b8ac-f3a61ad13eaa" />
  81. <wire id="1" uuid="85ac7d46-7116-41b6-a39c-a10f49d55b40" />
  82. <wire id="2" uuid="94bcd5d7-69ee-4cd0-96e2-f19d639c0387" />
  83. <wire id="3" uuid="0d937f0d-d595-4a8f-9bd1-efe24863ef0c" />
  84. <wire id="4" uuid="ba003ddd-eea1-405e-92ac-1e2bcef79f5b" />
  85. <wire id="5" uuid="fe47d87f-7692-4540-aad2-48cb9d4a0bcf" />
  86. <wire id="6" uuid="e5b711e9-5a78-4421-b694-9ed1f30f8447" />
  87. <wire id="7" uuid="84130139-3c7d-47d2-8127-b45af2a7abcb" />
  88. <wire id="8" uuid="002703a1-2ddf-4f5b-93d8-d1e70efb53dd" />
  89. <wire id="9" uuid="ee495bdc-2495-427c-b056-d111f2abf66f" />
  90. <wire id="10" uuid="569e6d2e-fcf9-4d17-ac39-549eb61e04a4" />
  91. <wire id="11" uuid="c0aa56ce-5da6-490e-9c17-3089ea14ec5d" />
  92. <wire id="12" uuid="46ea5e13-3f7c-497c-8618-e0861ceb857a" />
  93. <wire id="13" uuid="f1ecd44d-d939-4324-932d-6ef2b2beb662" />
  94. </wires>
  95. <elements>
  96. <element subtype="and" type="boolean" uuid="e67e2765-81cd-49f4-a304-53e641381733" x="2" y="2">
  97. <connections>
  98. <connection dir_in="1" dir_out="0" pos="0" uuid="c73174ec-daef-4d89-88cf-16d7e2675421" wire="0" />
  99. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="89f2471d-f80d-49d2-a1c8-e7c914bc4874" wire="1" />
  100. </connections>
  101. </element>
  102. <element content='"CLK_0.2s"' subtype="load" type="operand" uuid="9a48f766-09fc-481f-86bd-e2fdb2128f9b" x="1" y="2">
  103. <connections>
  104. <connection dir_in="0" dir_out="1" pos="0" uuid="e27b9b7b-69f0-4a9c-a049-dd056f6d4302" wire="0" />
  105. </connections>
  106. </element>
  107. <element content='"DO0"' subtype="assign" type="operand" uuid="9ff92b28-ba9e-447b-b459-a35c7e3e6368" x="3" y="2">
  108. <connections>
  109. <connection dir_in="1" dir_out="0" pos="0" uuid="3cf776be-b642-4175-9332-3a30d6622199" wire="1" />
  110. </connections>
  111. </element>
  112. <element subtype="and" type="boolean" uuid="1448ee8f-d9c4-4b4d-b324-ca03bfb4c28d" x="2" y="4">
  113. <connections>
  114. <connection dir_in="1" dir_out="0" pos="0" uuid="9c51a6f1-9ca5-4935-af2a-5ac7a493aa33" wire="2" />
  115. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="f6aeaa61-154f-445d-930a-52ab4a229c97" wire="3" />
  116. </connections>
  117. </element>
  118. <element content='"CLK_0.4s"' subtype="load" type="operand" uuid="37533c7c-4233-4dd7-a427-9370a01f0072" x="1" y="4">
  119. <connections>
  120. <connection dir_in="0" dir_out="1" pos="0" uuid="df84dc46-14c2-4874-b3e5-ab7dd100133b" wire="2" />
  121. </connections>
  122. </element>
  123. <element content='"DO1"' subtype="assign" type="operand" uuid="b723207a-e418-4d65-84f5-4c37c38392ec" x="3" y="4">
  124. <connections>
  125. <connection dir_in="1" dir_out="0" pos="0" uuid="5cb8d1ce-97ba-4715-b4f7-2088c5f6fa8e" wire="3" />
  126. </connections>
  127. </element>
  128. <element subtype="and" type="boolean" uuid="9cd5a98c-c7ad-4530-b753-ab4f41a3e691" x="2" y="6">
  129. <connections>
  130. <connection dir_in="1" dir_out="0" pos="0" uuid="e1f15818-c147-43b9-9dd0-891d9f2c91a0" wire="4" />
  131. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="cd0674d3-adbe-4f71-b44d-6a85dbdaa90d" wire="5" />
  132. </connections>
  133. </element>
  134. <element subtype="and" type="boolean" uuid="88e38090-a006-4ed1-bc31-fd0f8c60785d" x="2" y="8">
  135. <connections>
  136. <connection dir_in="1" dir_out="0" pos="0" uuid="1cf5c7e4-4d87-42a1-8b39-15be2cf856af" wire="6" />
  137. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="a3fb65ff-0b79-4912-84cd-219f92253c8d" wire="7" />
  138. </connections>
  139. </element>
  140. <element content='"CLK_0.5s"' subtype="load" type="operand" uuid="46fdd3e4-828e-4813-81b7-708fe8b87612" x="1" y="6">
  141. <connections>
  142. <connection dir_in="0" dir_out="1" pos="0" uuid="64fb0431-b5b7-4355-ba89-304737e12f39" wire="4" />
  143. </connections>
  144. </element>
  145. <element content='"DO2"' subtype="assign" type="operand" uuid="4f13894d-0e5b-4c87-b071-5105147d7c6f" x="3" y="6">
  146. <connections>
  147. <connection dir_in="1" dir_out="0" pos="0" uuid="49c8a835-7ac7-430e-a822-0ad7a09004ac" wire="5" />
  148. </connections>
  149. </element>
  150. <element content='"CLK_0.8s"' subtype="load" type="operand" uuid="d1901c6a-dae2-4754-b3f5-b7b0a6b11b8e" x="1" y="8">
  151. <connections>
  152. <connection dir_in="0" dir_out="1" pos="0" uuid="8f9d7154-fc43-42c7-8cfc-7f7cfdb81553" wire="6" />
  153. </connections>
  154. </element>
  155. <element content='"DO3"' subtype="assign" type="operand" uuid="efbb4afd-cfea-4ec6-912e-a8ebbdbea7d4" x="3" y="8">
  156. <connections>
  157. <connection dir_in="1" dir_out="0" pos="0" uuid="adba80fa-747c-4621-8522-bbb0db517414" wire="7" />
  158. </connections>
  159. </element>
  160. <element subtype="and" type="boolean" uuid="cb7d2bd8-0cd6-4957-9474-6c598efee093" x="2" y="10">
  161. <connections>
  162. <connection dir_in="1" dir_out="0" pos="0" uuid="4a4ca9f1-2eb9-4683-8a15-1536f50bdf09" wire="8" />
  163. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="07dbc13e-7638-4665-9a93-d798081f0273" wire="10" />
  164. </connections>
  165. </element>
  166. <element subtype="and" type="boolean" uuid="b735d4fb-c926-4ef9-b6d9-92be512bde08" x="2" y="12">
  167. <connections>
  168. <connection dir_in="1" dir_out="0" pos="0" uuid="b6b20e10-ded9-47e7-912e-3e64ae4751d5" wire="9" />
  169. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="820de8cd-f3db-47e1-bb6e-ad9358f26336" wire="11" />
  170. </connections>
  171. </element>
  172. <element content='"CLK_1.0s"' subtype="load" type="operand" uuid="07146f16-15cf-4421-959d-5f5ba77b9f70" x="1" y="10">
  173. <connections>
  174. <connection dir_in="0" dir_out="1" pos="0" uuid="e3dd35cb-6560-4bbc-947b-c7730bfb30a5" wire="8" />
  175. </connections>
  176. </element>
  177. <element content='"CLK_1.6s"' subtype="load" type="operand" uuid="f3f9540b-735e-4bc1-a4de-55c46cc9a9bb" x="1" y="12">
  178. <connections>
  179. <connection dir_in="0" dir_out="1" pos="0" uuid="167b1fcb-f024-45bb-8376-23610b3ef759" wire="9" />
  180. </connections>
  181. </element>
  182. <element content='"DO3"' subtype="assign" type="operand" uuid="f1633f60-0232-480b-b9fc-6ae315b13871" x="3" y="10">
  183. <connections>
  184. <connection dir_in="1" dir_out="0" pos="0" uuid="e204d3aa-74fd-4cda-b4bc-44a6fa8d22d6" wire="10" />
  185. </connections>
  186. </element>
  187. <element content='"DO4"' subtype="assign" type="operand" uuid="ae70d91d-ea67-47ff-ae01-e3bb7335fd83" x="3" y="12">
  188. <connections>
  189. <connection dir_in="1" dir_out="0" pos="0" uuid="115da31a-735a-4fab-b86e-c602cd552046" wire="11" />
  190. </connections>
  191. </element>
  192. <element subtype="and" type="boolean" uuid="1ed3307c-8809-4f02-847d-d7bfb47fe0c5" x="2" y="14">
  193. <connections>
  194. <connection dir_in="1" dir_out="0" pos="0" uuid="c9d60223-87c5-4f83-8891-e77d2e33063c" wire="12" />
  195. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="bd9a6b69-f5d5-4311-86ea-9c251538e209" wire="13" />
  196. </connections>
  197. </element>
  198. <element content='"CLK_2.0s"' subtype="load" type="operand" uuid="0385d2e1-e0ca-4e74-b3e2-89cd162487c6" x="1" y="14">
  199. <connections>
  200. <connection dir_in="0" dir_out="1" pos="0" uuid="3408d50b-a2e3-4957-a0ba-95396864201a" wire="12" />
  201. </connections>
  202. </element>
  203. <element content='"DO5"' subtype="assign" type="operand" uuid="56dac5a9-8d05-4c49-a61c-0d8c137fb260" x="3" y="14">
  204. <connections>
  205. <connection dir_in="1" dir_out="0" pos="0" uuid="fa3546c7-cad8-4164-b72f-339f9684067e" wire="13" />
  206. </connections>
  207. </element>
  208. </elements>
  209. </grid>
  210. </grids>
  211. </FUP>
  212. ]]></source>
  213. <!-- FUP/FBD source code -->
  214. <source enabled="1"
  215. name="Relays"
  216. type="1"><![CDATA[
  217. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  218. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  219. <FUP version="0" zoom="1.0">
  220. <blockdecl name='"FC_Relays"' type="FC" />
  221. <interface allow_initvalue="0"
  222. allow_inouts="1"
  223. allow_inputs="1"
  224. allow_outputs="1"
  225. allow_retval="1"
  226. allow_stats="0"
  227. allow_temps="1">
  228. <temps>
  229. <field name="TEMP0" type="BOOL" uuid="53f4ac72-b455-47b2-b03a-fbf4056126d1" />
  230. </temps>
  231. <retval>
  232. <field name="RET_VAL" type="VOID" uuid="7d13d645-4359-49ae-a1ce-c8c93b92920a" />
  233. </retval>
  234. </interface>
  235. <grids>
  236. <grid height="40" uuid="da20eaac-4224-4198-8335-27759f4efdfe" width="12">
  237. <optimizers all="1" enabled="1" type="awl" />
  238. <wires>
  239. <wire id="0" uuid="512f9aaf-4f7d-41d0-a1a8-c3d798d3f86b" />
  240. <wire id="1" uuid="1b209941-25bc-4123-a7dc-e47b755ecaa2" />
  241. <wire id="2" uuid="f5bd5c86-9cb3-4db6-9d0d-6556ae549b71" />
  242. <wire id="3" uuid="ad1b272e-e86b-4f01-993a-1e5daefda7a3" />
  243. <wire id="4" uuid="5234ce1f-d644-4aa2-9471-aec8c90b35a8" />
  244. <wire id="5" uuid="4bbfa9a9-15ce-4156-a46b-6dc03cddc5b8" />
  245. <wire id="6" uuid="d2173b16-b929-408b-946d-2774e4d4500a" />
  246. <wire id="7" uuid="787ec0a0-d036-461a-b882-4ac95dc0b112" />
  247. <wire id="8" uuid="630f12db-0e78-46a3-bf05-037e3f9f8b81" />
  248. <wire id="9" uuid="8ad0f071-a81c-472e-8d0e-6d6d50240ca2" />
  249. <wire id="10" uuid="0e5b2c96-88cb-4112-b1da-5f545558db58" />
  250. <wire id="11" uuid="1737f1df-e41e-4d9b-ba42-4906176bdfa8" />
  251. <wire id="12" uuid="823cec34-4340-44fe-be9f-80812fce2a73" />
  252. <wire id="13" uuid="d2df8fdb-9959-4773-b9fe-43c750bdcc27" />
  253. <wire id="14" uuid="f44b89fe-4137-4a1b-a57f-9916c5bba575" />
  254. <wire id="15" uuid="be8c216d-0d0b-4b77-a4b6-eb9942eeaf2c" />
  255. <wire id="16" uuid="a66c10da-c87f-4d26-bab1-7cbb59dbccda" />
  256. <wire id="17" uuid="c22e2208-c51c-4370-9cb3-63b80325af34" />
  257. </wires>
  258. <elements>
  259. <element subtype="and" type="boolean" uuid="9d9cfb8d-d1fd-4a86-b41f-a3951e6283c9" x="2" y="2">
  260. <connections>
  261. <connection dir_in="1" dir_out="0" pos="0" uuid="44882dd1-33e0-4848-883b-d66a35d34409" wire="0" />
  262. <connection dir_in="1" dir_out="0" pos="1" uuid="846cc196-567a-4bba-a7f3-005d7aae6687" wire="1" />
  263. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b14eb354-55c1-4c97-a481-8e85c78412d7" wire="2" />
  264. </connections>
  265. </element>
  266. <element content='"DI0"' subtype="load" type="operand" uuid="3c744413-d0ce-4584-badd-bac01e2d3d4c" x="1" y="2">
  267. <connections>
  268. <connection dir_in="0" dir_out="1" pos="0" uuid="c8c7e401-3e85-4680-9b9b-c8f1253cf3c8" wire="0" />
  269. </connections>
  270. </element>
  271. <element content='"DI1"' subtype="load" type="operand" uuid="6dbcdc28-3a71-4823-9c90-89ab78035347" x="1" y="3">
  272. <connections>
  273. <connection dir_in="0" dir_out="1" pos="0" uuid="824280a2-1ecb-4e23-b324-a1a2415e27ad" wire="1" />
  274. </connections>
  275. </element>
  276. <element content='"relay0"' subtype="assign" type="operand" uuid="e55ad353-ba07-4b88-8c05-8ff9310908bf" x="3" y="3">
  277. <connections>
  278. <connection dir_in="1" dir_out="0" pos="0" uuid="29318a8a-3ca7-48fd-8030-345fde546045" wire="2" />
  279. </connections>
  280. </element>
  281. <element subtype="or" type="boolean" uuid="f1cb9ac1-8fa2-4668-a0ee-3929f61c89df" x="2" y="7">
  282. <connections>
  283. <connection dir_in="1" dir_out="0" pos="0" uuid="90e9b90f-cb97-446e-a68f-869601547373" wire="3" />
  284. <connection dir_in="1" dir_out="0" pos="1" uuid="ec71a47c-7a6c-4eec-8210-7a7cf3cd77bf" wire="4" />
  285. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="8e9bc94b-ba94-4311-91ee-2c044b9c4765" wire="5" />
  286. </connections>
  287. </element>
  288. <element content='"DI2"' subtype="load" type="operand" uuid="3850d3d0-0d54-46b3-ba9b-be17c49118c6" x="1" y="7">
  289. <connections>
  290. <connection dir_in="0" dir_out="1" pos="0" uuid="32342ed2-a5ae-4164-8154-62aac782e27a" wire="3" />
  291. </connections>
  292. </element>
  293. <element content='"DI3"' subtype="load" type="operand" uuid="5d2cbf2b-6d8f-4088-b3f0-0c38e9ee6600" x="1" y="8">
  294. <connections>
  295. <connection dir_in="0" dir_out="1" pos="0" uuid="8c390e34-4a8a-42d6-8204-2617bf381a8e" wire="4" />
  296. </connections>
  297. </element>
  298. <element content='"relay1"' subtype="assign" type="operand" uuid="f12d170c-12eb-4c6c-b872-0d6e25972b31" x="3" y="8">
  299. <connections>
  300. <connection dir_in="1" dir_out="0" pos="0" uuid="3ddb7621-588e-48f4-8d36-aac17473f6e4" wire="5" />
  301. </connections>
  302. </element>
  303. <element subtype="sr" type="boolean" uuid="56ecefa1-9600-436c-9013-295118b9d108" x="2" y="12">
  304. <connections>
  305. <connection dir_in="1" dir_out="0" pos="0" text="S" uuid="413afe69-7239-423a-b5b5-fe4058edf12a" wire="6" />
  306. <connection dir_in="1" dir_out="0" pos="1" text="R" uuid="8a6f2ee8-1c6a-4ed1-a86d-f0530daf8b7e" wire="7" />
  307. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="0ff40430-1a68-42a1-ab97-62b8deab18bc" wire="-1" />
  308. </connections>
  309. <subelements>
  310. <element content='"relay2"' subtype="embedded" type="operand" uuid="19173032-f68a-44fa-8488-79ed3067b1ec" x="0" y="0" />
  311. </subelements>
  312. </element>
  313. <element content='"DI4"' subtype="load" type="operand" uuid="72f36446-1626-4da0-b56e-262f61be68ab" x="1" y="13">
  314. <connections>
  315. <connection dir_in="0" dir_out="1" pos="0" uuid="e9f20565-014f-4694-8c15-278c2da76b6b" wire="6" />
  316. </connections>
  317. </element>
  318. <element content='"DI5"' subtype="load" type="operand" uuid="6c4d446b-56bb-46c3-a994-16021b658c45" x="1" y="14">
  319. <connections>
  320. <connection dir_in="0" dir_out="1" pos="0" uuid="9ebfff8d-860e-42df-8def-3fddc9c1fe51" wire="7" />
  321. </connections>
  322. </element>
  323. <element content='&#9;U&#9;"Relay3_timer_state"&#13;&#10;&#9;L&#9;S5T#5s&#13;&#10;&#9;SV&#9;"Relay3_timer"&#13;&#10;&#9;UN&#9;"Relay3_timer"&#13;&#10;&#9;=&#9;"Relay3_timer_state"' type="awl" uuid="80d8acf5-3d42-4e2d-afa8-4e9f24ba622b" x="2" y="18" />
  324. <element subtype="sr" type="boolean" uuid="238ae30e-4c1d-41f2-bf50-473d116a7ce0" x="4" y="24">
  325. <connections>
  326. <connection dir_in="1" dir_out="0" pos="0" text="S" uuid="cb28f54c-be7c-496e-b422-ccd1483e0464" wire="8" />
  327. <connection dir_in="1" dir_out="0" pos="1" text="R" uuid="5701019e-3319-46bc-93c4-963c16f7c1c4" wire="17" />
  328. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="e15d9f3b-1942-4635-9e4b-57839417f468" wire="-1" />
  329. </connections>
  330. <subelements>
  331. <element content='"relay3"' subtype="embedded" type="operand" uuid="03c7837b-3473-4294-a787-cccbb10421cf" x="0" y="0" />
  332. </subelements>
  333. </element>
  334. <element subtype="and" type="boolean" uuid="b18f7f4a-6c19-4ebf-a5be-dcf3d18a8243" x="2" y="24">
  335. <connections>
  336. <connection dir_in="1" dir_out="0" pos="0" uuid="5af10342-88a5-4d6a-a723-d40a775750bd" wire="9" />
  337. <connection dir_in="1" dir_out="0" inverted="1" pos="1" uuid="a8f703ef-b25f-46a8-b348-3cbd4cd63b47" wire="10" />
  338. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b9f68df9-f9a6-4a92-9803-38c439fa9137" wire="8" />
  339. </connections>
  340. </element>
  341. <element content='"Relay3_timer_state"' subtype="load" type="operand" uuid="ef002ea8-2730-4e35-85cf-9dbb282f4f4f" x="1" y="24">
  342. <connections>
  343. <connection dir_in="0" dir_out="1" pos="0" uuid="668e0e3f-7eec-4ba4-9ecc-8e1d0f3b3091" wire="9" />
  344. </connections>
  345. </element>
  346. <element content="#TEMP0" subtype="load" type="operand" uuid="ccd6d021-a239-4e00-9a92-cf321b0c2cf7" x="1" y="25">
  347. <connections>
  348. <connection dir_in="0" dir_out="1" pos="0" uuid="84ca6d5e-f4d0-4901-91e0-803bbaf5173b" wire="10" />
  349. </connections>
  350. </element>
  351. <element subtype="and" type="boolean" uuid="6b95f76a-b96e-46db-8b7f-d449f4948219" x="2" y="27">
  352. <connections>
  353. <connection dir_in="1" dir_out="0" pos="0" uuid="e07de9c4-a4f3-4166-bed0-e73b252e842b" wire="11" />
  354. <connection dir_in="1" dir_out="0" pos="1" uuid="73b68eab-d884-4d21-987b-b56988fc6766" wire="12" />
  355. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="83249713-abc7-4fef-a224-b852244bc488" wire="15" />
  356. </connections>
  357. </element>
  358. <element content='"Relay3_timer_state"' subtype="load" type="operand" uuid="dcc33fa7-e084-444b-99ae-cd4dd87fc623" x="1" y="27">
  359. <connections>
  360. <connection dir_in="0" dir_out="1" pos="0" uuid="a660755a-d1ef-4715-a4eb-92cfa35e8705" wire="11" />
  361. </connections>
  362. </element>
  363. <element content="#TEMP0" subtype="load" type="operand" uuid="a618e28a-3602-4bc3-a91c-509c4a490fc8" x="1" y="28">
  364. <connections>
  365. <connection dir_in="0" dir_out="1" pos="0" uuid="31f2ddcc-e8fa-4a3d-b475-9cdca3fbd562" wire="12" />
  366. </connections>
  367. </element>
  368. <element subtype="and" type="boolean" uuid="c2bab99c-fb3a-4d3b-8e3f-8719377b798a" x="2" y="22">
  369. <connections>
  370. <connection dir_in="1" dir_out="0" pos="0" uuid="ca81b6e4-a318-4769-9c00-6866281d525a" wire="13" />
  371. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="3d5e1f99-24a4-4f98-8029-52adfe83bace" wire="14" />
  372. </connections>
  373. </element>
  374. <element content='"relay3"' subtype="load" type="operand" uuid="4e002e99-68a1-4442-b78f-e63b8a957c40" x="1" y="22">
  375. <connections>
  376. <connection dir_in="0" dir_out="1" pos="0" uuid="633c5192-b503-48b1-87a9-24b5ab5a73af" wire="13" />
  377. </connections>
  378. </element>
  379. <element content="#TEMP0" subtype="assign" type="operand" uuid="21ba73ef-5505-42d3-9d52-bd60b3f1f724" x="3" y="22">
  380. <connections>
  381. <connection dir_in="1" dir_out="0" pos="0" uuid="78e1df1d-5ff7-43ab-8f7c-94651bc8ab8a" wire="14" />
  382. </connections>
  383. </element>
  384. <element subtype="or" type="boolean" uuid="5ccf4da0-73a4-4bde-a037-0185b226d978" x="3" y="29">
  385. <connections>
  386. <connection dir_in="1" dir_out="0" pos="0" uuid="175b2107-acd6-4b13-9fa3-8ba09c34f4a1" wire="15" />
  387. <connection dir_in="1" dir_out="0" pos="1" uuid="4b6db221-ba63-49a9-8e8f-51701601542d" wire="16" />
  388. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="2d2a0f07-be79-4ea2-9f06-4c017849d77d" wire="17" />
  389. </connections>
  390. </element>
  391. <element content='"DI7"' subtype="load" type="operand" uuid="f5c1e65a-2855-4c53-b390-8b8b4a346d7b" x="2" y="30">
  392. <connections>
  393. <connection dir_in="0" dir_out="1" pos="0" uuid="eeb1b704-6977-412a-90f9-2d6bda62a492" wire="16" />
  394. </connections>
  395. </element>
  396. <element content="RELAY 0" type="comment" uuid="9f557d1a-1b27-4e09-bc2e-543aed06e2c8" x="0" y="1" />
  397. <element content="RELAY 1" type="comment" uuid="db9a2443-da2b-435e-8ee8-28de2161650d" x="0" y="6" />
  398. <element content="RELAY 2" type="comment" uuid="90223d16-204c-4d7d-b994-a34fe669903f" x="0" y="11" />
  399. <element content="RELAY 3" type="comment" uuid="618a5ec2-2b44-4607-92d6-2acd078526e0" x="0" y="17" />
  400. <element subtype="r" type="boolean" uuid="d2ef981f-c166-4891-8861-9770782df381" x="3" y="32">
  401. <connections>
  402. <connection dir_in="1" dir_out="0" pos="0" text="R" uuid="c197d464-36c3-4dbc-94de-8920c7c1034c" wire="16" />
  403. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="96b091f9-2099-4530-a16c-48219ae3882a" wire="-1" />
  404. </connections>
  405. <subelements>
  406. <element content='"Relay3_timer"' subtype="embedded" type="operand" uuid="49d35ed5-ee8a-4439-b2cf-59c4b06a65cd" x="0" y="0" />
  407. </subelements>
  408. </element>
  409. <element subtype="r" type="boolean" uuid="d52cd071-04ea-4402-8da7-a24fc834420e" x="3" y="34">
  410. <connections>
  411. <connection dir_in="1" dir_out="0" pos="0" text="R" uuid="598d1986-88b2-40ee-8e38-9b1ce6de9137" wire="16" />
  412. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="5c47c0ca-b2ca-4829-b660-f6d5435dc459" wire="-1" />
  413. </connections>
  414. <subelements>
  415. <element content='"Relay3_timer_state"' subtype="embedded" type="operand" uuid="49d35ed5-ee8a-4439-b2cf-59c4b06a65cd" x="0" y="0" />
  416. </subelements>
  417. </element>
  418. </elements>
  419. </grid>
  420. </grids>
  421. </FUP>
  422. ]]></source>
  423. <!-- FUP/FBD source code -->
  424. <source enabled="1"
  425. name="GPIOs"
  426. type="1"><![CDATA[
  427. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  428. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  429. <FUP version="0" zoom="1.0">
  430. <blockdecl name='"FC_GPIOs"' type="FC" />
  431. <interface allow_initvalue="0"
  432. allow_inouts="1"
  433. allow_inputs="1"
  434. allow_outputs="1"
  435. allow_retval="1"
  436. allow_stats="0"
  437. allow_temps="1">
  438. <retval>
  439. <field name="RET_VAL" type="VOID" uuid="2bc007b2-cf6e-45fb-bc10-3335571f7926" />
  440. </retval>
  441. </interface>
  442. <grids>
  443. <grid height="18" uuid="390c5641-cf69-4976-ba07-c13187f52ec0" width="12">
  444. <optimizers all="1" enabled="1" type="awl" />
  445. <wires>
  446. <wire id="0" uuid="5111923e-1f11-4273-bd6e-656f5844871d" />
  447. <wire id="1" uuid="a7eff708-37b8-435b-a4b8-20908f3171ff" />
  448. </wires>
  449. <elements>
  450. <element content='"gpio1"' subtype="assign" type="operand" uuid="1cd65479-9f89-437a-8de4-cdfcf4531248" x="3" y="4">
  451. <connections>
  452. <connection dir_in="1" dir_out="0" pos="0" uuid="fc54951e-b8ba-4b2d-b8d0-5dd48490f7fe" wire="1" />
  453. </connections>
  454. </element>
  455. <element content='"gpio0"' subtype="load" type="operand" uuid="d9b91d9c-73f8-4ade-a4b7-677fce7a0743" x="1" y="4">
  456. <connections>
  457. <connection dir_in="0" dir_out="1" pos="0" uuid="6dd7a07f-8616-435d-9498-0141beda9375" wire="0" />
  458. </connections>
  459. </element>
  460. <element subtype="and" type="boolean" uuid="b809c962-5fb5-4ab6-98f4-3d7c2db7fa2c" x="2" y="4">
  461. <connections>
  462. <connection dir_in="1" dir_out="0" pos="0" uuid="6559cd42-b567-480c-94ed-3732a294eb37" wire="0" />
  463. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="6874bb73-b63f-40f5-9269-fc0c698d5868" wire="1" />
  464. </connections>
  465. </element>
  466. <element content="GPIO0 is configured as input&#10;GPIO1 is configured as output" type="comment" uuid="3e5849ee-c666-48f6-8f9a-7f676d1a9774" x="2" y="2" />
  467. </elements>
  468. </grid>
  469. </grids>
  470. </FUP>
  471. ]]></source>
  472. <!-- FUP/FBD source code -->
  473. <source enabled="1"
  474. name="Temperature / humidity"
  475. type="1"><![CDATA[
  476. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  477. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  478. <FUP version="0" zoom="1.0">
  479. <blockdecl name='"FC_TempHum"' type="FC" />
  480. <interface allow_initvalue="0"
  481. allow_inouts="1"
  482. allow_inputs="1"
  483. allow_outputs="1"
  484. allow_retval="1"
  485. allow_stats="0"
  486. allow_temps="1">
  487. <retval>
  488. <field name="RET_VAL" type="VOID" uuid="44533fc5-c215-4c8a-bec0-e3b3df797a7f" />
  489. </retval>
  490. </interface>
  491. <grids>
  492. <grid height="22" uuid="f7024b93-f6d8-48ca-b229-202f37377f9a" width="12">
  493. <optimizers all="1" enabled="1" type="awl" />
  494. <wires>
  495. <wire id="0" uuid="2b49f7e8-f52f-4065-9c44-e2f47c48743f" />
  496. <wire id="1" uuid="a0c1e251-4617-4073-a3aa-a93086ed8a8f" />
  497. <wire id="2" uuid="cda21aa0-534f-43c0-9f87-db14607239fc" />
  498. <wire id="3" uuid="59fc071a-b93c-4e70-a7b4-4dd1976721f0" />
  499. <wire id="4" uuid="0b262bc4-b191-48f7-96cb-77aeda8a9df7" />
  500. <wire id="5" uuid="cfeb2b24-778b-493a-8438-75c4dd0191e2" />
  501. <wire id="6" uuid="6ca2bfc1-8865-4155-92d7-10037ea2945a" />
  502. <wire id="7" uuid="7ca78b01-b044-4353-be57-cd4b5b37320f" />
  503. <wire id="8" uuid="0e57b8ee-1cd9-4bea-b900-609530765df0" />
  504. <wire id="9" uuid="6cda3a4f-a8ff-4860-a851-c041f158d3e3" />
  505. <wire id="10" uuid="5646e840-a6e3-45e2-9e9d-2efe07c739f1" />
  506. <wire id="11" uuid="f5288b42-5501-4601-85bf-4d4a3be5df88" />
  507. </wires>
  508. <elements>
  509. <element subtype="gt-int" type="compare" uuid="a84b65bf-8a23-46e5-9525-adff5c713885" x="2" y="11">
  510. <connections>
  511. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="479cbc30-759f-4f3b-9aec-1b348595837f" wire="-1" />
  512. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="1673aed6-b8b0-4c67-8eb2-50ebd7259866" wire="0" />
  513. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="0b251d6e-00fe-4f5c-9d5e-9db6542b0878" wire="1" />
  514. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="863153d6-8c5e-490e-a62f-5ba2273d7b4a" wire="2" />
  515. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="ed3b34f1-c3e2-4478-92c4-bf471716bf36" wire="-1" />
  516. </connections>
  517. </element>
  518. <element content='"DHT22_temperature"' subtype="load" type="operand" uuid="676373b0-037e-4f0a-a6d8-46eee2d0c528" x="1" y="12">
  519. <connections>
  520. <connection dir_in="0" dir_out="1" pos="0" uuid="fdcfcdf6-6d58-436f-a98a-4a24582ec9b7" wire="0" />
  521. </connections>
  522. </element>
  523. <element content="200" subtype="load" type="operand" uuid="8d6a82f2-267a-457c-9c93-b6e11b0bb9aa" x="1" y="13">
  524. <connections>
  525. <connection dir_in="0" dir_out="1" pos="0" uuid="81893445-8189-4f78-a93d-837b599b75cb" wire="1" />
  526. </connections>
  527. </element>
  528. <element content='"dht22_over_20_degrees"' subtype="assign" type="operand" uuid="a67b73fe-7603-48c4-9dfa-0e6a737d607e" x="3" y="12">
  529. <connections>
  530. <connection dir_in="1" dir_out="0" pos="0" uuid="dd457085-6b1e-423b-bae5-33b26b68e7c3" wire="2" />
  531. </connections>
  532. </element>
  533. <element subtype="gt-int" type="compare" uuid="4d451e3e-00ba-45fb-a592-e589aeb60169" x="2" y="15">
  534. <connections>
  535. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="bc75ceb3-1568-4687-b667-0304b8c88f2e" wire="-1" />
  536. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="bd23bbdd-3ff0-4e9c-b42d-33751a73541f" wire="3" />
  537. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="00e9664b-ef75-4d97-a1da-0a7ae99a0895" wire="4" />
  538. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="f580b7fa-46de-4bc5-906f-027661f74c45" wire="5" />
  539. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="a27360a5-c0b7-441a-a218-7daa67f62345" wire="-1" />
  540. </connections>
  541. </element>
  542. <element content='"DHT22_humidity"' subtype="load" type="operand" uuid="99532f09-60cb-40a2-8ea9-cf212e33d358" x="1" y="16">
  543. <connections>
  544. <connection dir_in="0" dir_out="1" pos="0" uuid="5d6c8d02-58ac-4add-9b49-63ed2762d1f2" wire="3" />
  545. </connections>
  546. </element>
  547. <element content="800" subtype="load" type="operand" uuid="c203e19b-2583-4ae3-9c8c-da0beb1bb666" x="1" y="17">
  548. <connections>
  549. <connection dir_in="0" dir_out="1" pos="0" uuid="c7444e3a-cd99-443f-bd9b-76311275e22e" wire="4" />
  550. </connections>
  551. </element>
  552. <element content='"dht22_over_80_percent"' subtype="assign" type="operand" uuid="e88a9bce-dd83-444c-a08f-1a2a751b9cd9" x="3" y="16">
  553. <connections>
  554. <connection dir_in="1" dir_out="0" pos="0" uuid="da7fd0ce-948d-425e-8903-e4bbc829d9e4" wire="5" />
  555. </connections>
  556. </element>
  557. <element subtype="gt-int" type="compare" uuid="ca14b456-f43f-4530-ae86-aeb3080562ac" x="2" y="5">
  558. <connections>
  559. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="9047cc50-5c53-4e7f-8179-874040d1b0cf" wire="-1" />
  560. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="02d3942d-d95d-40d4-9865-dbda9cc70bb2" wire="7" />
  561. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="666c6a28-0a01-48c8-9b3c-90d9c0267545" wire="9" />
  562. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="2a6e7956-5dab-4165-9c15-ecb8507a8530" wire="11" />
  563. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="cb102f9e-9f89-483c-a083-9c4f8a197deb" wire="-1" />
  564. </connections>
  565. </element>
  566. <element subtype="gt-int" type="compare" uuid="03e42e1f-0498-428c-885d-bf3b8eda6bf3" x="2" y="1">
  567. <connections>
  568. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="23deb20c-67aa-46c5-956d-da436bf954c5" wire="-1" />
  569. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="4967cb7b-1561-47cf-915c-9dc7a052c58c" wire="6" />
  570. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="c2cd879d-bec6-41e7-898a-8598d2c42040" wire="8" />
  571. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="03b6bf51-bd07-4084-bf74-4ecd7862f1f3" wire="10" />
  572. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="45d32201-bcc3-4123-b814-77aed53c76a3" wire="-1" />
  573. </connections>
  574. </element>
  575. <element content='"DHT11_temperature"' subtype="load" type="operand" uuid="490e13ac-a266-4b27-a8e5-cf9fbc24388d" x="1" y="2">
  576. <connections>
  577. <connection dir_in="0" dir_out="1" pos="0" uuid="4ea67872-0132-48b1-9f9b-5d76dc6ac8cc" wire="6" />
  578. </connections>
  579. </element>
  580. <element content='"DHT11_humidity"' subtype="load" type="operand" uuid="9fee7679-b501-4247-b4d0-7e505e0e9e89" x="1" y="6">
  581. <connections>
  582. <connection dir_in="0" dir_out="1" pos="0" uuid="db0cfbf7-213f-4e95-9990-9ca13f526998" wire="7" />
  583. </connections>
  584. </element>
  585. <element content="250" subtype="load" type="operand" uuid="109fa272-3f25-49aa-949b-b1937f29c8bd" x="1" y="3">
  586. <connections>
  587. <connection dir_in="0" dir_out="1" pos="0" uuid="b19517cb-675a-4bec-b98a-f6593d778485" wire="8" />
  588. </connections>
  589. </element>
  590. <element content="350" subtype="load" type="operand" uuid="37baf7a9-180c-4a7e-b64f-dcd13362e2ba" x="1" y="7">
  591. <connections>
  592. <connection dir_in="0" dir_out="1" pos="0" uuid="45f2c4b1-7f74-46f3-b4b8-b071221f53cd" wire="9" />
  593. </connections>
  594. </element>
  595. <element content='"dht11_over_25_degrees"' subtype="assign" type="operand" uuid="3db84de9-e9d7-4649-a467-537df59e8f75" x="3" y="2">
  596. <connections>
  597. <connection dir_in="1" dir_out="0" pos="0" uuid="dda81d36-d054-4b0b-ac18-8e9d7e022377" wire="10" />
  598. </connections>
  599. </element>
  600. <element content='"dht11_over_35_percent"' subtype="assign" type="operand" uuid="7898c510-f599-48c0-8d64-30b4b3c687b6" x="3" y="6">
  601. <connections>
  602. <connection dir_in="1" dir_out="0" pos="0" uuid="b42c5406-100d-47ff-af35-11d816c25725" wire="11" />
  603. </connections>
  604. </element>
  605. </elements>
  606. </grid>
  607. </grids>
  608. </FUP>
  609. ]]></source>
  610. <!-- FUP/FBD source code -->
  611. <source enabled="1"
  612. name="PWM"
  613. type="1"><![CDATA[
  614. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  615. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  616. <FUP version="0" zoom="1.0">
  617. <blockdecl name='"FC_PWM"' type="FC" />
  618. <interface allow_initvalue="0"
  619. allow_inouts="1"
  620. allow_inputs="1"
  621. allow_outputs="1"
  622. allow_retval="1"
  623. allow_stats="0"
  624. allow_temps="1">
  625. <retval>
  626. <field name="RET_VAL" type="VOID" uuid="a88473f7-f0be-46ad-b7cc-94d6b850b75d" />
  627. </retval>
  628. </interface>
  629. <grids>
  630. <grid height="35" uuid="6a7b298e-2e1a-487d-9b5f-57a558fd5f7d" width="12">
  631. <optimizers all="1" enabled="1" type="awl" />
  632. <wires>
  633. <wire id="0" uuid="82d87c7d-5345-4df2-b6d8-a1433ca6316b" />
  634. <wire id="1" uuid="e173625c-62af-4f83-adef-de3579ee75b3" />
  635. <wire id="2" uuid="e4aafaf1-d56d-4b4a-b178-c3414a3fc3ef" />
  636. <wire id="3" uuid="1f7205bf-ad41-42ae-ad68-70b9a9bcf313" />
  637. <wire id="4" uuid="310caaef-c07d-4335-9e9c-76f004290cac" />
  638. <wire id="5" uuid="c57b3d90-2dd5-4157-a72c-e24232762852" />
  639. <wire id="6" uuid="3daf8c50-b325-4e88-b07d-f7645e018ef0" />
  640. <wire id="7" uuid="6cde1fd9-c01a-4530-a019-a1d6ef45c325" />
  641. <wire id="8" uuid="327786d5-cfe1-4cd0-936c-143ef325dc19" />
  642. <wire id="9" uuid="d6e3f79c-3709-487a-bf30-55c1f8d1c0df" />
  643. <wire id="10" uuid="b7b7d4b5-08e0-4769-baa0-4476e63674db" />
  644. <wire id="11" uuid="a5ce389d-77e8-4342-aa89-61e34beb505f" />
  645. <wire id="12" uuid="52149e5a-e628-4776-9094-14e5f1eaf68b" />
  646. <wire id="13" uuid="65b2a725-575d-4e05-91e6-a270fefda8c0" />
  647. <wire id="14" uuid="4450009e-aeae-459c-bdce-e75d7764d3d7" />
  648. <wire id="15" uuid="7bf05d0d-0922-46de-82c1-e72e2c52aa58" />
  649. <wire id="16" uuid="4918af57-73d8-4103-bcd7-d74bf693ba0d" />
  650. <wire id="17" uuid="60eb61e8-dae0-424f-87ae-1d53c0e9b105" />
  651. <wire id="18" uuid="1a93ece2-a119-402a-af70-78929cef9828" />
  652. <wire id="19" uuid="aa812043-abef-47cc-8021-1b0554bc2dc9" />
  653. <wire id="20" uuid="9a447bdd-0c14-4a9b-93d7-2e56161c5bb8" />
  654. <wire id="21" uuid="da1c4366-8a62-4a94-81c8-8f44d2201474" />
  655. <wire id="22" uuid="a1d6c1fd-8142-403c-99ab-2159b41a49a5" />
  656. <wire id="23" uuid="0f9eb26a-64df-420c-8ada-641d9b9f33e5" />
  657. <wire id="24" uuid="02c4a7b8-18d5-450f-82c4-50462da8e91c" />
  658. <wire id="25" uuid="714672c9-861d-4344-aa47-605e83b08e8d" />
  659. <wire id="26" uuid="34edde1c-4f41-4ca4-bbc7-6cce05931c5a" />
  660. <wire id="27" uuid="63c2a689-79a5-49b5-a5f7-33093a81093a" />
  661. </wires>
  662. <elements>
  663. <element content='"PWM0"' subtype="assign" type="operand" uuid="d0a7aba5-ca37-4848-9b39-4683a0660f72" x="3" y="14">
  664. <connections>
  665. <connection dir_in="1" dir_out="0" pos="0" uuid="d22d2d28-ca74-4c0b-80a7-84e50ca1c110" wire="27" />
  666. </connections>
  667. </element>
  668. <element content='"PWM1"' subtype="assign" type="operand" uuid="80449734-acd9-4968-a9a9-291b9eacf3fc" x="5" y="29">
  669. <connections>
  670. <connection dir_in="1" dir_out="0" pos="0" uuid="2f272f77-5cad-4904-939a-a870c48f5fb5" wire="24" />
  671. </connections>
  672. </element>
  673. <element subtype="add-int" type="arithmetic" uuid="320c3e58-c243-447b-a323-fd7e7ea8a153" x="4" y="20">
  674. <connections>
  675. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="6c279a38-63fa-4838-9a0f-351f3cbf25ec" wire="4" />
  676. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="e4e62a86-bc9c-4e0f-8cf3-c247d3c4c631" wire="0" />
  677. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="99e0ee1b-875c-4ce9-bae7-13923cb55909" wire="1" />
  678. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="3b250129-ae53-4432-9bfb-1296f3070e0f" wire="2" />
  679. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="54642319-68ff-45b3-8fa7-21a2ac7110e7" wire="-1" />
  680. </connections>
  681. </element>
  682. <element content='"PWM1_state"' subtype="load" type="operand" uuid="ca0b94c2-f729-48d4-b3c7-925c336c970e" x="3" y="21">
  683. <connections>
  684. <connection dir_in="0" dir_out="1" pos="0" uuid="067116c3-1b38-4b68-adff-11c06c4d0127" wire="0" />
  685. </connections>
  686. </element>
  687. <element content="1" subtype="load" type="operand" uuid="08b3a7f3-c583-41cf-8cd3-491654fcaedc" x="3" y="22">
  688. <connections>
  689. <connection dir_in="0" dir_out="1" pos="0" uuid="55b5fbe7-b328-4781-90a7-838b74abc8fc" wire="1" />
  690. </connections>
  691. </element>
  692. <element content='"PWM1_state"' subtype="assign" type="operand" uuid="6c1d85a2-eaf2-408f-af7e-c8a404ee7e38" x="5" y="21">
  693. <connections>
  694. <connection dir_in="1" dir_out="0" pos="0" uuid="66dfc23e-d876-4b1b-9971-484f3b9288cc" wire="2" />
  695. </connections>
  696. </element>
  697. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="8f3182bd-978a-4a09-b7ba-6340c552fb20" x="1" y="20">
  698. <connections>
  699. <connection dir_in="0" dir_out="1" pos="0" uuid="9f93e5f1-26b1-4ebb-86f6-9d32f6fa1d51" wire="3" />
  700. </connections>
  701. </element>
  702. <element subtype="fp" type="boolean" uuid="4e2d97f3-3033-486a-b1d9-c764c02878ca" x="2" y="19">
  703. <connections>
  704. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="c844c535-8fad-4807-b524-6916f340a624" wire="3" />
  705. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="b58ac29a-bbd1-4a24-ae82-34f3fedaceed" wire="4" />
  706. </connections>
  707. <subelements>
  708. <element content='"PWM1_fm"' subtype="embedded" type="operand" uuid="ac27593d-ab30-4ae3-ba0b-fcb1a1c79aa3" x="0" y="0" />
  709. </subelements>
  710. </element>
  711. <element content='"PWM1_state"' subtype="load" type="operand" uuid="72ef6d2f-9d3e-44e8-a1b1-ecdac038311f" x="1" y="25">
  712. <connections>
  713. <connection dir_in="0" dir_out="1" pos="0" uuid="044dad4b-a331-4ddf-9161-6982e27a779a" wire="17" />
  714. </connections>
  715. </element>
  716. <element content="100" subtype="load" type="operand" uuid="91826eec-668e-45e6-8509-9fc619082e46" x="1" y="26">
  717. <connections>
  718. <connection dir_in="0" dir_out="1" pos="0" uuid="927c3345-9532-42ce-a37e-debc731c5372" wire="18" />
  719. </connections>
  720. </element>
  721. <element type="move" uuid="67cb1184-638f-4662-a766-0bc08672c15f" x="4" y="24">
  722. <connections>
  723. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="fb3bcfaf-00a4-47a4-b5ae-a6c6b3e29a80" wire="19" />
  724. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="92ad4224-7e9f-4885-a9e8-1c9338f5611b" wire="5" />
  725. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="3255a283-0316-4af0-ac50-c70f9b27d1ce" wire="6" />
  726. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="96caccf4-13e2-4dbb-af4f-72fa65c55cc8" wire="-1" />
  727. </connections>
  728. </element>
  729. <element content="0" subtype="load" type="operand" uuid="f4dda5af-a680-4967-990b-43c92cd94605" x="3" y="26">
  730. <connections>
  731. <connection dir_in="0" dir_out="1" pos="0" uuid="97f024eb-8418-410a-b158-7bed279c14ae" wire="5" />
  732. </connections>
  733. </element>
  734. <element content='"PWM1_state"' subtype="assign" type="operand" uuid="365fa1de-e7a0-4e05-8417-e8da72f0ba9d" x="5" y="25">
  735. <connections>
  736. <connection dir_in="1" dir_out="0" pos="0" uuid="7e4942f0-c157-49db-8ebf-a5079dd676f7" wire="6" />
  737. </connections>
  738. </element>
  739. <element content="Run PWM0 at a static 50% duty cycle." type="comment" uuid="707237db-8b8f-4f29-8ca7-20825774fc6d" x="0" y="12" />
  740. <element content="Run PWM1 at a 0% to 100% duty cycle sweep." type="comment" uuid="5f480563-7c1a-4394-97fd-df9c4958fa0c" x="0" y="18" />
  741. <element content='"PWM_period"' subtype="load" type="operand" uuid="162627fd-ec32-40b8-ae40-a9643ce96f85" x="1" y="15">
  742. <connections>
  743. <connection dir_in="0" dir_out="1" pos="0" uuid="e60ef369-c639-4cff-a837-32298145347d" wire="25" />
  744. </connections>
  745. </element>
  746. <element content="1" subtype="load" type="operand" uuid="5bd59a80-6a05-40da-8017-003d95b423c5" x="1" y="14">
  747. <connections>
  748. <connection dir_in="0" dir_out="1" pos="0" uuid="92679b47-b32d-443e-955b-ba349043c13c" wire="26" />
  749. </connections>
  750. </element>
  751. <element subtype="fp" type="boolean" uuid="2ceff00d-57ea-46b1-b1d8-8ddc69c9596b" x="2" y="2">
  752. <connections>
  753. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="0b10fd66-ceb1-4183-99ee-da3d57990391" wire="7" />
  754. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="cec36527-714c-4d0d-bcb1-eeca0319f402" wire="8" />
  755. </connections>
  756. <subelements>
  757. <element content='"PWMperiod_fm"' subtype="embedded" type="operand" uuid="ade87406-9030-4693-aebd-7b46ddc4b297" x="0" y="0" />
  758. </subelements>
  759. </element>
  760. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="95eb9760-3c83-4d7d-9355-b1cb7d019693" x="1" y="3">
  761. <connections>
  762. <connection dir_in="0" dir_out="1" pos="0" uuid="7b3972a0-e54e-4a65-8df3-e805107bac2f" wire="7" />
  763. </connections>
  764. </element>
  765. <element subtype="add-int" type="arithmetic" uuid="ebf3838c-c933-4a84-9a77-73f10eac3ef9" x="4" y="3">
  766. <connections>
  767. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="dfd6a8a7-bc55-4b3e-a940-2df70a87cc58" wire="8" />
  768. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="e94a8d6a-26f3-4754-a22a-45a9f7d85d2e" wire="9" />
  769. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="aa4d4145-055d-49c4-96a2-d33b79b31dca" wire="10" />
  770. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="7fd5d834-077d-4bbd-a856-671312647a03" wire="11" />
  771. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="99da528c-7371-4d46-9e0a-c6978f7adbb2" wire="-1" />
  772. </connections>
  773. </element>
  774. <element content='"PWM_period"' subtype="load" type="operand" uuid="2b7fb12d-ff75-4bf7-ad36-58e3a7164301" x="3" y="4">
  775. <connections>
  776. <connection dir_in="0" dir_out="1" pos="0" uuid="ffc52b0f-ba98-4187-9e82-76274345b562" wire="9" />
  777. </connections>
  778. </element>
  779. <element content="1666" subtype="load" type="operand" uuid="1fa8ea2a-3e6b-4633-adaa-d8ca3d9f3fe3" x="3" y="5">
  780. <connections>
  781. <connection dir_in="0" dir_out="1" pos="0" uuid="0d1f6a5c-0ee6-4441-916c-9f1723c86d19" wire="10" />
  782. </connections>
  783. </element>
  784. <element content='"PWM_period"' subtype="assign" type="operand" uuid="0da3fd62-e836-4e02-a584-b7e64f0a4ba2" x="5" y="4">
  785. <connections>
  786. <connection dir_in="1" dir_out="0" pos="0" uuid="d0fd8465-4d38-4e7c-892b-f158fdf449f6" wire="11" />
  787. </connections>
  788. </element>
  789. <element subtype="gt-dint" type="compare" uuid="3e0c3f4d-6b79-4fd5-b739-75f4a8c51c5b" x="2" y="7">
  790. <connections>
  791. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="7d5f0136-11a0-4f19-ad24-b2510f37fc97" wire="-1" />
  792. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="0b04ec0a-650b-48ab-8212-0dc15483208f" wire="12" />
  793. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="d5ac9798-3054-4f3e-a98f-e805803af115" wire="13" />
  794. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="bb222a6b-fd70-43b9-99cb-f8b2aa7200c6" wire="14" />
  795. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="b498b5da-c844-409e-8f55-2d136fc4a989" wire="-1" />
  796. </connections>
  797. </element>
  798. <element content='"PWM_period"' subtype="load" type="operand" uuid="55785212-354c-4b27-98f6-e46b54543b9b" x="1" y="8">
  799. <connections>
  800. <connection dir_in="0" dir_out="1" pos="0" uuid="bb417a9b-339d-44b0-8a50-f58781c608ad" wire="12" />
  801. </connections>
  802. </element>
  803. <element content="L#65000" subtype="load" type="operand" uuid="6fa97957-0444-4a37-bec9-aa8c171031d4" x="1" y="9">
  804. <connections>
  805. <connection dir_in="0" dir_out="1" pos="0" uuid="6d96b7d9-3b44-4730-be0f-47c04307e168" wire="13" />
  806. </connections>
  807. </element>
  808. <element type="move" uuid="89f63391-7c82-42d4-9c15-4e10e184594e" x="4" y="7">
  809. <connections>
  810. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="4c714cbd-38fd-4372-8c5d-105db29fd89a" wire="14" />
  811. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="8de3d006-48cb-47c9-b5e1-c146405cf851" wire="15" />
  812. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="a183390a-43fa-4f2c-9b73-a226d5da68c8" wire="16" />
  813. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="1d979c41-01a0-451c-9ef8-b85f69b9a3b2" wire="-1" />
  814. </connections>
  815. </element>
  816. <element content="0" subtype="load" type="operand" uuid="30782eff-ba0c-4bf2-b474-4ac3f7d0b136" x="3" y="9">
  817. <connections>
  818. <connection dir_in="0" dir_out="1" pos="0" uuid="adca294f-71d5-401d-964a-39250252e9fd" wire="15" />
  819. </connections>
  820. </element>
  821. <element content='"PWM_period"' subtype="assign" type="operand" uuid="6d0f94cb-dee2-4493-8218-78718c4dfa74" x="5" y="8">
  822. <connections>
  823. <connection dir_in="1" dir_out="0" pos="0" uuid="f9ca94ec-751e-485c-9fe5-c9ae3a8f7be9" wire="16" />
  824. </connections>
  825. </element>
  826. <element subtype="gt-int" type="compare" uuid="5239165a-8910-4a9c-8268-359a8fe64cfa" x="2" y="24">
  827. <connections>
  828. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="db14f26d-212d-4f84-92f1-cc139aee10d4" wire="-1" />
  829. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="5aa24388-aa1b-40f0-a05d-cfd19971fc9f" wire="17" />
  830. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="d5169fca-6edb-459d-bb11-3dec8ab1f6d7" wire="18" />
  831. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="d5c7c8eb-de03-4605-94cb-ba8b8361c847" wire="19" />
  832. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="f548a1b4-1805-4645-9c59-64e0fa25a741" wire="-1" />
  833. </connections>
  834. </element>
  835. <element subtype="mul-dint" type="arithmetic" uuid="bb9dea30-be2b-478c-8635-29dc1c7188f6" x="2" y="28">
  836. <connections>
  837. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="11a90b2d-fae0-406a-8b73-b16d2c4b51ad" wire="-1" />
  838. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="b6bd0573-448b-4a1d-9a39-f6d41228c792" wire="20" />
  839. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="bd437325-b2e1-46ed-a484-3c0b446a3793" wire="21" />
  840. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="faba1939-5c21-4cdc-8dfe-bec43cd23c94" wire="22" />
  841. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="09779ca2-b28a-40b6-82b1-0fd3632bd369" wire="-1" />
  842. </connections>
  843. </element>
  844. <element content='"PWM_period"' subtype="load" type="operand" uuid="ecdc3066-5510-468e-a766-196894da8c18" x="1" y="29">
  845. <connections>
  846. <connection dir_in="0" dir_out="1" pos="0" uuid="99524b5a-fcb3-48b0-8779-d12618ff2004" wire="20" />
  847. </connections>
  848. </element>
  849. <element content='"PWM1_state"' subtype="load" type="operand" uuid="a5a16b57-9d30-462d-864e-f84dd9afb1e2" x="1" y="30">
  850. <connections>
  851. <connection dir_in="0" dir_out="1" pos="0" uuid="2b50aebd-6873-4fb7-865e-be1adf4cb43e" wire="21" />
  852. </connections>
  853. </element>
  854. <element subtype="div-dint" type="arithmetic" uuid="37f4fa28-583e-402e-bc4e-c00d9d57b8f0" x="4" y="28">
  855. <connections>
  856. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="c0ab94df-f9b9-41bb-af70-93df6232ab9e" wire="-1" />
  857. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="f7898614-bbc3-4d91-82b5-c4a21a32d299" wire="22" />
  858. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="50bb9010-c856-491c-8eff-294c861e2b6e" wire="23" />
  859. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="9f1e9857-f294-45aa-a7ef-d8dc30f2d60b" wire="24" />
  860. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="fb5024aa-26f9-4d93-bc4c-c183b716a09d" wire="-1" />
  861. </connections>
  862. </element>
  863. <element content="100" subtype="load" type="operand" uuid="2832bc84-18a2-4e5b-9c57-f3ff3a845332" x="3" y="30">
  864. <connections>
  865. <connection dir_in="0" dir_out="1" pos="0" uuid="ca95c9ba-70c7-4229-8d9d-b38fbe5f1895" wire="23" />
  866. </connections>
  867. </element>
  868. <element content="Sweep PWM period from 0 to 65000." type="comment" uuid="45d088dc-8233-4982-a245-12ed663f132f" x="0" y="1" />
  869. <element subtype="srw" type="shift" uuid="e938030b-66c7-4421-8765-c6f205fd3668" x="2" y="13">
  870. <connections>
  871. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="9cefa628-abc3-4ed1-bffe-bdbc723a434f" wire="-1" />
  872. <connection dir_in="1" dir_out="0" pos="1" text="N" uuid="f52840b1-1935-41d4-8741-fb25133787bb" wire="26" />
  873. <connection dir_in="1" dir_out="0" pos="2" text="IN" uuid="03c29dd4-34d9-4359-851d-93ab7e30f571" wire="25" />
  874. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="6d539bb1-877f-4073-ab9b-56023ff16124" wire="27" />
  875. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="c20c6608-84f8-4717-8f57-4e65547f659d" wire="-1" />
  876. </connections>
  877. </element>
  878. </elements>
  879. </grid>
  880. </grids>
  881. </FUP>
  882. ]]></source>
  883. <!-- FUP/FBD source code -->
  884. <source enabled="1"
  885. name="Analog I/O"
  886. type="1"><![CDATA[
  887. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  888. <!-- Awlsim FUP/FBD source generated by awlsim-0.66.0-pre -->
  889. <FUP version="0" zoom="1.0">
  890. <blockdecl name='"FC_analog"' type="FC" />
  891. <interface allow_initvalue="0"
  892. allow_inouts="1"
  893. allow_inputs="1"
  894. allow_outputs="1"
  895. allow_retval="1"
  896. allow_stats="0"
  897. allow_temps="1">
  898. <retval>
  899. <field name="RET_VAL" type="VOID" uuid="4b3cfda5-70cf-4392-8a66-e9abfcf399dd" />
  900. </retval>
  901. </interface>
  902. <grids>
  903. <grid height="20" uuid="0381ac35-7180-40a9-ae57-09d0f0772056" width="12">
  904. <optimizers all="1" enabled="1" type="awl" />
  905. <wires>
  906. <wire id="0" uuid="cd14408f-ef62-4369-b7ec-cdc56369a325" />
  907. <wire id="1" uuid="c8a4f724-b23b-4a3d-9f3f-f2682e4fc441" />
  908. <wire id="2" uuid="4f56c670-1300-47f4-bab0-f44857e24c46" />
  909. <wire id="3" uuid="8e2eb71e-2fb8-47ad-95dc-bd7564c2d756" />
  910. <wire id="4" uuid="adf7cdfe-0b64-4143-a532-b1472c0a0931" />
  911. <wire id="5" uuid="bdbd04b6-5df7-4d15-b266-ff4f29595832" />
  912. <wire id="6" uuid="1008a57d-c01e-4d6e-a7ca-bf2065b7a8fa" />
  913. <wire id="7" uuid="947f5194-3aa3-42b3-871b-dd36ddbf0b88" />
  914. <wire id="8" uuid="208fa2b3-58d1-403b-a208-4bfe49694589" />
  915. <wire id="9" uuid="7373c091-ca7f-434f-a76a-8b7ab2a7b78a" />
  916. <wire id="10" uuid="9b3981be-2d23-4532-9c44-f02b73fa8a37" />
  917. <wire id="11" uuid="fef51b2d-7553-4aad-8cb5-6429e65a3d74" />
  918. </wires>
  919. <elements>
  920. <element content="DAC_A := AnalogIn0" type="comment" uuid="491fcadf-0120-4525-8e4f-c602d9e49b18" x="0" y="1" />
  921. <element type="move" uuid="dc19c73f-11f0-4b4a-a266-9cfe8c53d0ad" x="2" y="2">
  922. <connections>
  923. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="614eeef5-0b89-4275-9bee-e3a38996eecb" wire="-1" />
  924. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="4431259e-2fe0-4d5e-8f03-b1d4c447e965" wire="0" />
  925. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c081d947-6c15-4c47-a1c4-3214235ca911" wire="1" />
  926. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="6c26c015-285a-4672-8a45-abcee3363fe0" wire="-1" />
  927. </connections>
  928. </element>
  929. <element content='"AnalogIn0"' subtype="load" type="operand" uuid="cfcc4e1a-4809-4c5b-99ad-9ff2a52d7bbb" x="1" y="4">
  930. <connections>
  931. <connection dir_in="0" dir_out="1" pos="0" uuid="7c5edc85-04d5-46e3-a12c-2371f2244c33" wire="0" />
  932. </connections>
  933. </element>
  934. <element content='"DAC_A"' subtype="assign" type="operand" uuid="0f4acb5a-ada1-4a92-a605-39b98d0c3e03" x="3" y="3">
  935. <connections>
  936. <connection dir_in="1" dir_out="0" pos="0" uuid="ef16a939-cbcd-4e38-9829-dea580f1009f" wire="1" />
  937. </connections>
  938. </element>
  939. <element content="DAC_B := 0-10V sweep" type="comment" uuid="4695892e-c4ab-4fad-bbb4-a8b23866becd" x="0" y="7" />
  940. <element subtype="fp" type="boolean" uuid="3e4df83c-ab51-450a-a1c4-d28beab732b8" x="2" y="8">
  941. <connections>
  942. <connection dir_in="1" dir_out="0" pos="0" text="IN" uuid="0929b0c3-268f-499b-aff6-36be65fff029" wire="2" />
  943. <connection dir_in="0" dir_out="1" pos="0" text="Q" uuid="27ebc752-3402-4f96-9205-4a4c909d27c3" wire="3" />
  944. </connections>
  945. <subelements>
  946. <element content='"DACB_fm"' subtype="embedded" type="operand" uuid="5cc03dc5-a99c-47cb-9507-4d1403377202" x="0" y="0" />
  947. </subelements>
  948. </element>
  949. <element content='"CLK_0.1s"' subtype="load" type="operand" uuid="e4b20ad6-4af9-4e9f-a114-ff7b20678729" x="1" y="9">
  950. <connections>
  951. <connection dir_in="0" dir_out="1" pos="0" uuid="ef934ae6-8cab-4412-ab1f-2d4aea58a5ff" wire="2" />
  952. </connections>
  953. </element>
  954. <element subtype="add-int" type="arithmetic" uuid="02b1f857-b025-4654-98c0-faf3b3123f18" x="4" y="9">
  955. <connections>
  956. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="a0f288a4-8bc4-418d-9d4d-9b08dfcdecfa" wire="3" />
  957. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="73c46b2f-2634-4776-8413-629bee42214a" wire="4" />
  958. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="ebf853dd-77db-48c5-89bc-42a6a82f6323" wire="6" />
  959. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c25585b6-9fd1-445b-ac64-d015cdb4db17" wire="5" />
  960. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="080ceb74-b09b-49c1-b224-81f2ea50fa1e" wire="-1" />
  961. </connections>
  962. </element>
  963. <element content='"DAC_B"' subtype="load" type="operand" uuid="2040702f-261d-4808-9ede-2de4c7118c86" x="3" y="10">
  964. <connections>
  965. <connection dir_in="0" dir_out="1" pos="0" uuid="d8cb4352-bbd7-4c32-9a67-18cba58535fc" wire="4" />
  966. </connections>
  967. </element>
  968. <element content='"DAC_B"' subtype="assign" type="operand" uuid="4736d641-14fb-41b0-ab80-c6a2a99ad60a" x="5" y="10">
  969. <connections>
  970. <connection dir_in="1" dir_out="0" pos="0" uuid="fdca57ab-3a24-44d1-a5bd-22cd816e277f" wire="5" />
  971. </connections>
  972. </element>
  973. <element content="276" subtype="load" type="operand" uuid="8be624b2-7490-44eb-a22c-40950b2a0238" x="3" y="11">
  974. <connections>
  975. <connection dir_in="0" dir_out="1" pos="0" uuid="00a08065-f276-4fa5-8e76-3cb08c4c80ec" wire="6" />
  976. </connections>
  977. </element>
  978. <element subtype="gt-int" type="compare" uuid="9fc01d5d-b3fa-4aa6-bd76-f191c4429335" x="2" y="13">
  979. <connections>
  980. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="ea1594b4-9bde-496c-9627-18ce10f8ec58" wire="-1" />
  981. <connection dir_in="1" dir_out="0" pos="1" text="IN0" uuid="19809f6c-4c28-43fb-9906-af667eb0de3c" wire="7" />
  982. <connection dir_in="1" dir_out="0" pos="2" text="IN1" uuid="a9e3fe6d-7ccf-4104-9b40-ca1de399723c" wire="8" />
  983. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="c8365bd3-21cc-41fa-aa17-8b20ec2a7bda" wire="9" />
  984. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="29d7b3da-5abd-4c59-88a7-310610b72458" wire="-1" />
  985. </connections>
  986. </element>
  987. <element content='"DAC_B"' subtype="load" type="operand" uuid="4d9aaa87-7421-47a8-9e01-4a4d91c541d2" x="1" y="14">
  988. <connections>
  989. <connection dir_in="0" dir_out="1" pos="0" uuid="61fd47cc-772e-46c0-a822-baeb7f197dcd" wire="7" />
  990. </connections>
  991. </element>
  992. <element content="27648" subtype="load" type="operand" uuid="90ee6288-0c6e-4c6d-9b9e-7d49118b6489" x="1" y="15">
  993. <connections>
  994. <connection dir_in="0" dir_out="1" pos="0" uuid="6caedf81-0717-4dc7-bbe3-e834185d9e01" wire="8" />
  995. </connections>
  996. </element>
  997. <element type="move" uuid="709ea14c-84ae-4e19-9c9b-6f7a5010db09" x="4" y="13">
  998. <connections>
  999. <connection dir_in="1" dir_out="0" pos="0" text="EN" uuid="cd83a3a9-7089-4a6d-8342-b509ee2b4c35" wire="9" />
  1000. <connection dir_in="1" dir_out="0" pos="1" text="IN" uuid="def0ec3a-ee2f-43b3-8896-6e4836d15e0c" wire="10" />
  1001. <connection dir_in="0" dir_out="1" pos="0" text="OUT0" uuid="5a87be17-b325-4a2c-b4d8-77431674e284" wire="11" />
  1002. <connection dir_in="0" dir_out="1" pos="1" text="ENO" uuid="48b52dc9-2667-486f-bd50-555aa48dae6d" wire="-1" />
  1003. </connections>
  1004. </element>
  1005. <element content="0" subtype="load" type="operand" uuid="e2625d4a-6dde-4659-907c-a2c4bf3c5c3e" x="3" y="15">
  1006. <connections>
  1007. <connection dir_in="0" dir_out="1" pos="0" uuid="c9820e35-24ae-409a-af56-264caa4ff70e" wire="10" />
  1008. </connections>
  1009. </element>
  1010. <element content='"DAC_B"' subtype="assign" type="operand" uuid="9eb5eff7-37e5-4fa0-9eb1-a441ce271f67" x="5" y="14">
  1011. <connections>
  1012. <connection dir_in="1" dir_out="0" pos="0" uuid="1edce39f-a7b8-49c7-8c3e-72e7197ea43f" wire="11" />
  1013. </connections>
  1014. </element>
  1015. </elements>
  1016. </grid>
  1017. </grids>
  1018. </FUP>
  1019. ]]></source>
  1020. </language_fup>
  1021. <!-- Symbol table configuration -->
  1022. <symbols>
  1023. <!-- symbol table source code -->
  1024. <source enabled="1"
  1025. name="FCs"
  1026. type="3"><![CDATA[
  1027. 126,FC_DigitalOut FC 1 FC 1 Digital output handling
  1028. 126,FC_Relays FC 2 FC 2 Relays handling
  1029. 126,FC_GPIOs FC 3 FC 3 GPIOs handling
  1030. 126,FC_TempHum FC 4 FC 4 Temperature and humidity sensor handling
  1031. 126,FC_PWM FC 5 FC 5 PWM handling
  1032. 126,FC_analog FC 6 FC 6 Analog I/O handling
  1033. ]]></source>
  1034. <!-- symbol table source code -->
  1035. <source enabled="1"
  1036. name="PiXtend I/O"
  1037. type="3"><![CDATA[
  1038. 126,relay0 A 0.0 BOOL PiXtend relay output 0
  1039. 126,relay1 A 0.1 BOOL PiXtend relay output 1
  1040. 126,relay2 A 0.2 BOOL PiXtend relay output 2
  1041. 126,relay3 A 0.3 BOOL PiXtend relay output 3
  1042. 126,DO0 A 1.0 BOOL PiXtend digital output 0
  1043. 126,DO1 A 1.1 BOOL PiXtend digital output 1
  1044. 126,DO2 A 1.2 BOOL PiXtend digital output 2
  1045. 126,DO3 A 1.3 BOOL PiXtend digital output 3
  1046. 126,DO4 A 1.4 BOOL PiXtend digital output 4
  1047. 126,DO5 A 1.5 BOOL PiXtend digital output 5
  1048. 126,DI0 E 1.0 BOOL PiXtend digital input 0
  1049. 126,DI1 E 1.1 BOOL PiXtend digital input 1
  1050. 126,DI2 E 1.2 BOOL PiXtend digital input 2
  1051. 126,DI3 E 1.3 BOOL PiXtend digital input 3
  1052. 126,DI4 E 1.4 BOOL PiXtend digital input 4
  1053. 126,DI5 E 1.5 BOOL PiXtend digital input 5
  1054. 126,DI6 E 1.6 BOOL PiXtend digital input 6
  1055. 126,DI7 E 1.7 BOOL PiXtend digital input 7
  1056. 126,gpio0 E 2.0 BOOL PiXtend GPIO 0
  1057. 126,gpio1 A 2.1 BOOL PiXtend GPIO 1
  1058. 126,PWM0 AW 20 WORD PiXtend PWM 0
  1059. 126,PWM1 AW 22 WORD PiXtend PWM 1
  1060. 126,PWM_period AW 24 WORD PiXtend PWM period
  1061. 126,DAC_A AW 10 WORD PiXtend DAC_A
  1062. 126,DAC_B AW 12 WORD PiXtend DAC_B
  1063. 126,AnalogIn0 EW 10 WORD PiXtend analog input 0
  1064. 126,DHT11_temperature EW 30 WORD DHT11 on GPIO 2 temperature
  1065. 126,DHT11_humidity EW 32 WORD DHT11 on GPIO 2 humidity
  1066. 126,DHT22_temperature EW 40 WORD DHT22 on GPIO 3 temperature
  1067. 126,DHT22_humidity EW 42 WORD DHT22 on GPIO 3 humidity
  1068. ]]></source>
  1069. <!-- symbol table source code -->
  1070. <source enabled="1"
  1071. name="Clock memory byte"
  1072. type="3"><![CDATA[
  1073. 126,CLK_0.1s M 0.0 BOOL Clock memory bit with 0.1 s period
  1074. 126,CLK_0.2s M 0.1 BOOL Clock memory bit with 0.2 s period
  1075. 126,CLK_0.4s M 0.2 BOOL Clock memory bit with 0.4 s period
  1076. 126,CLK_0.5s M 0.3 BOOL Clock memory bit with 0.5 s period
  1077. 126,CLK_0.8s M 0.4 BOOL Clock memory bit with 0.8 s period
  1078. 126,CLK_1.0s M 0.5 BOOL Clock memory bit with 1.0 s period
  1079. 126,CLK_1.6s M 0.6 BOOL Clock memory bit with 1.6 s period
  1080. 126,CLK_2.0s M 0.7 BOOL Clock memory bit with 2.0 s period
  1081. ]]></source>
  1082. <!-- symbol table source code -->
  1083. <source enabled="1"
  1084. name="Memory"
  1085. type="3"><![CDATA[
  1086. 126,Relay3_timer_state M 10.0 BOOL
  1087. 126,PWM1_state MW 22 WORD
  1088. 126,PWM1_fm M 24.0 BOOL
  1089. 126,PWMperiod_fm M 24.1 BOOL
  1090. 126,DACB_fm M 25.0 BOOL
  1091. 126,dht11_over_25_degrees M 30.0 BOOL
  1092. 126,dht11_over_35_percent M 30.1 BOOL
  1093. 126,dht22_over_20_degrees M 40.0 BOOL
  1094. 126,dht22_over_80_percent M 40.1 BOOL
  1095. ]]></source>
  1096. <!-- symbol table source code -->
  1097. <source enabled="1"
  1098. name="Timers"
  1099. type="3"><![CDATA[
  1100. 126,Relay3_timer T 0 TIMER
  1101. ]]></source>
  1102. </symbols>
  1103. <!-- Core server link configuration -->
  1104. <core_link>
  1105. <!-- Locally spawned core server -->
  1106. <spawn_local enable="0"
  1107. interpreters="$DEFAULT"
  1108. port_range_begin="4183"
  1109. port_range_end="8278" />
  1110. <!-- Remote server connection -->
  1111. <connect host="pilc"
  1112. port="4151"
  1113. timeout_ms="3000" />
  1114. <!-- Transport tunnel -->
  1115. <tunnel local_port="-1"
  1116. type="1">
  1117. <ssh executable="ssh"
  1118. port="22"
  1119. user="pi" />
  1120. </tunnel>
  1121. </core_link>
  1122. <!-- Hardware modules configuration -->
  1123. <hardware>
  1124. <!-- Loaded hardware module -->
  1125. <module name="pixtend">
  1126. <params>
  1127. <param name="analogIn0_10V"
  1128. value="True" />
  1129. <param name="analogIn0_addr"
  1130. value="EW 10" />
  1131. <param name="analogIn0_nos"
  1132. value="10" />
  1133. <param name="analogIn1_10V"
  1134. value="True" />
  1135. <param name="analogIn1_addr" />
  1136. <param name="analogIn1_nos"
  1137. value="10" />
  1138. <param name="analogIn2_addr" />
  1139. <param name="analogIn2_nos"
  1140. value="10" />
  1141. <param name="analogIn3_addr" />
  1142. <param name="analogIn3_nos"
  1143. value="10" />
  1144. <param name="analogIn_kHz"
  1145. value="125" />
  1146. <param name="analogOut0_addr"
  1147. value="AW 10" />
  1148. <param name="analogOut1_addr"
  1149. value="AW 12" />
  1150. <param name="boardType"
  1151. value="auto" />
  1152. <param name="digitalIn0_addr"
  1153. value="E 1.0" />
  1154. <param name="digitalIn1_addr"
  1155. value="E 1.1" />
  1156. <param name="digitalIn2_addr"
  1157. value="E 1.2" />
  1158. <param name="digitalIn3_addr"
  1159. value="E 1.3" />
  1160. <param name="digitalIn4_addr"
  1161. value="E 1.4" />
  1162. <param name="digitalIn5_addr"
  1163. value="E 1.5" />
  1164. <param name="digitalIn6_addr"
  1165. value="E 1.6" />
  1166. <param name="digitalIn7_addr"
  1167. value="E 1.7" />
  1168. <param name="digitalOut0_addr"
  1169. value="A 1.0" />
  1170. <param name="digitalOut1_addr"
  1171. value="A 1.1" />
  1172. <param name="digitalOut2_addr"
  1173. value="A 1.2" />
  1174. <param name="digitalOut3_addr"
  1175. value="A 1.3" />
  1176. <param name="digitalOut4_addr"
  1177. value="A 1.4" />
  1178. <param name="digitalOut5_addr"
  1179. value="A 1.5" />
  1180. <param name="enabled"
  1181. value="True" />
  1182. <param name="gpio0_addr"
  1183. value="E 2.0" />
  1184. <param name="gpio0_hum_addr" />
  1185. <param name="gpio0_mode"
  1186. value="GPIO" />
  1187. <param name="gpio0_pullup"
  1188. value="True" />
  1189. <param name="gpio0_temp_addr" />
  1190. <param name="gpio1_addr"
  1191. value="A 2.1" />
  1192. <param name="gpio1_hum_addr" />
  1193. <param name="gpio1_mode"
  1194. value="GPIO" />
  1195. <param name="gpio1_pullup"
  1196. value="False" />
  1197. <param name="gpio1_temp_addr" />
  1198. <param name="gpio2_addr" />
  1199. <param name="gpio2_hum_addr"
  1200. value="EW 32" />
  1201. <param name="gpio2_mode"
  1202. value="DHT11" />
  1203. <param name="gpio2_pullup"
  1204. value="False" />
  1205. <param name="gpio2_temp_addr"
  1206. value="EW 30" />
  1207. <param name="gpio3_addr" />
  1208. <param name="gpio3_hum_addr"
  1209. value="EW 42" />
  1210. <param name="gpio3_mode"
  1211. value="DHT22" />
  1212. <param name="gpio3_pullup"
  1213. value="False" />
  1214. <param name="gpio3_temp_addr"
  1215. value="EW 40" />
  1216. <param name="inputAddressBase"
  1217. value="0" />
  1218. <param name="outputAddressBase"
  1219. value="0" />
  1220. <param name="pollIntMs"
  1221. value="100" />
  1222. <param name="pwm0A_addr"
  1223. value="AW 20" />
  1224. <param name="pwm0B_addr"
  1225. value="AW 22" />
  1226. <param name="pwm0_baseFreqHz"
  1227. value="16000000" />
  1228. <param name="pwm0_mode"
  1229. value="dutycycle" />
  1230. <param name="pwm0_period"
  1231. value="AW 24" />
  1232. <param name="pwm1A_addr" />
  1233. <param name="pwm1B_addr" />
  1234. <param name="pwm1_baseFreqHz"
  1235. value="0" />
  1236. <param name="pwm1_mode"
  1237. value="dutycycle" />
  1238. <param name="pwm1_period" />
  1239. <param name="relay0_addr"
  1240. value="A 0.0" />
  1241. <param name="relay1_addr"
  1242. value="A 0.1" />
  1243. <param name="relay2_addr"
  1244. value="A 0.2" />
  1245. <param name="relay3_addr"
  1246. value="A 0.3" />
  1247. <param name="rs485"
  1248. value="False" />
  1249. </params>
  1250. </module>
  1251. </hardware>
  1252. <!-- Graphical user interface configuration -->
  1253. <gui>
  1254. <editor autoindent="1"
  1255. paste_autoindent="1"
  1256. validation="1" />
  1257. </gui>
  1258. </awlsim_project>